HCX Upgrade API
Following are the APIs available on HCX Manager useful for the upgrade process.
Note: In all these APIs, {{hcx_manager}} is the IP/FQDN of HCX Connector or Cloud Manager.
Step 1: Obtain session token for the HCX Manager.
This API requires HCX Manager SSO credentials to generate "x-hm-authorization" code.
POST https://{{hcx_manager}}/hybridity/api/sessions Headers: Content-Type: application/json Request Body: { "username":"[email protected]", "password":"<password>" }
Note: Use vCenter SSO credentials registered with HCX Manager in the request body.
Step 2: Fetch available upgrade notifications.
POST https://{{hcx_manager}}/hybridity/api/upgrade?action=getNotifications Headers: x-hm-authorization: {{x_hm_auth}} Content-Type: application/json Request Body: {"endpointId": "{{system_ID}}" }
Note: Enter "x-hm-authorization" obtained from Step 1. Also, enter "system_ID" obtained from HCX standalone/hybridity UI or vCenter Plugin UI under Administration - Support section.
Step 3: Trigger HCX Manager Upgrade process.
POST https://{{hcx_manager}}/hybridity/api/upgrade?action=start Headers: x-hm-authorization: {{x_hm_auth}} Content-Type: application/json Request Body: { "endpointId":"{{system_ID}}", "version":"{{upgradeVersion}}" }
Note: Enter desired "upgradeVersion" details obtained from Step 2 needed for upgrade.
Step 4: Fetch upgrade progress details.
POST https://{{hcx_manager}}/hybridity/api/upgrade?action=queryStatus Headers: x-hm-authorization: {{x_hm_auth}} Content-Type: application/json Request Body: {"endpointId":"{{system_ID}}"}