NSX-T Data Center REST API

Get VPC Status (Experimental)

Get VPC Status

Request:

Method:
GET
URI Path(s):
/policy/api/v1/orgs/{org-id}/projects/{project-id}/vpcs/{vpc-id}/status
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Example Request:

GET https://<policy-mgr>/policy/api/v1/orgs/default/projects/project-2/vpcs/vpc-1/status

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
VpcStatus+

Example Response:

{ "status": "FAILED", "vpc": { "realization_id": "4a231765-e5e2-4a1d-aa95-7e38fefdb76", "path": "/orgs/default/projects/default/vpcs/vpc_1/status", "status": "FAILED", "subnets": { "status": "FAILED", "realization_entities": [ { "realization_id": "32e5c1f1-a960-4027-808d-61e2b3a4a04a", "path": "/orgs/default/projects/default/vpcs/vpc_1/subnets/subnet_2/status", "status": "FAILED", "entity_type": "RealizedDhcpServer", "reason": { "type": "FAILED", "code": 610751, "description": "Dhcp relay is not supported for Isolated subnets", "message": [ "Dhcp relay is not supported for Isolated subnets" ] } }, { "realization_id": "32e5c1f1-a960-4027-808d-61e2b3a4a04a", "path": "/orgs/default/projects/default/vpcs/vpc_1/subnets/subnet_3/status", "status": "FAILED", "entity_type": "RealizedDhcpServer", "reason": { "type": "FAILED", "code": 610751, "description": "Dhcp relay is not supported for Isolated subnets", "message": [ "Dhcp relay is not supported for Isolated subnets" ] } } ] }, "security_policies": { "status": "FAILED", "realization_entities": [ { "realization_id": "32e5c1f1-a960-4027-808d-61e2b3a4a04a", "path": "/orgs/default/projects/default/vpcs/vpc_1/security-policies/policy_1/status", "status": "FAILED", "reason": { "type": "FAILED", "code": 610703, "description": "Applied to is not allowed on VPC Security rules.", "message": [ "Applied to is not allowed on VPC Security rules." ] } } ] }, "gateway_policies": { "status": "FAILED", "realization_entities": [ { "realization_id": "4t65c1f1-a960-4027-808d-61e2b3a4a04a", "path": "/orgs/default/projects/default/vpcs/vpc_test/security-policies/default-layer3-section/status", "status": "FAILED", "reason": { "type": "FAILED", "code": 610703, "description": "Applied to is not allowed on VPC Gateway Security rules.", "message": [ "Applied to is not allowed on VPCGateway Security rules." ] } } ] }, "static_routes": { "status": "FAILED", "realization_entities": [ { "realization_id": "4e2c998e-5d0b-4231-8edb-d82de9701157", "path": "/orgs/default/projects/default/vpcs/vpc_test/static-routes/database-network", "status": "FAILED", "entity_type": "RealizedNetworkStaticRoute", "reason": { "type": "FAILED", "code": 503637, "description": "For segment /orgs/default/projects/default/vpcs/vpc_1/subnets/subnet_2, DHCP server address is not specified for local DHCP server. Cannot configure static binding.", "message": [ "For segment /orgs/default/projects/default/vpcs/vpc_1/subnets/subnet_2, DHCP server address is not specified for local DHCP server. Cannot configure static binding." ] } } ] }, "groups": { "status": "FAILED", "realization_entities": [ { "realization_id": "7d73e920-88a0-421a-8e36-dd64d8a5b4ae", "path": "/orgs/default/projects/default/vpcs/vpc_test/groups/g1", "status": "FAILED", "entity_type": "RealizedGroup", "reason": { "type": "FAILED", "code": 610735, "description": "Group with given Antrea/Kubernetes member types cannot be shared", "message": [ "Group with given Antrea/Kubernetes member types cannot be shared" ] } } ] }, "nat": { "status": "FAILED", "rules": [ { "status": "FAILED", "realization_entities": [ { "realization_id": "61e3cac5-a960-5646-808d-61e2b3a4a04a", "path": "/orgs/default/projects/default/vpcs/vpc_test/nat/userNat/nat-rules/SNat0/", "status": "FAILED", "reason": { "type": "FAILED", "code": 610703, "description": "Invalid Source Network 164.90.10.00 for Action DNAT", "message": [ "Invalid Source Network 164.90.10.00 for Action DNAT" ] } } ] } ] } } }

Required Permissions:

read

Feature:

policy_vpc

Additional Errors: