Uploading New UFM Appliance Version REST API
Using upgrade_ufm_appliance.py package which is part of the UFM software.
Using UFM REST API infrastructure to control the upgrade.
Prerequisite:
The upgrade is performed only on UFM APL.
The system's initial version is HA master/slave.
UFM runs on the master system.
Via REST API, download the UFM appliance image.
Via REST API, start upgrade using upgrade_ufm_appliance.py tool. The tool performs the following steps:
Validates cluster.
Retrieves HA status.
Verifies installed version.
Uploads the image to both systems.
Installs the image on both systems.
Changes boot location on slave.
Reloads slave.
Changes boot location on master.
Via REST API reload master.
Upload New UFM APL Image
Description – allows users to upload a new UFM APL image before applying the upgrade.
Request URL – POST /ufmRest/app//images/appliance
Request Content Type – Application/json
- Request Data: null
Status Codes
202 – ACCEPTED
400 – bad request (bad or missing parameters, allowed only 10 images).
Delete UFM APL Image
Description – allows users to delete an uploaded ufm apl .
Request URL – DELETE /ufmRest/app/images/appliance/<image_name>
Request Content Type – Application/json
Status Codes
202 – ACCEPTED
404 – NOT_FOUND
Activate UFM APL Upgrade Image
Description – Allows users to activate upgrade.
Request URL – POST /ufmRest/actions/appliance/upgrade
Request Content Type – Application/json
- Request Data: null
Status Codes
202 – ACCEPTED
400 – BAD REQUEST— Bad or missing parameter
404 – NOT_FOUND
Activate UFM APL Master reload
Description – Allows users to to reload master system.
Request URL – POST /ufmRest/actions/appliance/master_reboot
Request Content Type – Application/json
Request Data:
Status Codes
202 – ACCEPTED
Get the List of Available Images
Description – allows users to get all the availebe images applied on a device.
Request URL – GET /ufmRest/app/images/appliance
Request Content Type – Application/json
- Response Data: null
Status Codes
200 – OK
Get Upgrade Status
Description – get the upgrade status.
Request URL – GET /ufmRest/actions/appliance/upgrade_status
Request Content Type – Application/json
- Response Data: null
Status Codes
200 – OK
404 – NOT_FOUND (log file not found)