v1

latestSwagger 2.02026-08-04232286653.5 KB
VPC Networks

Creates a VPC network in the project and returns the created network.

post/projects/{project_id}/networking/vpc-networks

Path parameters

project_idstring required

Request body

cidrstring required

Address range for the VPC network, in CIDR notation (for example, 172.27.0.0/16).

namestring required

Name for the new VPC network.

Example request

{
  "cidr": "172.27.0.0/16",
  "name": "my-cool-vpc-network"
}

Response

Example response

{
  "network": {
    "cidr": "121.0.0.0/20",
    "gateway": "11bf5b4c-e0e5-4017-bdb8-3861f3acedc1",
    "id": "1ce839b7-3fab-46f9-8e54-7a6bb4ac1ffc",
    "name": "default-ethernet"
  }
}