Check Status of a Droplet Destroy with Associated Resources Request
client.GPUDroplets.DestroyWithAssociatedResources.CheckStatus(ctx, dropletID) (*GPUDropletDestroyWithAssociatedResourceCheckStatusResponse, error)
/v2/droplets/{droplet_id}/destroy_with_associated_resources/status
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
dropletID int64
minimum1
Returns
Check Status of a Droplet Destroy with Associated Resources Request
package main
import (
"context"
"fmt"
"github.com/stainless-sdks/-go"
"github.com/stainless-sdks/-go/option"
)
func main() {
client := gradient.NewClient(
option.WithAccessToken("My Access Token"),
)
response, err := client.GPUDroplets.DestroyWithAssociatedResources.CheckStatus(context.TODO(), int64(3164444))
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.CompletedAt)
}
{
"completed_at": "2020-04-01T18:11:49Z",
"droplet": {
"id": "61486916",
"destroyed_at": "2020-04-01T18:11:49Z",
"error_message": " ",
"name": "ubuntu-s-1vcpu-1gb-nyc1-01-1585758823330"
},
"failures": 0,
"resources": {
"floating_ips": [
{
"id": "61486916",
"destroyed_at": "2020-04-01T18:11:49Z",
"error_message": " ",
"name": "ubuntu-s-1vcpu-1gb-nyc1-01-1585758823330"
}
],
"reserved_ips": [
{
"id": "61486916",
"destroyed_at": "2020-04-01T18:11:49Z",
"error_message": " ",
"name": "ubuntu-s-1vcpu-1gb-nyc1-01-1585758823330"
}
],
"snapshots": [
{
"id": "61486916",
"destroyed_at": "2020-04-01T18:11:49Z",
"error_message": " ",
"name": "ubuntu-s-1vcpu-1gb-nyc1-01-1585758823330"
}
],
"volume_snapshots": [
{
"id": "61486916",
"destroyed_at": "2020-04-01T18:11:49Z",
"error_message": " ",
"name": "ubuntu-s-1vcpu-1gb-nyc1-01-1585758823330"
}
],
"volumes": [
{
"id": "61486916",
"destroyed_at": "2020-04-01T18:11:49Z",
"error_message": " ",
"name": "ubuntu-s-1vcpu-1gb-nyc1-01-1585758823330"
}
]
}
}Returns Examples
{
"completed_at": "2020-04-01T18:11:49Z",
"droplet": {
"id": "61486916",
"destroyed_at": "2020-04-01T18:11:49Z",
"error_message": " ",
"name": "ubuntu-s-1vcpu-1gb-nyc1-01-1585758823330"
},
"failures": 0,
"resources": {
"floating_ips": [
{
"id": "61486916",
"destroyed_at": "2020-04-01T18:11:49Z",
"error_message": " ",
"name": "ubuntu-s-1vcpu-1gb-nyc1-01-1585758823330"
}
],
"reserved_ips": [
{
"id": "61486916",
"destroyed_at": "2020-04-01T18:11:49Z",
"error_message": " ",
"name": "ubuntu-s-1vcpu-1gb-nyc1-01-1585758823330"
}
],
"snapshots": [
{
"id": "61486916",
"destroyed_at": "2020-04-01T18:11:49Z",
"error_message": " ",
"name": "ubuntu-s-1vcpu-1gb-nyc1-01-1585758823330"
}
],
"volume_snapshots": [
{
"id": "61486916",
"destroyed_at": "2020-04-01T18:11:49Z",
"error_message": " ",
"name": "ubuntu-s-1vcpu-1gb-nyc1-01-1585758823330"
}
],
"volumes": [
{
"id": "61486916",
"destroyed_at": "2020-04-01T18:11:49Z",
"error_message": " ",
"name": "ubuntu-s-1vcpu-1gb-nyc1-01-1585758823330"
}
]
}
}