DigitalOcean-public.v2-new_Droplets
List Associated Resources for a Droplet
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.
get/v2/droplets/{droplet_id}/destroy_with_associated_resources
Path parameters
droplet_idinteger required
A unique identifier for a Droplet instance.
Response
A JSON object containing snapshots, volumes, and volume_snapshots keys.
Example response
{
"reserved_ips": [
{
"id": "61486916",
"name": "ubuntu-s-1vcpu-1gb-nyc1-01-1585758823330",
"cost": "0.05"
}
],
"floating_ips": [
{
"id": "61486916",
"name": "ubuntu-s-1vcpu-1gb-nyc1-01-1585758823330",
"cost": "0.05"
}
],
"snapshots": [
{
"id": "61486916",
"name": "ubuntu-s-1vcpu-1gb-nyc1-01-1585758823330",
"cost": "0.05"
}
],
"volumes": [
{
"id": "61486916",
"name": "ubuntu-s-1vcpu-1gb-nyc1-01-1585758823330",
"cost": "0.05"
}
],
"volume_snapshots": [
{
"id": "61486916",
"name": "ubuntu-s-1vcpu-1gb-nyc1-01-1585758823330",
"cost": "0.05"
}
]
}