DigitalOcean-public.v2-new_VPC Peerings
List All VPC Peerings
To list all of the VPC peerings on your account, send a GET request to /v2/vpc_peerings.
get/v2/vpc_peerings
Query parameters
per_pageinteger
Number of items returned per page
pageinteger
Which 'page' of paginated results to return.
region'ams1' | 'ams2' | 'ams3' | 'blr1' | 'fra1' | 'lon1' | 'nyc1' | 'nyc2' | 'nyc3' | 'sfo1' | 'sfo2' | 'sfo3' | 'sgp1' | 'tor1' | 'syd1'
The slug identifier for the region where the resource will initially be available.
Example:nyc3
The slug identifier for the region where the resource is available.
Response
The response will be a JSON object with a key called vpc_peerings. This will be set to an array of objects, each of which will contain the standard attributes associated with a VPC peering.
Example response
{
"vpc_peerings": [
{
"id": "6b5c619c-359c-44ca-87e2-47e98170c01d",
"name": "example-vpc-peering",
"vpc_ids": [
"997615ce-132d-4bae-9270-9ee21b395e5d",
"e51aed59-3bb1-4a6a-8de0-9d1329e9c997"
],
"created_at": "2024-01-09T20:44:32Z",
"status": "ACTIVE"
},
{
"id": "c212b274-911c-44cc-a117-23b7da4a2922",
"name": "another-vpc-peering",
"vpc_ids": [
"5a100736-b085-4f69-81fd-feee325784bb",
"c140286f-e6ce-4131-8b7b-df4590ce8d6a"
],
"created_at": "2024-01-10T13:29:58Z",
"status": "ACTIVE"
}
],
"links": {},
"meta": {
"total": 2
}
}