Summary
Update an Analytic Template
Description
Update an Analytic Template by ID.
Route
POST /mop/updateAnalyticTemplate/:mopID
Roles
admin
apiwrite
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
mopID |
string |
yes |
ID of the Analytic Template to update. |
template |
object |
yes |
Analytic Template to update. |
Copied to Clipboard
{
"template": {
"name": "ASR1K-MOP",
"_id": "ASR1K-MOP",
"namespace": {
"type": "project",
"_id": "5cb5252a1bbc5a00def564c1",
"name": "occaecat consectetur ut ipsum",
"accessControl": {
"read": [
"aute sunt",
"minim in dolor veniam reprehenderit",
"occaecat anim in esse in",
"ea esse"
],
"execute": [
"eiusmod laborum Excepteur quis"
],
"write": [
"velit quis enim",
"minim",
"Ut culpa reprehenderit",
"id est",
"nulla"
],
"manage": [
"ipsum dolore velit esse",
"id dolor occaecat sunt"
]
}
},
"os": "cisco-ios",
"passRule": true,
"prepostCommands": [
{
"preRawCommand": "show running-config ip prefix-list",
"postRawCommand": "show running-config ip prefix-list",
"passRule": true,
"rules": [
{
"type": "regex",
"preRegex": "",
"postRegex": "",
"evaluation": "="
},
{
"type": "regex",
"preRegex": "",
"postRegex": "",
"evaluation": "="
},
{
"type": "regex",
"preRegex": "",
"postRegex": "",
"evaluation": "="
}
],
"preCommandResHTML": "Test a command or the template to get results here",
"postCommandResHTML": "Test a command or the template to get results here"
}
],
"created": 1508182880981,
"createdBy": "exampleUser",
"lastUpdated": 1508182880981,
"lastUpdatedBy": "exampleUser"
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"template": {
"$ref": "mopAnalyticTemplateDoc"
}
},
"required": [
"template"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
Status of the update. |
Copied to Clipboard
{
"n": 1,
"ok": 1,
"nModified": 1
}