Terminate a cloud instance
Transitions a cloud instance from a non-terminal status to terminating. Requires write authorization.
Path parameters
The ID of the agent session
The ID of the cloud instance
Query parameters
The reason for terminating a cloud instance. 'infra_shutdown' covers any shutdown signal from the runtime environment (K8s pod eviction, Cloud Run instance cycling, etc.) — kept generic so it applies regardless of where the agent runs. 'dispatch_failed' means the instance never started — its start message failed to publish, or expired in the queue before any runner claimed it. 'agent_stalled' means the agent was still alive but stopped making progress, so a watchdog hard-killed it. 'agent_error' means the agent threw or exited unexpectedly while its work was still in flight.
The reason for terminating the instance
Headers
If-Match header according to http/1.1 spec section 14.24
Response
The updated cloud instance