REST Resources
/api/space/software-management/packages/{id}/exec-undeploy
The following operation is supported on this resource:
- POST - Undeploys the JAM Package from the Devices
POST /packages/{id}/exec-undeploy | Version 1 |
Undeploys the JAM Package from the Devices ( JAM supported Devices - MX240, MX480, MX960, MX2010 and MX2020 ).
Sample Usage
This API makes an asynchronous method call; so, you can optionally specify queue and schedule parameters:
POST /packages/{id}/exec-undeploy?queue=<queue>&schedule=<schedule>
Note: The queue URL denoted by <queue> must have been created already.
-
Parameters:
Name Type URI Type Description Required device-image-id Integer Path The ID for the software package under operation. Y queue Queue 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-Type Headers:
application/vnd.net.juniper.space.software-management.exec-undeploy+xml;version=1;charset=UTF-8
application/vnd.net.juniper.space.software-management.exec-undeploy+json;version=1;charset=UTF-8 -
Accept Headers:
application/vnd.net.juniper.space.job-management.task+xml;version=1
application/vnd.net.juniper.space.job-management.task+json;version=1
<exec-undeploy>
<devices>
<device href="/api/space/device-management/devices/25755665"/>
</devices>
</exec-undeploy>
<task href="/api/space/job-management/jobs/688128">
<id>688128</id>
</task>
{
"exec-undeploy" : {
"devices" : [
{
"device" : {
"@href" : "/api/space/device-management/devices/25755665"
}
}
]
}
}
{
"task":{
"@href":"/api/space/job-management/jobs/688128",
"id":688132
}
}
Access Control
The following capabilities are required to access this API: UnDeployJAMCap