Summary
Get a Command Template by Name
Description
Get a Command Template by name.
Route
GET /mop/listATemplate/:name
Roles
admin
engineering
support
apiread
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
name |
string |
yes |
Name of the Command Template. |
Copied to Clipboard
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
listATemplate |
array |
Single Command Template matching the name. |
Copied to Clipboard
[
{
"name": "ASR1K-MOP",
"_id": "ASR1K-MOP",
"os": "cisco-ios",
"passRule": true,
"commands": [
{
"command": "show running-config ip vrf",
"passRule": true,
"rules": [
{
"rule": "show version",
"eval": "contains",
"raw": "show version",
"result": true
},
{
"rule": "show version",
"eval": "contains",
"raw": "show version",
"result": false
},
{
"rule": "show version",
"eval": "contains",
"raw": "show version",
"result": false
},
{
"rule": "show version",
"eval": "contains",
"raw": "show version",
"result": true
}
]
},
{
"command": "show running-config ip vrf",
"passRule": false,
"rules": [
{
"rule": "show version",
"eval": "contains",
"raw": "show version",
"result": false
},
{
"rule": "show version",
"eval": "contains",
"raw": "show version",
"result": false
},
{
"rule": "show version",
"eval": "contains",
"raw": "show version",
"result": true
}
]
},
{
"command": "show running-config ip vrf",
"passRule": true,
"rules": [
{
"rule": "show version",
"eval": "contains",
"raw": "show version",
"result": false
},
{
"rule": "show version",
"eval": "contains",
"raw": "show version",
"result": true
},
{
"rule": "show version",
"eval": "contains",
"raw": "show version",
"result": true
}
]
},
{
"command": "show running-config ip vrf",
"passRule": true,
"rules": [
{
"rule": "show version",
"eval": "contains",
"raw": "show version",
"result": true
}
]
},
{
"command": "show running-config ip vrf",
"passRule": false,
"rules": [
{
"rule": "show version",
"eval": "contains",
"raw": "show version",
"result": true
},
{
"rule": "show version",
"eval": "contains",
"raw": "show version",
"result": false
},
{
"rule": "show version",
"eval": "contains",
"raw": "show version",
"result": true
}
]
}
],
"created": 1508182880981,
"createdBy": "exampleUser",
"lastUpdated": 1508182880981,
"lastUpdatedBy": "exampleUser"
}
]
Copied to Clipboard
{
"title": "listATemplate",
"type": "array",
"items": {
"$ref": "mopTemplateDoc"
}
}