NSX-T Data Center REST API

Create or update VPC

If a VPC with the vpc-id is not already present, create a new VPC.
If it already exists, update the VPC.
This API is only available when using VMware NSX.

Request:

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

Example Request:

PATCH https://<policy-mgr>/policy/api/v1/orgs/default/projects/project-1/vpcs/vpc-2 { "display_name": "vpc-2", "site_infos": [ { "edge_cluster_paths": [ "/infra/sites/default/enforcement-points/default/edge-clusters/4a033a2f-d42e-421d-a41b-33333656278a" ], "site_path": "/infra/sites/default" } ], "load_balancer_vpc_endpoint": { "enabled": true }, "default_gateway_path": "/infra/tier-0s/pepsi", "service_gateway": { "disable": false, "qos_config": { "ingress_qos_profile_path": "/orgs/default/projects/project-1/infra/gateway-qos-profiles/ingress", "egress_qos_profile_path": "/orgs/default/projects/project-1/infra/gateway-qos-profiles/egress" }, "auto_snat": true }, "ip_address_type": "IPV4", "private_ipv4_blocks": [ "/orgs/default/projects/project-1/infra/ip-blocks/private" ], "external_ipv4_blocks": [ "/infra/ip-blocks/public-1" ], "ipv6_profile_paths": [ "/infra/ipv6-ndra-profiles/default", "/infra/ipv6-dad-profiles/default" ], "dhcp_config": { "enable_dhcp": true, "dns_client_config": { "dns_server_ips": [ "192.168.1.25" ] } } }

Successful Response:

Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a

Example Response:

200 OK

Required Permissions:

crud

Feature:

policy_vpc

Additional Errors: