Restore Sandbox
Restore a sandbox from a previously created snapshot by calling the create endpoint with a snapshot_id.
Endpoint
snapshot_id in the request body.
- If the snapshot type is filesystem (default), the new sandbox restores the captured filesystem. You can override launch settings (including resources).
- If the snapshot type is memory, the new sandbox restores filesystem, memory, and running processes exactly as they were. Image, resources (CPUs, memory), entrypoint, and secrets come from the snapshot and cannot be changed at restore time.
Example Request
resources.disk_mb can be used at restore time to grow the root disk (growth-only).
For the full request and response schema of POST /sandboxes, see Create Sandbox. For the end-to-end snapshot workflow, see Snapshots.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Optional sandbox image name to boot from. When omitted, Tensorlake uses the default managed environment. This can also be a registered Sandbox Image name.
Secret names to inject into the sandbox.
Sandbox timeout in seconds. 0 requests the maximum allowed by your plan.
Plan maximums: Free unverified 3600 (1h), Free verified 7200 (2h),
On-Demand 86400 (24h). See tensorlake.ai/pricing for higher limits on committed plans.
x >= 0Optional command to run when the sandbox starts.
Snapshot to restore from.
Allow sandbox ingress to route requests without validating auth credentials. The legacy request alias allow_unauthenticated_proxy_access is also accepted.
Additional sandbox ports that public ingress may route to. When omitted, only the management port 9501 is routable.
1 <= x <= 65535Template identifier to associate with the launched sandbox.
Optional user-provided sandbox name. When set, the sandbox is named and supports suspend/resume. When omitted, the sandbox is ephemeral.
Response
Sandbox created successfully
pending, running, snapshotting, suspending, suspended, terminated scheduling, waiting_for_container, no_executors_available, no_resources_available, pool_at_capacity Base ingress origin for this sandbox's current placement.