REST Resources
/api/space/software-management/packages/{id}/exec-stage
The following operation is supported on this resource:
- POST - Stage Image on Devices
POST /packages/{id}/exec-stage | Version 1 |
This API stages the software package on the real device (from Junos Space to the physical device).
Sample Usage
This API makes an asynchronous method call; so, you can optionally specify queue and schedule parameters:
POST /packages/{id}/exec-stage?queue=<queue>&schedule=<schedule>
Note: The queue URL denoted by <queue> must have been created already.
-
Parameters:
Name Type URI Type Description Required software-package-id int 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-stage+xml;version=1;charset=UTF-8
application/vnd.net.juniper.space.software-management.exec-stage+json;version=1;charset=UTF-8 -
Accept Headers:
application/vnd.net.juniper.space.software-management.exec-stage+xml;version=1
application/vnd.net.juniper.space.software-management.exec-stage+json;version=1
<exec-stage>
<devices>
<device href=
"/api/space/device-management/devices/458753" />
</devices>
<stageOptions>
<cleanUpExistingOnDevice>false</cleanUpExistingOnDevice>
</stageOptions>
</exec-stage>
<task href="/api/space/job-management/jobs/3997704">
<id>3997704</id>
</task>
{
"exec-stage": {
"devices": [
{
"device":{
"@href":"/api/space/device-management/devices/458753"
}
},
]
"stageOptions":
{
"cleanUpExistingOnDevice":"false"
}
}
}
{
"task": {
"@href":"/api/space/job-management/jobs/3997704",
"id":3997704
}
}
Access Control
The following capabilities are required to access this API: StageImageCap