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": {
"name": "mop_test_123"
},
"type": "templates"
}
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": "adipisicing veniam",
"accessControl": {
"read": [
"sint do pariatur in",
"irure incididunt ullamco in tempor",
"dolor magna irure"
],
"execute": [
"nulla dolor ipsum minim Excepteur",
"fugiat cupidatat elit",
"ullamco dolore nulla adipisicing commodo",
"ullamco Lorem enim ea ut"
],
"write": [
"minim culpa incididunt",
"dolor",
"consectetur adipisicing tempor",
"ullamco in quis eiusmod officia"
],
"manage": [
"minim ut",
"in dolore",
"proident Ut qui anim tempor",
"aute eiusmod ut id mollit",
"do velit"
]
}
},
"os": "cisco-ios",
"passRule": false,
"prepostCommands": [
{
"preRawCommand": "show running-config ip prefix-list",
"postRawCommand": "show running-config ip prefix-list",
"passRule": true,
"rules": [
{
"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"
}