upgradeSiteDevice
POST https://{{host}}/api/v1/sites/:site_id/devices/:device_id/upgrade
Body Parameters
Parameter | Type | Description |
---|
version | string | specific version / stable , default is to use the latest |
reboot | boolean | Reboot device immediately after upgrade is completed, default is false (Available on Junos OS devices) |
snapshot | boolean | Perform recovery snapshot after device is rebooted, default is false (Available on Junos OS devices) |
Body Response
Parameter | Type | Description |
---|
timestamp | float | timestamp |
status | string | starting / inprogress / success / error / scheduled |
status_id | int | the internal status id |
Request Body
{"version"=>"3.1.5"}
Key | Datatype | Required | Description |
---|
Accept | string | | |
X-CSRFToken | string | | |
Content-Type | string | | |
RESPONSES
status: OK
{"timestamp":1428949501,"status":"inprogress","status_id":5}