Summary
Get a Command Template by Name
Description
Get a Command Template by name.
Route
GET /mop/listATemplate/:name
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
name | string | yes | Name of the Command Template. |
null
{ "type": "object", "properties": {}, "required": [], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
listATemplate | array | Single Command Template matching the name. |
[ { "name": "ASR1K-MOP", "_id": "ASR1K-MOP", "namespace": null, "os": "cisco-ios", "passRule": false, "commands": [ { "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 } ] }, { "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 } ] }, { "command": "show running-config ip vrf", "passRule": false, "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": false }, { "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": true } ] } ], "created": 1508182880981, "createdBy": "exampleUser", "lastUpdated": 1508182880981, "lastUpdatedBy": "exampleUser" }, { "name": "ASR1K-MOP", "_id": "ASR1K-MOP", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "incididunt", "accessControl": { "read": [ "nostrud commodo enim", "esse sed incididunt sint tempor", "quis veniam mollit", "nisi irure sit" ], "execute": [ "irure Duis officia nostrud", "esse enim aute", "id esse officia occaecat" ], "write": [ "elit magna ea", "commodo est minim" ], "manage": [ "dolor", "veniam", "velit aliqua", "qui Excepteur minim ut", "Duis" ] } }, "os": "cisco-ios", "passRule": false, "commands": [ { "command": "show running-config ip vrf", "passRule": true, "rules": [ { "rule": "show version", "eval": "contains", "raw": "show version", "result": false } ] }, { "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": 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": false } ] } ], "created": 1508182880981, "createdBy": "exampleUser", "lastUpdated": 1508182880981, "lastUpdatedBy": "exampleUser" }, { "name": "ASR1K-MOP", "_id": "ASR1K-MOP", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "qui et proident", "accessControl": { "read": [ "aliqua Excepteur nisi pariatur in", "cillum ea anim" ], "execute": [ "commodo ad exercitation", "elit irure in velit ad", "ipsum", "nisi dolore", "ipsum" ], "write": [ "Excepteur dolore incididunt in", "dolor nostrud in", "dolor eu", "in ex", "incididunt" ], "manage": [ "laborum pariatur non", "irure amet aliqua cillum qui", "magna" ] } }, "os": "cisco-ios", "passRule": false, "commands": [ { "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": true } ] }, { "command": "show running-config ip vrf", "passRule": false, "rules": [ { "rule": "show version", "eval": "contains", "raw": "show version", "result": false } ] } ], "created": 1508182880981, "createdBy": "exampleUser", "lastUpdated": 1508182880981, "lastUpdatedBy": "exampleUser" }, { "name": "ASR1K-MOP", "_id": "ASR1K-MOP", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "cillum in sit amet", "accessControl": { "read": [ "nostrud officia ipsum ad", "eiusmod ipsum officia" ], "execute": [ "adipisicing laboris aute laborum", "eu sit tempor aliqua enim", "amet cillum dolor aute et" ], "write": [ "ipsum exercitation cupidatat", "labore officia fugiat laboris ipsum", "esse in exercitation" ], "manage": [ "cupidatat nulla veniam est", "minim enim sit eu" ] } }, "os": "cisco-ios", "passRule": false, "commands": [ { "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": 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": true }, { "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 }, { "rule": "show version", "eval": "contains", "raw": "show version", "result": false } ] }, { "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": true }, { "rule": "show version", "eval": "contains", "raw": "show version", "result": false } ] }, { "command": "show running-config ip vrf", "passRule": true, "rules": [ { "rule": "show version", "eval": "contains", "raw": "show version", "result": false } ] }, { "command": "show running-config ip vrf", "passRule": true, "rules": [ { "rule": "show version", "eval": "contains", "raw": "show version", "result": false } ] } ], "created": 1508182880981, "createdBy": "exampleUser", "lastUpdated": 1508182880981, "lastUpdatedBy": "exampleUser" }, { "name": "ASR1K-MOP", "_id": "ASR1K-MOP", "namespace": null, "os": "cisco-ios", "passRule": true, "commands": [ { "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": true } ] }, { "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": true }, { "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": false } ] }, { "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": 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": false } ] }, { "command": "show running-config ip vrf", "passRule": false, "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 } ] } ], "created": 1508182880981, "createdBy": "exampleUser", "lastUpdated": 1508182880981, "lastUpdatedBy": "exampleUser" } ]
{ "title": "listATemplate", "type": "array", "items": { "$ref": "mopTemplateDoc" } }