Skip to content

volume

The volume configuration type allows creating, registering, and updating volumes.

Root reference

name - (Optional) str The volume name.
backend - (Required) "amddevcloud" | "aws" | "azure" | "cloudrift" | "cudo" | "datacrunch" | "digitalocean" | "dstack" | "gcp" | "hotaisle" | "kubernetes" | "lambda" | "local" | "remote" | "nebius" | "oci" | "runpod" | "tensordock" | "vastai" | "verda" | "vultr" The volume backend.
region - (Required) str The volume region.
availability_zone - (Optional) str The volume availability zone.
size - (Optional) str The volume size. Must be specified when creating new volumes.
volume_id - (Optional) str The volume ID. Must be specified when registering external volumes.
auto_cleanup_duration - (Optional) int | str Time to wait after volume is no longer used by any job before deleting it. Defaults to keep the volume indefinitely. Use the value 'off' or -1 to disable auto-cleanup..
tags - (Optional) dict The custom tags to associate with the volume. The tags are also propagated to the underlying backend resources. If there is a conflict with backend-level tags, does not override them.