pydo.droplets.list_associated_resources()
Generated on 20 Oct 2025
from pydo version
v0.18.0
Description
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.
This endpoint will only return resources that you are authorized to see. For
example, to see associated Reserved IPs, include the reserved_ip:read scope.
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.
Parameters
| Name | Type | Required | Description | Default Value |
|---|---|---|---|---|
droplet_id |
integer | True | A unique identifier for a Droplet instance. |
Request Sample
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
resp = client.droplets.list_associated_resources(droplet_id=594828)More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.