Skip to main content

Detach VPC

POST/api/v1/vpc/node/detach/

Query parameters

  • project_idQuerystringoptional

    Identifier 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}}
  • apikeyQuerystringoptional

    API key for authenticating the request

    • required
    • non-empty string
    example{{api_key}}
  • locationQuerystringoptional

    Specifies 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

string

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
object
codeinteger

HTTP status code indicating the result of the detach VPC operation

example200
  • integer between 100 and 599
  • must be a valid HTTP status code
dataobject
errorsobject
messagestring

Human-readable status message for the detach VPC operation

exampleVPC detach operation successfully done
  • Must be a non-empty string
  • Maximum length 256 characters