Logo
OpenScaler
API Documentation/Virtual Private Cloud (VPC)

Delete a VPC

Delete a VPC with by its ID

NOTE:

this call will fail if the VPC is still used by some resource. In this case the resource needs to be deleted first before deleting the VPC itself.

DELETE
/v1/vpcs/{vpc_id}

Authorization

AuthorizationRequiredBearer <token>

OAuth Authentication

OpenScaler API uses OAuth, a standard for secure authorization. To access the API, obtain a token via the OpenScaler Platform.

Use the access_token in the Authorization header for requests:

Authorization: Bearer <token>

Always keep your token secure and do not share it with anyone.

In: header

Path Parameters

vpc_idRequiredstring

A unique identifier for a VPC instance. See VPCs section for more details.

curl -X DELETE "https://api.alpha.openscaler.net/v1/vpcs/5" \
  -H "Authorization: Bearer <token>"

VPC deleted successfully