v8

latestOpenAPI 3.0.0Apache 2.0raw.githubusercontent.com2025-10-165266542.4 MB
DigitalOcean-public.v2-new_VPCs

List the Member Resources of a VPC

To list all of the resources that are members of a VPC, send a GET request to /v2/vpcs/$VPC_ID/members.

To only list resources of a specific type that are members of the VPC, included a resource_type query parameter. For example, to only list Droplets in the VPC, send a GET request to /v2/vpcs/$VPC_ID/members?resource_type=droplet.

Only resources that you are authorized to see will be returned (e.g. to see Droplets, you must have droplet:read).

get/v2/vpcs/{vpc_id}/members

Path parameters

vpc_idstring uuid required

A unique identifier for a VPC.

Query parameters

resource_typestring

Used to filter VPC members by a resource type.

per_pageinteger

Number of items returned per page

pageinteger

Which 'page' of paginated results to return.

Response

The response will be a JSON object with a key called members. This will be set to an array of objects, each of which will contain the standard attributes associated with a VPC member.

Only resources that you are authorized to see will be returned (e.g. to see Droplets, you must have droplet:read).

Example response

{
  "members": [
    {
      "urn": "do:loadbalancer:fb294d78-d193-4cb2-8737-ea620993591b",
      "name": "nyc1-load-balancer-01",
      "created_at": "2020-03-13T19:30:48Z"
    },
    {
      "urn": "do:dbaas:13f7a2f6-43df-4c4a-8129-8733267ddeea",
      "name": "db-postgresql-nyc1-55986",
      "created_at": "2020-03-13T19:30:18Z"
    },
    {
      "urn": "do:kubernetes:da39d893-96e1-4e4d-971d-1fdda33a46b1",
      "name": "k8s-nyc1-1584127772221",
      "created_at": "2020-03-13T19:30:16Z"
    },
    {
      "urn": "do:droplet:86e29982-03a7-4946-8a07-a0114dff8754",
      "name": "ubuntu-s-1vcpu-1gb-nyc1-01",
      "created_at": "2020-03-13T19:29:20Z"
    }
  ],
  "links": {},
  "meta": {
    "total": 4
  }
}