Cisco Evolved Programmable Network Manager API
Evolved Programmable Network Manager API Documentation

POST cliTemplateConfiguration/upload

Resource Information

Rate Limiting?

Yes

Sorting?

No

Paging?

No

Filtering?

No

Response Formats

xml

json

User Group

NBI Write

HTTP Methods

POST

Upload a new template into the system. Does not support Converged Access Templates (IOS-XE templates and templates created from them).

Since Product Version: 2.0

Resource URL

/webacs/api/v1/op/cliTemplateConfiguration/upload

Request Payload Parameters

Type Attribute Name Description

String

content

The content of the template that will be populated with variable values and sent to devices.

String

description

A description of the template

String

deviceType

The types of devices this template is applicable for, comma seperated.

String

name

The name of the template.

String

path

Template path

String

tags

Tags list separated by comma

CliTemplateVariableDefinition[]

variables

A list of variables needed for this template

String

version

iOS version

Sample Payloads

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 Request Payload

https://172.25.123.114/webacs/api/v1/op/cliTemplateConfiguration/upload

<?xml version="1.0" ?>
<cliTemplate>
  <content>String value</content>
  <description>String value</description>
  <deviceType>String value</deviceType>
  <name>String value</name>
  <path>String value</path>
  <tags>String value</tags>
  <variables>
    <variable>
      <defaultValue>String value</defaultValue>
      <description>String value</description>
      <displayLabel>String value</displayLabel>
      <name>String value</name>
      <rangeFrom>String value</rangeFrom>
      <rangeTo>String value</rangeTo>
      <required>true</required>
      <type>String value</type>
      <validationExpression>String value</validationExpression>
    </variable>
  </variables>
  <version>String value</version>
</cliTemplate>

Sample JSON Request Payload

https://172.25.123.114/webacs/api/v1/op/cliTemplateConfiguration/upload.json

{
  "cliTemplate" : {
    "content" : "String value",
    "description" : "String value",
    "deviceType" : "String value",
    "name" : "String value",
    "path" : "String value",
    "tags" : "String value",
    "variables" : {
      "variable" : {
        "defaultValue" : "String value",
        "description" : "String value",
        "displayLabel" : "String value",
        "name" : "String value",
        "rangeFrom" : "String value",
        "rangeTo" : "String value",
        "required" : true,
        "type" : "String value",
        "validationExpression" : "String value"
      }
    },
    "version" : "String value"
  }
}