Skip to main content
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

string
required
The sandbox identifier. Format: sbx-<8 chars>.

Query Parameters

string
Optional specific snapshot to restore from. If omitted, the best available snapshot is selected (preference: pauseperiodicmanual).

Response

Returns the orchestrator’s restore response (passed through), including the new guest_ip and envd_port for the restored VM.

Example

Error Responses