Snapshot a sandbox
Captures the sandbox into a saved snapshot of its memory and disk,
kept until deleted. Creating a sandbox from a snapshot, resuming with
its processes intact, arrives in a later release; until then a
snapshot can be listed, renamed and deleted. The sandbox must be
active or paused. A running sandbox is paused for the capture: under
a second for the first memory snapshot of a sandbox, longer when all
of memory has to be written. The call returns once the snapshot is
ready; if the host’s answer is lost on the way, it returns the
snapshot still creating and the platform settles it with the host
shortly. Snapshots outlive the sandbox they came from.
Pass idempotency_key to make a retry return the snapshot the first
request made instead of taking another, whatever became of it since.
Authorizations
Path Parameters
The unique identifier of the sandbox.
Public sandbox ID: a bare UUID, or the region-tagged form sb-<region>-<uuid> (e.g. sb-use-1b4e28ba-…). Treat as an opaque string; the tagged form routes the request to the sandbox's home region. Endpoints accept both forms interchangeably.
^(sb-[a-z0-9]+-)?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Body
mem+fs captures memory and disk. A disk-only kind is not offered yet.
mem+fs Optional label. Can be changed later with PATCH.
1 - 64Caller-chosen key, unique per sandbox. A retry carrying the same key returns the snapshot the first request made.
1 - 255Response
A snapshot an earlier request with the same idempotency_key made
The sandbox the snapshot was taken from. It may since have been deleted.
mem+fs creating, ready, failed, deleting Bytes the snapshot holds on disk; 0 until ready.
The template the captured sandbox was created from.