Wait for instance to reach a target state
/instances/{id}/wait
Blocks 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).
Path Parameters
id: string
Query Parameters
timeout: optional string
Maximum duration to wait (Go duration format, e.g. "30s", "2m"). Capped at 5 minutes. Defaults to 60 seconds.
Returns
Wait for instance to reach a target state
curl http://localhost:8080/instances/$ID/wait \
-H "Authorization: Bearer $HYPEMAN_API_KEY"
{
"state": "Created",
"timed_out": true,
"state_error": "state_error"
}
Returns Examples
{
"state": "Created",
"timed_out": true,
"state_error": "state_error"
}