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
    • 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

Get all analytic templates

GET
http://localhost:3000/mop/listAnalyticTemplates
GET
/mop/listAnalyticTemplates
$curl http://localhost:3000/mop/listAnalyticTemplates \
> -u "<username>:<password>"
1[
2 {
3 "name": "ASR1K-MOP",
4 "_id": "ASR1K-MOP",
5 "description": "Example description",
6 "namespace": null,
7 "os": "cisco-ios",
8 "passRule": true,
9 "prepostCommands": [
10 {
11 "preRawCommand": "show running-config ip prefix-list",
12 "postRawCommand": "show running-config ip prefix-list",
13 "passRule": true,
14 "rules": [
15 {
16 "type": "regex",
17 "preRegex": "",
18 "postRegex": "",
19 "evaluation": "="
20 }
21 ],
22 "preCommandResHTML": "Test a command or the template to get results here",
23 "postCommandResHTML": "Test a command or the template to get results here"
24 }
25 ],
26 "created": 1508182880981,
27 "createdBy": "exampleUser",
28 "lastUpdated": 1508182880981,
29 "lastUpdatedBy": "exampleUser"
30 }
31]
Returns all Analytic Templates.
Was this page helpful?
Previous

Get all command templates

Next
Built with

Authentication

AuthorizationBasic

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

Response

All Analytic Templates.
namestring
_idstring
descriptionstring
namespaceobject or null
osstring
passRuleboolean
prepostCommandslist of objects
createdinteger
createdBystring or null
lastUpdatedinteger
lastUpdatedBystring or null

Errors

500
Internal Server Error