/api/space/config-template-management/config-templates/{id}/configuration
The following operations are supported on this resource:
GET /api/space/config-template-management/config-templates/{id}/configuration (v1, expires: Dec 03, 2014)
This API gets the XML configuration associated with a specified configuration template.
Access Control
The following capabilities are required to access this API:
"AddDeployedDevices"
Example Usage
GET /api/space/config-template-management/config-templates/{id}/configurationParameters
Name | Type | URI Type | Description | Required |
id | Integer | Path | The ID of the configuration template. | Y |
Content Types
-
Produces content types:
application/vnd.net.juniper.space.config-template-management.configuration+xml;version=1;q=0.01
application/vnd.net.juniper.space.config-template-management.configuration+json;version=1;q=0.01 -
Sample Output XML:
<configuration
href="/api/space/config-template-management/config-templates/{id}/configuration" uri="/api/space/config-template-management/config-templates/{id}/configuration">
<data><![CDATA[String]]></data>
</configuration> -
Sample Output JSON:
{
"configuration" : {
"@href" :
"/api/space/config-template-management/config-templates/{id}/configuration" ,
"@uri" :
"/api/space/config-template-management/config-templates/{id}/configuration" ,
"data" : "String"
}
}
GET /api/space/config-template-management/config-templates/{id}/configuration (v2)
This API returns a template configuration in XML or JSON format.
Example Usage
GET /api/space/config-template-management/config-templates/{id}/configurationParameters
Name | Type | URI Type | Description | Required |
templateid | String | Path | The ID of the configuration template. | Y |
Content Types
-
Produces content types:
application/vnd.net.juniper.space.config-template-management.configuration-cli+xml;version=2;q=0.02
application/vnd.net.juniper.space.config-template-management.configuration-cli+json;version=2;q=0.02 -
Sample Output XML:
<configuration-cli uri="/api/space/config-template-management/config-templates/{template-id}/configuration">
<cli>String</cli>
</configuration-cli> -
Sample Output JSON:
{
"configuration-cli" : {
"@uri" :
"/api/space/config-template-management/config-templates/{template-id}/configuration"
,
"cli" : "String"
}
}
GET /api/space/config-template-management/config-templates/{id}/configuration (v2)
This API returns a template configuration in XML or JSON format.
Example Usage
GET /api/space/config-template-management/config-templates/{id}/configurationParameters
Name | Type | URI Type | Description | Required |
templateid | String | Path | The ID of the configuration template. | Y |
Content Types
-
Produces content types:
application/vnd.net.juniper.space.config-template-management.configuration-xml+xml;version=2;q=0.02
application/vnd.net.juniper.space.config-template-management.configuration-xml+json;version=2;q=0.02 -
Sample Output XML:
<configuration-xml uri="/api/space/config-template-management/config-templates/{template-id}/configuration">
<xml><![CDATA[String]]></xml>
</configuration-xml> -
Sample Output JSON:
{
"configuration-xml" : {
"@uri" :
"/api/space/config-template-management/config-templates/{template-id}/configuration"
,
"xml" : "String"
}
}
GET /api/space/config-template-management/config-templates/{id}/configuration (v2)
This API returns a configuration template in XML or JSON format.
Example Usage
GET /api/space/config-template-management/config-templates/{id}/configurationParameters
Name | Type | URI Type | Description | Required |
templateid | String | Path | The ID of the configuration template. | Y |
Content Types
-
Produces content types:
application/vnd.net.juniper.space.config-template-management.configuration-all+xml;version=2;q=0.02
application/vnd.net.juniper.space.config-template-management.configuration-all+json;version=2;q=0.02 -
Sample Output XML:
<configuration-all uri="/api/space/config-template-management/config-templates/{template-id}/configuration">
<cli>String</cli>
<xml><![CDATA[String]]></xml>
</configuration-all> -
Sample Output JSON:
{
"configuration-all" : {
"@uri" :
"/api/space/config-template-management/config-templates/{template-id}/configuration"
,
"cli" : "String" ,
"xml" : "String"
}
}
POST /api/space/config-template-management/config-templates/{id}/configuration (v2)
This API sets a template configuration. It takes the JSON format only.
Example Usage
POST /api/space/config-template-management/config-templates/{id}/configurationParameters
Name | Type | URI Type | Description | Required |
templateid | String | Path | Template ID | Y |
Content Types
-
Consumes content types:
application/vnd.net.juniper.space.config-template-management.configuration-cli-request+xml;version=2;charset=UTF-8
application/vnd.net.juniper.space.config-template-management.configuration-cli-request+json;version=2;charset=UTF-8 -
Produces content types:
application/vnd.net.juniper.space.config-template-management.configuration-update-result+xml;version=2;q=0.02
application/vnd.net.juniper.space.config-template-management.configuration-update-result+json;version=2;q=0.02 -
Sample Input XML:
<configuration-cli-request>
<clis>String</clis>
</configuration-cli-request> -
Sample Output XML:
<configuration-update-result uri="/api/space/config-template-management/config-templates/{template-id}/configuration">
<err-message>String</err-message>
<errors>
<validation-error>
<err-reason>String</err-reason>
<line-number>Integer</line-number>
</validation-error>
</errors>
<status>String</status>
<variable-existing>Boolean</variable-existing>
</configuration-update-result> -
Sample Input JSON:
{
"configuration-cli-request" : {
"clis" : "String"
}
} -
Sample Output JSON:
{
"configuration-update-result" : {
"@uri" :
"/api/space/config-template-management/config-templates/{template-id}/configuration"
,
"err-message" : "String" ,
"errors" : {
"validation-error" : {
"err-reason" : "String" ,
"line-number" : "Integer"
}
} ,
"status" : "String" ,
"variable-existing" : "Boolean"
}
}