Skip to main content

droplets_associated_resources

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

Overview

Namedroplets_associated_resources
TypeResource
Iddigitalocean.droplets.droplets_associated_resources

Fields

NameDatatypeDescription
floating_ipsarray
reserved_ipsarray
snapshotsarray
volume_snapshotsarray
volumesarray

Methods

NameAccessible byRequired ParamsDescription
droplets_list_associated_resourcesSELECTdroplet_idTo list the associated billable resources that can be destroyed along with a Droplet, send a GET request to the /v2/droplets/$DROPLET_ID/destroy_with_associated_resources endpoint. The response will be a JSON object containing snapshots, volumes, and volume_snapshots keys. Each will be set to an array of objects containing information about the associated resources.

SELECT examples

To list the associated billable resources that can be destroyed along with a Droplet, send a GET request to the /v2/droplets/$DROPLET_ID/destroy_with_associated_resources endpoint. The response will be a JSON object containing snapshots, volumes, and volume_snapshots keys. Each will be set to an array of objects containing information about the associated resources.

SELECT
floating_ips,
reserved_ips,
snapshots,
volume_snapshots,
volumes
FROM digitalocean.droplets.droplets_associated_resources
WHERE droplet_id = '{{ droplet_id }}';