Retrieve
Retrieve an Existing Block Storage Volume
gpu_droplets.volumes.retrieve(strvolume_id) -> volumeVolumeVolumeRetrieveResponse
get/v2/volumes/{volume_id}
To show information about a block storage volume, send a GET request to /v2/volumes/$VOLUME_ID
.
Parameters
volume_idstr
formatuuid
Returns
VolumeRetrieveResponseclass
from do_gradientai import GradientAI
client = GradientAI()
volume = client.gpu_droplets.volumes.retrieve(
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(volume.volume)
200 Example
{
"volume": {
"description": "Block store for examples",
"filesystem_label": "example",
"filesystem_type": "ext4",
"name": "example",
"size_gigabytes": 10,
"tags": [
"base-image",
"prod"
]
}
}