Summary
Export Template
Description
Export a single template
Route
POST /mop/export
Roles
admin
apiread
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
options |
object |
yes |
match a template using _id or name and type |
type |
string |
yes |
Template type: choose between 'templates' and 'analytics' |
Copied to Clipboard
{
"options": {
"_id": "mop_test_123"
},
"type": "analytics"
}
Copied to Clipboard
{
"type": "object",
"properties": {
"options": {
"title": "options",
"type": "object",
"examples": [
{
"_id": "mop_test_123"
},
{
"name": "mop_test_123"
}
]
},
"type": {
"title": "type",
"type": "string",
"enum": [
"templates",
"analytics"
]
}
},
"required": [
"options",
"type"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
template |
object |
Exported Template |
Copied to Clipboard
{
"name": "ASR1K-MOP",
"_id": "ASR1K-MOP",
"namespace": {
"type": "project",
"_id": "5cb5252a1bbc5a00def564c1",
"name": "ut quis sed aute",
"accessControl": {
"read": [
"dolore dolore",
"ad qui voluptate",
"eu laborum"
],
"execute": [
"culpa",
"elit occaecat cillum aute",
"ex labore"
],
"write": [
"quis fugiat et ipsum",
"aliqua in consectetur magna in",
"magna consequat incididunt reprehenderit",
"eiusmod reprehenderit"
],
"manage": [
"ullamco eiusmod sit ex ea",
"anim id",
"mollit in sit",
"aute Ut dolor"
]
}
},
"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
},
{
"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": false
},
{
"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"
}