For AI agents: The documentation index is at https://docs.digitalocean.com/llms.txt. Markdown versions of pages use the same URL with index.html.md in place of the HTML page (for example, append index.html.md to the directory path instead of opening the HTML document).
Usage
client.v2.droplets.byDroplet_id(droplet_id).destroy_with_associated_resources.status.get(requestConfiguration?: RequestConfiguration<object>): Promise<undefined | Associated_resource_status>
Description
To check on the status of a request to destroy a Droplet with its associated
resources, send a GET request to the
/v2/droplets/{droplet_id}/destroy_with_associated_resources/status endpoint.
Parameters
droplet_id integer required
Example: 3164444
A unique identifier for a Droplet instance.
Min: 1
Request Sample
Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
createDigitalOceanClient,
DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";
const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);
const response = await client.v2.droplets
.byDroplet_id(3164444).destroy_with_associated_resources.status.get();
Response Example
Show Response Example
{
"droplet": {
"id": "187000742",
"name": "ubuntu-s-1vcpu-1gb-nyc1-01",
"destroyed_at": "2020-04-01T18:11:49Z"
},
"resources": {
"reserved_ips": [
{
"id": "6186916",
"name": "45.55.96.47",
"destroyed_at": "2020-04-01T18:11:44Z"
}
],
"floating_ips": [
{
"id": "6186916",
"name": "45.55.96.47",
"destroyed_at": "2020-04-01T18:11:44Z"
}
],
"snapshots": [
{
"id": "61486916",
"name": "ubuntu-s-1vcpu-1gb-nyc1-01-1585758823330",
"destroyed_at": "2020-04-01T18:11:44Z"
}
],
"volumes": [],
"volume_snapshots": [
{
"id": "edb0478d-7436-11ea-86e6-0a58ac144b91",
"name": "volume-nyc1-01-1585758983629",
"destroyed_at": "2020-04-01T18:11:44Z"
}
]
},
"completed_at": "2020-04-01T18:11:49Z",
"failures": 0
}
See /v2/droplets/{droplet_id}/destroy_with_associated_resources/status in the API reference for additional detail on responses, headers, parameters, and more.