Summary
Run a Command against Devices
Description
Run a command against devices.
Route
POST /mop/RunCommandDevices
Roles
admin
apiwrite
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
command |
string |
yes |
Command to run. |
variables |
object |
yes |
Variables to be run with the command. |
devices |
array |
yes |
Devices the command is run against. |
Copied to Clipboard
{
"command": "consequat deserunt consectetur anim laborum",
"variables": null,
"devices": []
}
Copied to Clipboard
{
"type": "object",
"properties": {
"command": {
"description": "Command to run.",
"type": "string"
},
"variables": {
"description": "Variables to be run with the command.",
"type": "object",
"properties": {},
"required": [
"variables"
],
"additionalProperties": false
},
"devices": {
"description": "Devices the command is run against.",
"type": "array"
}
},
"required": [
"command",
"variables",
"devices"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
results |
object |
Result of the command run. |
Copied to Clipboard
{
"results": true
}
Copied to Clipboard
{
"description": "Result of the command run.",
"type": "object",
"properties": {
"results": true
},
"required": [
"results"
],
"additionalProperties": false
}