CLIBlock Storage
hudl volume detach <id>
Detach a volume from its current virtual machine.
Detach a volume from its current virtual machine. After detaching, the volume returns to the available state and can be re-attached or deleted.
Usage
hudl volume detach <id> [flags]Common flags
| Flag | Description |
|---|---|
--region <code> | Override the active region for this call only. |
--workspace <slug> | Override the active workspace for this call only. |
-o, --output | Output format: table (default), json, yaml, wide, name. |
--idempotency-key <key> | Attach an idempotency key so retries are safe. |
Examples
Detach a volume:
hudl volume detach vol-abc123Detach and then attach to a different VM:
hudl volume detach vol-abc123
hudl volume attach vol-abc123 --to vm-ghi789API reference
This command calls POST /volumes/{id}/detach under the hood. See the full request and response schema in the API reference.