Cisco Prime Infrastructure API
Prime Infrastructure API Documentation

GET CliTemplate

Resource Information

Rate Limiting?

Yes

Sorting?

Yes

Paging?

Yes

Filtering?

Yes

Response Formats

xml

json

User Group

NBI Read

HTTP Methods

GET

CLI configuration templates.

Resource URL

/webacs/api/v1/data/CliTemplate

Since : 2.2

Response Parameters

Type Attribute Name Description

String

content

Content of the template.

String

description

Human-readable description of the template.

String

deviceType

Comma-separated list of devices on which the template is allowed to be deployed.

String

name

Name of the template

String

path

Full name of folder where template is stored.

CliTemplateVariable[]

variable

CLI Template variables used in content.

Sample payloads are for information only. They are automatically generated and the values included may not be representative of actual valid data values.

Sample XML Payload

https://szier-m8-106.cisco.com/webacs/api/v1/data/CliTemplate/42

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<queryResponse rootUrl="https://szier-m8-106.cisco.com/webacs/api/v1/data" requestUrl="https://szier-m8-106.cisco.com/webacs/api/v1/data/CliTemplate/42" responseType="getEntity">
    <entity url="https://szier-m8-106.cisco.com/webacs/api/v1/data/CliTemplate/15" type="CliTemplate" dtoType="cliTemplateDTO">
        <cliTemplateDTO id="15" displayName="String value">
            <content>String value</content>
            <description>String value</description>
            <deviceType>String value</deviceType>
            <name>String value</name>
            <path>String value</path>
            <variables>
                <variable>
                    <defaultValue>String value</defaultValue>
                    <description>String value</description>
                    <displayLabel>String value</displayLabel>
                    <name>String value</name>
                    <required>String value</required>
                    <type>String value</type>
                </variable>
            </variables>
        </cliTemplateDTO>
    </entity>
</queryResponse>

Sample JSON Payload

https://szier-m8-106.cisco.com/webacs/api/v1/data/CliTemplate/42.json

{
  "queryResponse" : {
    "@rootUrl" : "https : \/\/szier-m8-106.cisco.com\/webacs\/api\/v1\/data",
    "@requestUrl" : "https : \/\/szier-m8-106.cisco.com\/webacs\/api\/v1\/data\/CliTemplate\/42",
    "@responseType" : "getEntity",
    "entity" : {
      "@url" : "https : \/\/szier-m8-106.cisco.com\/webacs\/api\/v1\/data\/CliTemplate\/15",
      "@type" : "CliTemplate",
      "@dtoType" : "cliTemplateDTO",
      "cliTemplateDTO" : {
        "@id" : "15",
        "@displayName" : "String value",
        "content" : "String value",
        "description" : "String value",
        "deviceType" : "String value",
        "name" : "String value",
        "path" : "String value",
        "variables" : {
          "variable" : {
            "defaultValue" : "String value",
            "description" : "String value",
            "displayLabel" : "String value",
            "name" : "String value",
            "required" : "String value",
            "type" : "String value"
          }
        }
      }
    }
  }
}