Skip to main content
Use volume management APIs for metadata and lifecycle operations. Direct file operations live on volume.files and are covered in the file task pages.

Create

Use Volume.from_name(..., create_if_missing=True) when setup scripts should be idempotent:

Get

Volume.from_id(id) is an alias for Volume.get(id).

List

Select Fields

Use fields= when dashboards or scripts only need a few metadata attributes. When fields are requested, the SDK returns raw dictionaries instead of VolumeInfo objects.

Refresh Metadata

Refresh metadata after large writes when you need current capacity and usage. used_bytes is observed usage from the latest reconciliation. max_size_bytes is the current enforced cap. In the hosted private beta, auto-grow is currently disabled and the default cap is 2 GiB per volume unless an operator has applied a tenant-specific override.

Delete

Delete by volume ID. Deleting an attached volume can be rejected; destroy attached machines before retrying. Hibernating or pausing a machine is not a volume detach operation because the attachment intent remains and the volume remounts on resume.

Async