Skip to content

Volumes

List All Block Storage Volumes
client.GPUDroplets.Volumes.List(ctx, query) (*GPUDropletVolumeListResponse, error)
get/v2/volumes
Create a New Block Storage Volume
client.GPUDroplets.Volumes.New(ctx, body) (*GPUDropletVolumeNewResponse, error)
post/v2/volumes
Delete a Block Storage Volume by Name
client.GPUDroplets.Volumes.DeleteByName(ctx, body) error
delete/v2/volumes
Retrieve an Existing Block Storage Volume
client.GPUDroplets.Volumes.Get(ctx, volumeID) (*GPUDropletVolumeGetResponse, error)
get/v2/volumes/{volume_id}
Delete a Block Storage Volume
client.GPUDroplets.Volumes.Delete(ctx, volumeID) error
delete/v2/volumes/{volume_id}

VolumesActions

Initiate A Block Storage Action By Volume Name
client.GPUDroplets.Volumes.Actions.InitiateByName(ctx, params) (*GPUDropletVolumeActionInitiateByNameResponse, error)
post/v2/volumes/actions
List All Actions for a Volume
client.GPUDroplets.Volumes.Actions.List(ctx, volumeID, query) (*GPUDropletVolumeActionListResponse, error)
get/v2/volumes/{volume_id}/actions
Initiate A Block Storage Action By Volume Id
client.GPUDroplets.Volumes.Actions.InitiateByID(ctx, volumeID, params) (*GPUDropletVolumeActionInitiateByIDResponse, error)
post/v2/volumes/{volume_id}/actions
Retrieve an Existing Volume Action
client.GPUDroplets.Volumes.Actions.Get(ctx, volumeID, actionID, query) (*GPUDropletVolumeActionGetResponse, error)
get/v2/volumes/{volume_id}/actions/{action_id}
ModelsExpand Collapse
type VolumeAction struct{…}
ResourceID int64optional
Type stringoptional

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

Retrieve an Existing Volume Snapshot
client.GPUDroplets.Volumes.Snapshots.Get(ctx, snapshotID) (*GPUDropletVolumeSnapshotGetResponse, error)
get/v2/volumes/snapshots/{snapshot_id}
Delete a Volume Snapshot
client.GPUDroplets.Volumes.Snapshots.Delete(ctx, snapshotID) error
delete/v2/volumes/snapshots/{snapshot_id}
List Snapshots for a Volume
client.GPUDroplets.Volumes.Snapshots.List(ctx, volumeID, query) (*GPUDropletVolumeSnapshotListResponse, error)
get/v2/volumes/{volume_id}/snapshots
Create Snapshot from a Volume
client.GPUDroplets.Volumes.Snapshots.New(ctx, volumeID, body) (*GPUDropletVolumeSnapshotNewResponse, error)
post/v2/volumes/{volume_id}/snapshots