Detach VPC
POST
/api/v1/vpc/node/detach/Query parameters
project_idQuerystringoptionalIdentifier of the project to scope the request to. Optional; if omitted, the account's default project is used.
- optional
- if omitted, the request is applied to the default project
example{{project_id}}apikeyQuerystringoptionalAPI key for authenticating the request
- required
- non-empty string
example{{api_key}}locationQuerystringoptionalSpecifies the geographic region for the VPC operation
- must be a non-empty string
- should be a valid region identifier (e.g., us-east-1)
example{{location}}
Request body
application/json
JSON-formatted string containing the parameters for detaching a VPC
example
{
"vpc_name": "VPC-493",
"dns": "8.8.8.8 8.8.4.4",
"cidr": {{vpc_cidr}},
"node_id": {{node_id}},
"action": "detach",
"network_id": {{network_id}},
"subnet_id": {{subnet_id}}
}- must be a valid JSON string
- required fields: vpc_name, dns, cidr, node_id, action, network_id, subnet_id
- action field must be "detach"
Responses
200Successful response
HTTP status code indicating the result of the detach VPC operation
example
200- integer between 100 and 599
- must be a valid HTTP status code
Human-readable status message for the detach VPC operation
example
VPC detach operation successfully done- Must be a non-empty string
- Maximum length 256 characters