operations
Wait for an operation to reach a terminal state
Long-polls server-side until the operation reaches a terminal state (SUCCEEDED, FAILED, CANCELLED) or the timeout elapses. Returns the latest Operation either way - check done to distinguish.
The owning resource answers with a bounded server-side wait; visibility follows it. A wait timeout returns the latest snapshot and does not cancel execution. Terminal outcomes remain immutable.
Bearer token for the authenticated caller.
Optional workspace/scope context for the request. Carries a single workspace wire id (ws_…) today. Only needed for broad tokens - a workspace-owned token implies its workspace.
Required string length: 1 - 53
Example: "ws_j572abc123def4"
Max seconds to wait for the operation to reach a terminal state. Default 30, max 60.
Required range: 1 <= x <= 60
Response
Operation in its latest known state (terminal or still running on timeout)
Required string length: 2 - 192
Required string length: 1 - 53
Required string length: 1 - 54
Domain entity collection the operation acts on.
Available options: install, repository_change_request, repository, workspace, machine, cluster, node_pool, package, sandbox, opencode
Prefixed ID of the entity this operation acts on. Prefix matches owner_type (ws_, mch_, clu_, pkg_, inst_, rcr_, repo_, sbx_, oc_); a node pool is clu_<id>/node_pools/<node pool id>.
ID of the chained parent operation, when present.
Required string length: 2 - 192
Lifecycle state. Past-participle terminal states per AIP-216.
Available options: RUNNING, SUCCEEDED, FAILED, CANCELLED
True iff state is a terminal value.
Deep link to the dashboard view of this operation's owning resource when available, otherwise the operation detail page.
Maximum string length: 2048
Example: "https://akua.dev/installs/inst_j572abc123def456?tab=operations"
Available options: cluster.join_token.revoke
Required string length: 1 - 53
Required string length: 1 - 54
Pattern: ^[a-z0-9]{6}$
Populated only when done && state === "SUCCEEDED". Discriminated by type.
Available options: cluster.join_token.revoke
Required string length: 1 - 54
Pattern: ^[a-z0-9]{6}$
Populated when state is FAILED or CANCELLED.
Latest error from any failed step. Populated even mid-flight; cleared when the step succeeds on retry.