Skip to main content
POST
/
projects
/
{project_id}
/
vpcs
/
{vpc_id}
/
peerings
Create a VPC Peering
curl --request POST \
  --url https://console.cloud.timescale.com/public/api/v1/projects/{project_id}/vpcs/{vpc_id}/peerings \
  --header 'Content-Type: application/json' \
  --data '{
  "peer_account_id": "acc-12345",
  "peer_region_code": "aws-us-east-1",
  "peer_vpc_id": "1234567890"
}'
{
  "id": "1234567890",
  "peer_account_id": "acc-12345",
  "peer_region_code": "aws-us-east-1",
  "peer_vpc_id": "1234567890",
  "provisioned_id": "1234567890",
  "status": "active",
  "error_message": "VPC not found"
}

Path Parameters

project_id
string
required

The unique identifier of the project.

Example:

"rp1pz7uyae"

vpc_id
string
required

The unique identifier of the VPC.

Example:

"1234567890"

Body

application/json
peer_account_id
string
required
Example:

"acc-12345"

peer_region_code
string
required
Example:

"aws-us-east-1"

peer_vpc_id
string
required
Example:

"1234567890"

Response

VPC peering created successfully.

id
string
Example:

"1234567890"

peer_account_id
string
Example:

"acc-12345"

peer_region_code
string
Example:

"aws-us-east-1"

peer_vpc_id
string
Example:

"1234567890"

provisioned_id
string
Example:

"1234567890"

status
string
Example:

"active"

error_message
string
Example:

"VPC not found"