/api/space/config-template-management/config-templates/{id}/exec-deploy (v1)
The following operations are supported on this resource:
-
POST- Deploys a configuration template to a device or a list of devices
POST /api/space/config-template-management/config-templates/{id}/exec-deploy (v1, expires: Oct 04, 2014)
This API deploys a configuration template to a device or a list of devices.
Access Control
The following capabilities are required to access this API:
"DeployTemplate"
Example Usage
Since this API makes an asynchronous method call, the user can optionally specify a queue parameter.
POST /api/space/config-template-management/config-templates/{id}/exec-deploy?queue-url=<queue-url>&schedule=<schedule>Note: It is assumed that the queue denoted by <queue-url> has, already, been created.
Parameters
Name | Type | URI Type | Description | Required |
id | Integer | Path | The ID of the configuration template to deploy. | Y |
queue-url | URL | Query | A fully qualified queue URL, where job progress notifications will be sent (See Asynchronous API Usage) | N |
schedule | cron-like-expression | Query | Schedule this API in the future, by specifying a cron-like-expression (See Job Scheduling) | N |
Content Types
-
Consumes content types:
application/vnd.net.juniper.space.config-template-management.exec-deploy-request+xml;version=1;charset=UTF-8
application/vnd.net.juniper.space.config-template-management.exec-deploy-request+json;version=1;charset=UTF-8 -
Produces content types:
application/vnd.net.juniper.space.job-management.task+xml;version=1;q=0.01
application/vnd.net.juniper.space.job-management.task+json;version=1;q=0.01 -
Sample Input XML:
<exec-deploy-request>
<devices>
<device href="/api/space/device-management/devices/{id}"/>
</devices>
</exec-deploy-request> -
Sample Input JSON:
{
"exec-deploy-request" : {
"devices" : {
"device" : {
"@href" : "/api/space/device-management/devices/{id}"
}
}
}
}
For the current version of this API, refer to :