Summary
Get All Command Templates
Description
Get all Command Templates.
Route
GET /mop/listTemplates
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
This method has no parameters |
null
{ "type": "object", "properties": {}, "required": [], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
listTemplates | object | All Command Templates. |
[ { "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": 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": 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 } ] } ], "created": 1508182880981, "createdBy": "exampleUser", "lastUpdated": 1508182880981, "lastUpdatedBy": "exampleUser" }, { "name": "ASR1K-MOP", "_id": "ASR1K-MOP", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "Ut labore velit", "accessControl": { "read": [ "irure nisi dolor commodo", "qui quis", "esse in ad consectetur", "dolor consectetur Ut anim pariatur" ], "execute": [ "laborum sed" ], "write": [ "ut qui", "pariatur", "velit qui" ], "manage": [ "non tempor reprehenderit fugiat sit" ] } }, "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": true, "rules": [ { "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": 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": "nulla", "accessControl": { "read": [ "quis culpa nulla tempor", "cillum irure incididunt" ], "execute": [ "amet et", "proident exercitation consequat dolor cupidatat" ], "write": [ "veniam sint ea aliquip adipisicing", "incididunt esse labore", "dolor", "ex ea", "cupidatat veniam reprehenderit elit aliquip" ], "manage": [ "occaecat irure in" ] } }, "os": "cisco-ios", "passRule": true, "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": true, "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 } ] }, { "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": 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": 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": false, "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": true }, { "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" }, { "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": true }, { "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 } ] }, { "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": false }, { "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" }, { "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": 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": 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 } ] }, { "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 } ] }, { "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" } ]
{ "title": "listTemplates", "type": "array", "items": { "$ref": "mopTemplateDoc" } }