This article lists the steps to get cluster network configuration using SDDC manager API.
VMware SDDC Manager
1. Access Developer Center:
Open SDDC manager UI, click 'Developer Center'.
2. Get Domain ID:
Under 'API Categories', find 'Domains', expand and find API 'GET /v1/domains'.
Expand this API and Click 'Execute', then we will get Response. Find the domain which the cluster is in, record the uuid in line starts with 'id', this is Domain ID.
3. Get Cluster ID:
Under 'API Categories', find 'Clusters', expand and find API 'GET /v1/clusters'.
Expand this API, enter Domain ID from step 2 in session domainId. Click 'Execute', then we will get Response. Find the cluster which we are looking for, record the uuid in line starts with 'id', this is Cluster ID.
4. Get Query ID:
Find API 'POST /v1/clusters/{id}/network/queries' and expand.
Enter Cluster ID got from step 3 in section id.
Fill in the body section with {"name": "VCENTER_NSXT_NETWORK_CONFIG"} .
Click 'Execute', then we will get Response. Record the uuid in line starts with 'queryId', this is Query ID.
5. Get cluster network configuration:
Find API 'GET /v1/clusters/{id}/network/queries/{queryId}' and expand.
Enter Cluster ID got from step 3 in section id.
Enter Query ID got from step 4 in section queryId.
Click 'Execute', the Response is full cluster network configuration. We can also download this result through click "DOWNLOAD".