Skip to content
Get started

Volumes

List volumes
client.Volumes.List(ctx) (*[]Volume, error)
get/volumes
Create volume
client.Volumes.New(ctx, body) (*Volume, error)
post/volumes
Get volume details
client.Volumes.Get(ctx, id) (*Volume, error)
get/volumes/{id}
Delete volume
client.Volumes.Delete(ctx, id) error
delete/volumes/{id}
ModelsExpand Collapse
type Volume struct{…}
ID string

Unique identifier

CreatedAt Time

Creation timestamp (RFC3339)

formatdate-time
Name string

Volume name

SizeGB int64

Size in gigabytes

Attachments []VolumeAttachmentoptional

List of current attachments (empty if not attached)

InstanceID string

ID of the instance this volume is attached to

MountPath string

Mount path in the guest

Readonly bool

Whether the attachment is read-only

type VolumeAttachment struct{…}
InstanceID string

ID of the instance this volume is attached to

MountPath string

Mount path in the guest

Readonly bool

Whether the attachment is read-only