Skip to main content
POST
/
projects
/
{project_id}
/
vpcs
Create a VPC
curl --request POST \
  --url https://console.cloud.timescale.com/public/api/v1/projects/{project_id}/vpcs \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "my-production-vpc",
  "cidr": "10.0.0.0/16",
  "region_code": "us-east-1"
}'
{
  "id": "1234567890",
  "name": "my-production-vpc",
  "cidr": "10.0.0.0/16",
  "region_code": "us-east-1"
}

Path Parameters

project_id
string
required

The unique identifier of the project.

Example:

"rp1pz7uyae"

Body

application/json
name
string
required
Example:

"my-production-vpc"

cidr
string
required
Example:

"10.0.0.0/16"

region_code
string
required
Example:

"us-east-1"

Response

VPC created successfully.

id
string
Example:

"1234567890"

name
string
Example:

"my-production-vpc"

cidr
string
Example:

"10.0.0.0/16"

region_code
string
Example:

"us-east-1"