Cisco Prime Infrastructure API
Prime Infrastructure API Documentation

POST

# POST cliTemplateConfiguration/upload

- Jump To

### Resource Information

Rate Limiting? | Yes
Sorting? | No
Paging? | No
Filtering? | No
Response Formats | xml json
HTTP Methods | POST

Upload a new template into the system.

## Resource URL

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

Since : 2.0

## 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.
CliTemplateVariableDefinition[] | variables | A list of variables needed for this template
Type | Attribute Name | Description
--- | --- | ---
String | defaultValue | A default value if the value is not specified when deployed.
String | description | A description of the variable.
String | name | The variable name.
boolean | required | Does the variable have to be set?
String | type | The variable type.

## 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://192.168.116.207/webacs/api/v1/op/cliTemplateConfiguration/upload

XML

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <cliTemplate>
        <content>String value</content>
        <description>String value</description>
        <deviceType>String value</deviceType>
        <name>String value</name>
        <variables>
            <variable>
                <defaultValue>String value</defaultValue>
                <description>String value</description>
                <name>String value</name>
                <required>true</required>
                <type>String value</type>
            </variable>
        </variables>
    </cliTemplate>

### Sample JSON Request Payload

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

    {
      "cliTemplate" : {
        "content" : "String value",
        "description" : "String value",
        "deviceType" : "String value",
        "name" : "String value",
        "variables" : {
          "variable" : {
            "defaultValue" : "String value",
            "description" : "String value",
            "name" : "String value",
            "required" : true,
            "type" : "String value"
          }
        }
      }
    }