CLIVirtual Machines
hudl vm action <id> <action>
Run a power action against a VM: start, stop, reboot, hard-reboot, suspend, resume.
Run a power action against a VM: start, stop, reboot, hard-reboot, suspend, resume.
Usage
hudl vm action <id> <action> [flags]Available actions
| Action | Description |
|---|---|
start | Power on a stopped VM. |
stop | Gracefully shut down a running VM (ACPI signal). |
reboot | Graceful reboot (ACPI signal). |
hard-reboot | Forceful reboot (equivalent to power cycling). Use when the VM is unresponsive. |
suspend | Pause the VM and save its memory state. The VM stops consuming compute but retains its resources. |
resume | Resume a suspended VM from its saved state. |
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
Gracefully stop a VM:
hudl vm action 3e2a7f19-b8c4-4d5e-9f1a-6c7d8e9f0a1b stopStart a previously stopped VM:
hudl vm action 3e2a7f19-b8c4-4d5e-9f1a-6c7d8e9f0a1b startHard-reboot an unresponsive VM:
hudl vm action 3e2a7f19-b8c4-4d5e-9f1a-6c7d8e9f0a1b hard-rebootSuspend a VM to save compute costs overnight:
hudl vm action 3e2a7f19-b8c4-4d5e-9f1a-6c7d8e9f0a1b suspendAPI reference
This command calls POST /instances/{id}/action under the hood. See the full request and response schema in the API reference.