URL: https://<hcx_manager_ip>/hybridity/api/upgrade?action=getNotifications
METHOD: POST
BODY: Pass the NULL values for endpointId and version JSON (This is required to trigger the Update Notification on the system) in the post call. {“endpointId": "", "version": “”}
REQUEST HEADERS: x-hm-authorization: <access_token >
content-type: application/json
accept: application/json
RESPONSE CONTENT: {'endpointId': '#######################################
', 'version': '4.3.0.0.19064502'}
3. We perform the upgrade on the system. Please Note: This will be a service affecting API call, the system will reboot.
URL: https://<hcx_manager_ip>/hybridity/api/upgrade?action=start
METHOD: POST
BODY: Pass the version and endpointId obtained from getNotifications as JSON.
REQUEST HEADER: x-hm-authorization: <access_token>
content-type: application/json
accept: application/json
4. Finally we verify if the system has been upgraded to the desired version.
URL: https://<hcx_manager_ip>/hybridity/api/hcspAppliances
METHOD: POST
BODY: Pass this as JSON body {"action": "query", "filter": {"local": "true"}}
REQUEST HEADER: x-hm-authorization: <access_token>
content-type: application/json
accept: application/json
RESPONSE CONTENT: [{'systemName': ‘hcx_fqdn', 'systemType': 'HCX Cloud', 'version': 'current_running_version'}]