getSiteAllUpgrades

GET https://{{host}}/api/v1/sites/:site_id/devices/upgrade

Response Parameters

NameTypeDescription
iduuidunique id for the upgrade
target_versionstringversion to upgrade to
statusstringstatus upgrade is in (created/downloading/downloaded/upgrading/completed/cancelled/failed)
strategystringupgrade strategy
enable_p2pboolwhether to allow local AP-to-AP FW upgrade, default False
p2p_cluster_sizeintsize to split the devices for p2p, default 10
forceboolwhether to force upgrade when requested version is same as running version
start_timeintfirmware download start time in epoch
reboot_atintreboot start time in epoch
max_failure_percentageintpercentage of failures allowed
max_failuresarray of intsnumber of failures allowed within a canary phase or serial rollout
current_phaseintcurrent canary/rrm phase in progress
upgrade_planobjecta dictionary of canary/rrm phase number to devices part of that phase
download_timestringtime taken to download firmware on all devices
upgrade_timestringtime taken to upgrade firmware all devices
counts.totalintcount of devices part of this upgrade
counts.scheduledintcount of devices which cloud has scheduled an upgrade for
counts.download_requestedintcount of devices which cloud has requested to download firmware
counts.downloadedintcount of devices which have the firmware downloaded
counts.reboot_in_progressintcount of devices which are rebooting
counts.rebootedintcount of devices which have rebooted successfully
counts.upgradedintcount of devices which have upgraded successfully
counts.skippedintcount of devices which skipped upgrade since requested version was same as running version. Use force to always upgrade
counts.failedintcount of devices which have failed to upgrade

Request Params

KeyDatatypeRequiredDescription
statusnullcreated/downloading/downloaded/upgrading/completed/cancelled/failed

RESPONSES

status: OK

[{"id":"e110e3ef-5ce9-4c7c-a056-714f154f354f","target_version":"apfw-0.7.20216-gilly-d4fc","status":"downloading","strategy":"big_bang","enable_p2p":false,"force":true,"start_time":1624499588,"reboot_at":1624499588,"max_failure_percentage":5,"counts":{"download_requested":1,"downloaded":2,"total":3}},{"id":"57bf9d30-bd30-48e6-bb76-43c2efa375dc","target_version":"apfw-0.7.20216-gilly-d4fc","status":"completed","strategy":"serial","enable_p2p":false,"force":false,"start_time":1624499588,"reboot_at":1624499588,"max_failure_percentage":5,"counts":{"upgraded":2,"failed":1,"total":3}}]