NSX-T Data Center REST API
Delete VPC Attachment
Delete VPC Attachment.**IMPORTANT WARNING:** Deleting a VPC attachment will remove the connectivity profile
association and all related network configurations, which may cause traffic disruption:
• **Auto SNAT Rules**: If the current connectivity profile has "Default Outbound NAT"
enabled, all system-generated SNAT rules will be automatically deleted. This will
immediately break outbound connectivity for private subnets that rely on these rules.
• **External IP Allocations**: Any IP addresses allocated from external IP blocks for
auto SNAT will be released and may be reassigned to other resources.
• **Transit Gateway Connections**: All transit gateway connections and routing
configurations associated with the connectivity profile will be removed.
**Before proceeding with deletion:**
1. Verify that removing auto SNAT won't break critical application traffic
2. Plan for potential downtime during the transition
This operation is typically performed as part of changing VPC connectivity profiles.
Consider using PATCH or PUT operations to update the connectivity profile instead
of deleting and recreating attachments.
Request:
Method:
DELETE
URI Path(s):
/policy/api/v1/orgs/{org-id}/projects/{project-id}/vpcs/{vpc-id}/attachments/{vpc-attachment-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a
Example Request:
DELETE https://<policy-mgr>/policy/api/v1/orgs/default/projects/project-1/vpcs/vpc-1/attachments/defaultSuccessful Response:
Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a