In this post I will be demonstrating how to enable and disable high availability on NSX edge gateway using Rest API.
If you are new to NSX and do not know what edge gateway high availability means then I would recommend to read this Blog by Gabe Rosas.
We can enable disable high availability on edge gateway from vSphere Web Client by navigating to Home > Networking & Security > NSX Edges > Selecting Edge > Manage > HA Configuration
Enabling HA on edge gateway will create a new vse vm in vCenter and both VM start exchanging heartbeat and exchanging other configuration etc.
Now we will see how to achieve this via NSX Rest API.
Step 1: Query HA Status
# curl -k -u “admin:passwd” -X GET https://nsxmgr.alex.local/api/4.0/edges/edge-2/highavailability/config | xmllint –format –
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<? |