Quick TIP

Using cURL commands from SDDC Manager to query VxRail manager:

API for VxRail system details:

curl -k -X GET --user 'administrator@vsphere.local:password' https://vxrail-ipaddress/rest/vxm/v1/system |jq

API for Getting discovered hosts (Day1):
curl -k -X GET --user 'administrator@vsphere.local:password' https://vxrail-ipaddress/rest/vxm/v2/system/initialize/nodes |jq

API for Getting cluster details:
curl -k -X GET --user 'administrator@vsphere.local:password' https://vxrail-ipaddress/rest/vxm/v1/cluster |jq
curl -k -X GET --user 'administrator@vsphere.local:password' https://vxrail-ipaddress/rest/vxm/v1/system/cluster-hosts |jq
curl -k -X GET --user 'administrator@vsphere.local:password' https://vxrail-ipaddress/rest/vxm/v7/chassis |jq
curl -k -X GET --user 'administrator@vsphere.local:password' https://vxrail-ipaddress/rest/vxm/v1/system/cluster-portgroups/node-fqdn
|jq

time curl -k -X GET --user 'administrator@vsphere.local:password' https://vxrail-ipaddress/rest/vxm/v1/system |jq

API to Check VC mode:
curl -k -X GET --user 'administrator@vsphere.local:password' https://vxrail-ipaddress/rest/vxm/v1/vc/mode |jq

API to get DNS&NTP:
curl -k -X GET --user 'administrator@vsphere.local:password' https://vxrail-ipaddress/rest/vxm/v1/system/dns |jq
curl -k -X GET --user 'administrator@vsphere.local:password' https://vxrail-ipaddress/rest/vxm/v1/system/ntp |jq

Leave a comment