Restore Sandbox
Sandbox API
Restore Sandbox
Restore a sandbox from a snapshot, potentially on a different worker.
POST
Restore Sandbox
Performs a cross-worker sandbox restore. Resolves the snapshot to restore from
(either an explicitly named
snapshot_id or the best available), picks an
eligible orchestrator node — always excluding the originating node — forwards
the restore to that orchestrator, and updates sandbox-manager state with the
new node assignment.
Unlike resume, restore works on sandboxes in
any state as long as at least one snapshot exists, and always lands the sandbox
on a fresh worker.
Path Parameters
The sandbox identifier. Format:
sbx-<8 chars>.Query Parameters
Optional specific snapshot to restore from. If omitted, the best available
snapshot is selected (preference:
pause → periodic → manual).Response
Returns the orchestrator’s restore response (passed through), including the newguest_ip and envd_port for the restored VM.
Example
Error Responses
| Status | Cause |
|---|---|
401 | Missing or invalid API key |
404 | Sandbox not found, or no snapshot available |
502 | Orchestrator unreachable or restore failed |
503 | No eligible orchestrator node available |