latestOpenAPI 3.0.32026-08-227451,2751.8 MB
d0fc0114da66
AgentSession
Terminate a cloud instance
Transitions a cloud instance from a non-terminal status to terminating. Requires write authorization.
post/agentSession/{agent_session_id}/cloudInstance/{cloud_instance_id}/terminate
Path parameters
agent_session_idstring required
The ID of the agent session
cloud_instance_idstring required
The ID of the cloud instance
Query parameters
reason'execution_timeout' | 'stop_requested' | 'infra_shutdown' | 'dispatch_failed' | 'unknown'
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.
The reason for terminating the instance
Headers
If-Matchstring
If-Match header according to http/1.1 spec section 14.24
Response
The updated cloud instance