Run an Analytic Template for Devices.
Copied to Clipboard
{
"type": "object",
"properties": {
"pre": {
"title": "pre",
"type": "object",
"properties": {
"pre": {
"type": "object",
"properties": {
"commands_results": {
"type": "array",
"items": {
"type": "object"
}
}
},
"required": [
"commands_results"
],
"additionalProperties": false
}
}
},
"post": {
"title": "post",
"type": "object",
"properties": {
"post": {
"type": "object",
"properties": {
"commands_results": {
"type": "array",
"items": {
"type": "object"
}
}
},
"required": [
"commands_results"
],
"additionalProperties": false
}
}
},
"analytic_template_name": {
"title": "analytic_template_name",
"type": "string",
"examples": [
"test"
]
},
"variables": {
"$ref": "mopTemplateDoc#/definitions/variables"
}
},
"required": [
"pre",
"post",
"analytic_template_name",
"variables"
],
"additionalProperties": false
}
Copied to Clipboard
{
"name": "ASR1K-MOP",
"_id": "ASR1K-MOP",
"namespace": {
"type": "project",
"_id": "5cb5252a1bbc5a00def564c1",
"name": "incididunt in irure sit",
"accessControl": {
"read": [
"Lorem dolor nulla sunt",
"tempor occaecat Ut aute"
],
"execute": [
"aliquip elit amet ad cillum"
],
"write": [
"sint dolore voluptate dolor",
"sit",
"velit laboris aute",
"occaecat Duis eiusmod ex exercitation"
],
"manage": [
"fugiat",
"laboris Lorem Excepteur",
"dolore sint fugiat in Excepteur",
"non adipisicing irure ut pariatur"
]
}
},
"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": "="
}
],
"preCommandResHTML": "Test a command or the template to get results here",
"postCommandResHTML": "Test a command or the template to get results here"
},
{
"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": "="
}
],
"preCommandResHTML": "Test a command or the template to get results here",
"postCommandResHTML": "Test a command or the template to get results here"
},
{
"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": "="
},
{
"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"
},
{
"preRawCommand": "show running-config ip prefix-list",
"postRawCommand": "show running-config ip prefix-list",
"passRule": false,
"rules": [
{
"type": "regex",
"preRegex": "",
"postRegex": "",
"evaluation": "="
},
{
"type": "regex",
"preRegex": "",
"postRegex": "",
"evaluation": "="
},
{
"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"
},
{
"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": "="
},
{
"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"
}