Skip to main content

Restore session

POST 

/v1/workspaces/:workspaceId/sessions/:sessionId/restore

Restores a terminated session (or restarts a failed one) by creating/starting its VM.

When the workspace is out of CPUs for the session's machine family, or at its machine limit, the call is refused with RESOURCE_EXHAUSTED (HTTP 429) carrying a google.rpc.ErrorInfo detail (reason CPU_QUOTA_EXHAUSTED or MACHINE_CONCURRENCY_EXHAUSTED, action restore), as CreateSession documents.

RequestClick to copy link​

A successful response.