Summary
Run a Command against a Device
Description
Run a command against a device.
Route
POST /mop/RunCommand
Roles
admin
apiwrite
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
command |
string |
yes |
The command to run. |
variables |
object |
yes |
Variables to be run with the command. |
device |
string |
yes |
Device the command is run against. |
Copied to Clipboard
{
"command": "pariatur irure",
"variables": null,
"device": "et occaecat fugiat voluptate reprehenderit"
}
Copied to Clipboard
{
"type": "object",
"properties": {
"command": {
"description": "The command to run.",
"type": "string"
},
"variables": {
"description": "Variables to be run with the command.",
"type": "object",
"properties": {},
"required": [
"variables"
],
"additionalProperties": false
},
"device": {
"description": "Device the command is run against.",
"type": "string"
}
},
"required": [
"command",
"variables",
"device"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
Result of the command run. |
Copied to Clipboard
{
"result": true
}
Copied to Clipboard
{
"description": "Result of the command run.",
"type": "object",
"properties": {
"result": true
},
"required": [
"result"
],
"additionalProperties": false
}