Upgrading HCX Interconnect Appliances via API

HCX Interconnect appliances are deployed from the OVA’s which are included in the HCX Manager appliance. When HCX Manager is upgraded to a newer version, it contains the corresponding upgrade bits for IX appliances which are used to upgrade the IX components. 

There is a GET /appliances API call which when fired, looks for newer versions of OVA.  Once the newer version of ova is found, its version is then compared with the version of the deployed appliance. If both versions are the same, no action is taken. However, if the deployed version is lower than the newly discovered version, info about the upgrade is returned in the API call response. 

Below are the API calls which we need to execute for upgrading IX appliances.

Step 1: Obtain Auth Token

Make a note of the x-hm-authorization token value as we need to supply it in subsequent calls.

Step 2: Fetch IX & NE Appliance ID

Response Output: If the upgrade is available for the IX appliance, it will be listed under “updateInfo” section of the response output. 

Note: Below output is trimmed output. 

Step 3: Upgrade IX Appliances

Response Output

You can monitor the task in vCenter UI when the upgrade is in progress.

And that’s it for this post.

I hope you enjoyed reading this post. Feel free to share this on social media if it is worth sharing 🙂

Leave a Reply