To show information about a block storage volume, send a GET request to /v2/volumes/$VOLUME_ID
.
Name | Type | Required | Description | Default Value |
---|---|---|---|---|
volume_id |
string | True | The ID of the block storage volume. |
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
resp = client.volumes.get(volume_id="7724db7c")
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.