NSX-T Data Center REST API
Update the VPC
Update the VPC.This API is only available when using VMware NSX.
Request:
Method:
PUT
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:
PUT https://<policy-mgr>/policy/api/v1/orgs/default/projects/project-1/vpcs/vpc-2 { "display_name": "vpc-2_modified", "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" ] } }, "_revision": 0 }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
Vpc+