members
Creates, updates, deletes, gets or lists a members
resource.
Overview
Name | members |
Type | Resource |
Id | digitalocean.vpcs.members |
Fields
Name | Datatype | Description |
---|---|---|
name | string | The name of the resource. |
created_at | string | A time value given in ISO8601 combined date and time format that represents when the resource was created. |
urn | string | The uniform resource name (URN) for the resource in the format do:resource_type:resource_id. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
vpcs_list_members | SELECT | vpc_id | 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
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 }}';