Skip to main content
POST
/
network
/
vpcs
Create a new VPC
curl --request POST \
  --url https://api.cloud.onidel.com/network/vpcs \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "location": "sydney",
  "name": "Production VPC",
  "description": "VPC for production environment",
  "v4_subnet": "10.0.0.0",
  "v4_subnet_mask": "24",
  "team_id": "c1d45377-b2a9-4407-ab8d-6909c34dfaac"
}
'

Authorizations

Authorization
string
header
required

Provide the value as: Token <your-api-token>

Body

application/json
location
string
required
Example:

"sydney"

name
string
required
Maximum string length: 200
Example:

"Production VPC"

description
string
required
Maximum string length: 200
Example:

"VPC for production environment"

v4_subnet
string
required

IPv4 subnet prefix

Example:

"10.0.0.0"

v4_subnet_mask
string
required

IPv4 subnet mask

Example:

"24"

team_id
string<uuid>

Team ID. Default team will be used if not provided.

Example:

"c1d45377-b2a9-4407-ab8d-6909c34dfaac"

Response

VPC created successfully