Wait for instance to reach a target state
Changed onBlocks until the instance reaches the specified target state, the timeout expires, or the instance enters a terminal/error state. Useful for avoiding client-side polling when waiting for state transitions (e.g. waiting for an instance to become Running).
Request
- Base URLhttp://localhost:4973
- URLhttp://localhost:4973/instances/{id}/wait
- AuthHTTP bearer
Path parameters
Instance ID or name
Query parameters
Instance state:
- Created: VMM created but not started (Cloud Hypervisor native)
- Initializing: VM is running while guest init is still in progress
- Running: Guest program has started and instance is ready
- Paused: VM is paused (Cloud Hypervisor native)
- Shutdown: VM shut down but VMM exists (Cloud Hypervisor native)
- Stopped: No VMM running, no snapshot exists
- Standby: No VMM running, snapshot exists (can be restored)
- Unknown: Failed to determine state (see state_error for details)
Target state to wait for
Maximum duration to wait (Go duration format, e.g. "30s", "2m"). Capped at 5 minutes. Defaults to 60 seconds.
Response
Wait completed (target state reached, timed out, or terminal state detected)
Changes
- breaking
removed the enum value
Templatefrom thequeryrequest parameterstate - info
removed the
Templateenum value from theresponse property for the response status
- breaking
- warning
added the new
Templateenum value to theresponse property for the response status - info
added the new enum value
Templateto thequeryrequest parameterstate
- warning