NSX-T Data Center REST API
Get VPC state
Get the VPC's runtime state that includes the gateway id and the HA details, if applicable.Request:
Method:
GET
URI Path(s):
/policy/api/v1/orgs/{org-id}/projects/{project-id}/vpcs/{vpc-id}/state
Request Headers:
n/a
Query Parameters:
VpcStateRequestParameters+
Request Body:
n/a
Example Request:
GET https://<policy-mgr>/policy/api/v1/orgs/default/projects/project-2/vpcs/vpc-1/stateSuccessful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
VpcState+