To retrieve the status of a volume action, send a GET request to /v2/volumes/$VOLUME_ID/actions/$ACTION_ID
.
Name | Type | Required | Description | Default Value |
---|---|---|---|---|
volume_id |
string | True | The ID of the block storage volume. | |
action_id |
integer | True | A unique numeric ID that can be used to identify and reference an action. | |
per_page |
integer | False | Number of items returned per page | 20 |
page |
integer | False | Which ‘page’ of paginated results to return. | 1 |
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
resp = client.volume_actions.get(volume_id="7724db7c")
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.