Persistent block storage volumes that survive instance restarts.
Volumes can be attached to computers to provide durable storage beyond the ephemeral rootfs.
Example
client = Miosa.client(System.fetch_env!("MIOSA_API_KEY"))
{:ok, vol} = Miosa.Volumes.create(client, %{name: "data", size_gb: 20})
{:ok, vol} = Miosa.Volumes.get(client, vol["id"])
Summary
Functions
Create a volume.
Delete a volume by ID.
Fetch a volume by ID.
List volumes for the authenticated tenant.
Functions
@spec create(Miosa.Client.t(), map()) :: Miosa.Client.result(map())
Create a volume.
Required: :name, :size_gb. Optional: :region, and any other attrs.
Pass :idempotency_key to supply your own idempotency key.
@spec delete(Miosa.Client.t(), String.t()) :: Miosa.Client.result(map())
Delete a volume by ID.
@spec get(Miosa.Client.t(), String.t()) :: Miosa.Client.result(map())
Fetch a volume by ID.
@spec list(Miosa.Client.t(), keyword() | map()) :: Miosa.Client.result(map())
List volumes for the authenticated tenant.
Accepts optional filters as a keyword list or map (e.g. :limit, :cursor).