Update Volume
Update a volume’s configuration using the details provided in the request body.
Authorizations
A Fly API token with access to the requested organization or resource. Send it as Authorization: Bearer <Fly API token>.
Body
Request body
Response
OK
Always null.
Deprecated: volumes are no longer attached to Nomad allocations.
ID of the Machine the volume is attached to, or null if it is not attached.
Whether daily automatic snapshots are taken.
Size of a filesystem block, in bytes. See blocks.
Size of the volume's filesystem, in blocks of block_size bytes, as last reported by a
Machine that mounted the volume. 0 if never reported, if the host could not be reached,
or with summary=true.
Number of filesystem blocks available to unprivileged users. See blocks.
Number of free filesystem blocks, including blocks reserved for the root user. See
blocks.
Size of the volume, in bytes. 0 if the host could not be reached or with summary=true.
Bytes of storage the volume occupies on its host. Volumes are thinly provisioned, so this
grows as blocks are written and does not shrink when files are deleted. It is not the
filesystem's usage; use blocks and blocks_free for that. 0 if the host could not be
reached or with summary=true.
When the volume was created.
Whether the volume is encrypted at rest.
Filesystem the volume was formatted with: ext4, or raw for an unformatted block
device.
Features of the volume's host. Only returned when the request sets the
fly-include-host-features: true header.
Whether Fly.io could reach the volume's host: ok if it could, unreachable or
unknown if it could not, in which case host-reported fields are missing.
ok, unknown, unreachable Unique ID of the volume, such as vol_1234567890abcdef.
Name of the volume. Several volumes of an app can share a name.
Code of the region the volume is in.
Host features the volume's host was required to have; see compute.required_host_features
in the create request.
Size of the volume, in GiB.
Number of days snapshots of the volume are kept.
State of the volume, such as creating, created, extending, restoring,
hydrating, scheduling_destroy, pending_destroy, destroying, destroyed, or
failed.
Kind of volume: local for regular volumes, or cache for volumes that hold
disposable data and support neither snapshots nor restores.
local, cache Identifies the host the volume is on. Volumes with different zones are on different hosts.