upgradeSiteDevices
Upgrade Site Device
Note: this call doesn’t guarantee the devices to be upgraded right away (they may be offline)
Preferred authentication method for automation and integrations. Send the API token in the HTTP Authorization header.
Format:
Authorization: Token {apitoken}
Notes:
- An API token generated for a specific admin has the same privileges as that admin
- An API token is automatically removed if it is not used for more than 90 days
- SSO admins cannot generate admin API tokens. Use organization API tokens when scoped Org/Site privileges are needed.
In: header
Path Parameters
uuidRequest Body
application/json
Request Body
Site device upgrade request
Only if strategy==canary. Canary phase percentages for the site upgrade
Default
[ 1, 10, 50, 100]Specific device IDs selected for the site upgrade
For APs only. Whether to allow local AP-to-AP FW upgrade
force==true will force upgrade when requested version is same as running version
falseIf strategy!=big_bang. Allowed failure percentage across the site upgrade
0 <= value <= 1005If strategy==canary. Per-phase failure limits for the site upgrade
Device models selected for the site upgrade
For APs only and if enable_p2p==true. Size to split devices for peer-to-peer download batches; default 10
0 <= value10For APs only and if enable_p2p==true. Number of parallel peer-to-peer download batches to create. If not set, automatically determined based on device count (<=50 uses 1, 51-100 uses 3, >100 uses 10)
For Switches and Gateways only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
falseFor Switches and Gateways only and if reboot==true. Reboot start time in epoch seconds, default is start_time
For APs only and if strategy==rrm. Percentage of APs that need to be present in the first RRM batch
For APs only and if strategy==rrm. Max percentage of APs that need to be present in each RRM batch
For APs only and if strategy==rrm. Mesh AP upgrade order for the site upgrade. enum: parallel, sequential.
"sequential"Value in
- "parallel"
- "sequential"
For APs only and if strategy==rrm. AP ordering direction for RRM upgrade batches. enum: center_to_fringe, fringe_to_center.
"fringe_to_center"Value in
- "center_to_fringe"
- "fringe_to_center"
For APs only and if strategy==rrm. True will make rrm batch sizes slowly ramp up
Selection rules used to choose devices for this site upgrade
For Junos devices only. Perform recovery snapshot after device is rebooted
falseUpgrade start time in epoch seconds, default is now
Upgrade orchestration strategy for selected devices. enum: big_bang, canary, rrm, serial.
"big_bang"Value in
- "big_bang"
- "canary"
- "rrm"
- "serial"
Specific version / stable, default is to use the latest available version
Response Body
curl -X POST "https://example.com/api/v1/sites/000000ab-00ab-00ab-00ab-0000000000ab/devices/upgrade" \ -H "Content-Type: application/json" \ -d '{}'{ "upgrade_id": "4316c116-0acb-4c43-8f06-6723154e741e"}listSiteDeviceUpgrades GET
List device upgrade operations for a site, optionally filtered by upgrade status. Use [List Org Device Upgrades](/api/mist/utilities/utilities-upgrade/listOrgDeviceUpgrades) to retrieve device upgrade operations across the organization.
listSiteMxEdgeUpgrades GET
List Mist Edge upgrade operations for a site. Use [List Org Mist Edge Upgrades](/api/mist/utilities/utilities-upgrade/listOrgMxEdgeUpgrades) to retrieve Mist Edge upgrade operations across the organization.