CLIVirtual Machines
hudl vm status <id>
Print the current power and provisioning state of a VM.
Print the current power and provisioning state of a VM. Common states include BUILD, ACTIVE, SHUTOFF, SUSPENDED, ERROR, and DELETED.
Usage
hudl vm status <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. |
Examples
Check if a newly created VM is ready:
hudl vm status 3e2a7f19-b8c4-4d5e-9f1a-6c7d8e9f0a1bUse in a script to wait for a VM to become active:
while [ "$(hudl vm status 3e2a7f19-b8c4-4d5e-9f1a-6c7d8e9f0a1b -o json | jq -r '.status')" != "ACTIVE" ]; do
sleep 5
done
echo "VM is ready"API reference
This command calls GET /instances/{id}/status under the hood. See the full request and response schema in the API reference.