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