Skip to content
  • Auto
  • Light
  • Dark

Volumes

Volumes

Volumes

Create a New Block Storage Volume
gpu_droplets.volumes.create(VolumeCreateParams**kwargs) -> volumeVolumeVolumeCreateResponse
post/v2/volumes
Delete a Block Storage Volume
gpu_droplets.volumes.delete(strvolume_id)
delete/v2/volumes/{volume_id}
Delete a Block Storage Volume by Name
gpu_droplets.volumes.delete_by_name(VolumeDeleteByNameParams**kwargs)
delete/v2/volumes
List All Block Storage Volumes
gpu_droplets.volumes.list(VolumeListParams**kwargs) -> metaMetaPropertiesvolumeslistlinksPageLinksVolumeListResponse
get/v2/volumes
Retrieve an Existing Block Storage Volume
gpu_droplets.volumes.retrieve(strvolume_id) -> volumeVolumeVolumeRetrieveResponse
get/v2/volumes/{volume_id}

VolumesActions

Initiate A Block Storage Action By Volume Id
gpu_droplets.volumes.actions.initiate_by_id(strvolume_id, ActionInitiateByIDParams**kwargs) -> actionVolumeActionActionInitiateByIDResponse
post/v2/volumes/{volume_id}/actions
Initiate A Block Storage Action By Volume Name
gpu_droplets.volumes.actions.initiate_by_name(ActionInitiateByNameParams**kwargs) -> actionVolumeActionActionInitiateByNameResponse
post/v2/volumes/actions
List All Actions for a Volume
gpu_droplets.volumes.actions.list(strvolume_id, ActionListParams**kwargs) -> metaMetaPropertiesactionslistlinksPageLinksActionListResponse
get/v2/volumes/{volume_id}/actions
Retrieve an Existing Volume Action
gpu_droplets.volumes.actions.retrieve(intaction_id, ActionRetrieveParams**kwargs) -> actionVolumeActionActionRetrieveResponse
get/v2/volumes/{volume_id}/actions/{action_id}
Volume Action
VolumeActionclass
ShowShow
resource_idint
optional
typestr
optional

This is the type of action that the object represents. For example, this could be "attach_volume" to represent the state of a volume attach action.

VolumesSnapshots

Create Snapshot from a Volume
gpu_droplets.volumes.snapshots.create(strvolume_id, SnapshotCreateParams**kwargs) -> snapshotSnapshotsSnapshotCreateResponse
post/v2/volumes/{volume_id}/snapshots
Delete a Volume Snapshot
gpu_droplets.volumes.snapshots.delete(strsnapshot_id)
delete/v2/volumes/snapshots/{snapshot_id}
List Snapshots for a Volume
gpu_droplets.volumes.snapshots.list(strvolume_id, SnapshotListParams**kwargs) -> metaMetaPropertieslinksPageLinkssnapshotslistSnapshotListResponse
get/v2/volumes/{volume_id}/snapshots
Retrieve an Existing Volume Snapshot
gpu_droplets.volumes.snapshots.retrieve(strsnapshot_id) -> snapshotSnapshotsSnapshotRetrieveResponse
get/v2/volumes/snapshots/{snapshot_id}