Summary
Create an Analytic Template
Description
Create an Analytic Template.
Route
POST /mop/createAnalyticTemplate
Roles
admin
apiwrite
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
template |
object |
yes |
Analytic Template to save. |
Copied to Clipboard
{
"template": {
"name": "ASR1K-MOP",
"_id": "ASR1K-MOP",
"namespace": {
"type": "project",
"_id": "5cb5252a1bbc5a00def564c1",
"name": "anim aliquip ipsum exercitation",
"accessControl": {
"read": [
"anim officia",
"fugiat culpa",
"in amet cillum",
"dolore laboris commodo",
"exercitation quis Ut occaecat dolore"
],
"execute": [
"do",
"cillum sunt dolore"
],
"write": [
"sunt sint consequat do",
"adipisicing dolore magna reprehenderit",
"magna sint aliqua",
"non culpa quis"
],
"manage": [
"id et Lorem",
"officia elit aute in",
"eu aliquip",
"dolore sit dolore occaecat id",
"ut aliqua occaecat magna cillum"
]
}
},
"os": "cisco-ios",
"passRule": true,
"prepostCommands": [
{
"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": "="
}
],
"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 |
Result of the creation. |