Huddle01 Cloud
CLIBlock Storage

hudl volume attach <id> --to <vm>

Attach a volume to a running virtual machine.

Attach a volume to a running virtual machine. The volume must be in the available state.

Usage

hudl volume attach <id> --to <vm> [flags]

Flags

FlagDescription
--to <vm_id>(required) ID of the virtual machine to attach the volume to.

Common flags

FlagDescription
--region <code>Override the active region for this call only.
--workspace <slug>Override the active workspace for this call only.
-o, --outputOutput format: table (default), json, yaml, wide, name.
--idempotency-key <key>Attach an idempotency key so retries are safe.

Examples

Attach a volume to a VM:

hudl volume attach vol-abc123 --to vm-def456

Create a volume and immediately attach it:

hudl volume create extra-storage --size 50
hudl volume attach vol-new789 --to vm-def456

API reference

This command calls POST /volumes/{id}/attach under the hood. See the full request and response schema in the API reference.