Skip to main content

members

Creates, updates, deletes, gets or lists a members resource.

Overview

Namemembers
TypeResource
Iddigitalocean.vpcs.members

Fields

NameDatatypeDescription
namestringThe name of the resource.
created_atstringA time value given in ISO8601 combined date and time format that represents when the resource was created.
urnstringThe uniform resource name (URN) for the resource in the format do:resource_type:resource_id.

Methods

NameAccessible byRequired ParamsDescription
vpcs_list_membersSELECTvpc_idTo 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.

SELECT examples

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.

SELECT
name,
created_at,
urn
FROM digitalocean.vpcs.members
WHERE vpc_id = '{{ vpc_id }}';