For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Open sourceSupportFAQsDocs Home
DocumentationAPI ReferenceRelease notes
DocumentationAPI ReferenceRelease notes
  • Introduction
    • Overview
    • Authentication
  • Guides
    • Integration API routes
    • Operations Manager search APIs
    • Search API
    • URL query parameters
    • Use query parameters in API requests
  • Reference
        • POSTCreate a command template
        • POSTCreate an analytic template
        • POSTDelete a command template
        • POSTDelete an analytic template
        • POSTExport template
        • POSTFind the diff of two config strings
        • GETGet a command template by name
        • GETGet all analytic templates
        • GETGet all command templates
        • GETGet an analytic template by name
        • POSTGet filtered devices
        • GETGet filtered devices
        • GETGet filtered devices with detailed query results
        • POSTImport template
        • POSTMOP diff array
        • POSTMOP get boot flash
        • POSTMOP passthrough
        • POSTRetry a task automatically
        • POSTRun a command against a device
        • POSTRun a command against devices
        • POSTRun an analytics template
        • POSTRun an analytics template for devices
        • POSTRun command template
        • POSTRun single command from template
        • POSTUpdate a command template
        • POSTUpdate an analytic template
LogoLogo
Open sourceSupportFAQsDocs Home
ReferenceMop

Export template

POST
http://localhost:3000/mop/export
POST
/mop/export
$curl -X POST http://localhost:3000/mop/export \
> -H "Content-Type: application/json" \
> -u "<username>:<password>" \
> -d '{}'
1{
2 "_id": "ASR1K-MOP",
3 "name": "ASR1K-MOP",
4 "description": "Example description",
5 "namespace": null,
6 "os": "cisco-ios",
7 "passRule": true,
8 "commands": [
9 {
10 "command": "show running-config ip vrf",
11 "passRule": true,
12 "rules": [
13 {
14 "rule": "show version",
15 "eval": "contains",
16 "raw": "show version",
17 "result": true
18 }
19 ]
20 }
21 ],
22 "created": 1508182880981,
23 "createdBy": "admin@itential.com",
24 "lastUpdated": 1508182880981,
25 "lastUpdatedBy": "admin@itential.com"
26}
Exports a single template.
Was this page helpful?
Previous

Find the diff of two config strings

Next
Built with

Authentication

AuthorizationBasic

Basic authentication of the form Basic <base64(username:password)>.

Request

request body
optionsobjectOptional
typeenumOptional
Allowed values:

Response

Exported Template
mop templateobject
A mop template object
OR
mop analytic templateobject
A mop analytic template object

Errors

500
Internal Server Error