Statuses
A sandbox’s status field is one of these values. Once a sandbox reaches a final status it never changes again.
| Status | Meaning | Final |
|---|---|---|
creating | The API accepted the request and a host is starting the sandbox. | No |
running | The sandbox is up. You can run commands, move files, expose ports and connect over SSH. | No |
unreachable | The control plane lost contact with the sandbox's host. If the host reconnects and still has the sandbox, it returns to running. | No |
stopping | A destroy was requested, by you or by a timeout, and the host is tearing the sandbox down. | No |
stopped | The sandbox was destroyed. end_reason says why. | Yes |
lost | The host stayed unreachable for 10 minutes. The sandbox is gone, and it is billed only up to the last usage sample the host sent. | Yes |
terminated_abuse | Abuse detection killed the sandbox, for example for cryptocurrency mining. New sandboxes are blocked for the organization until the case is reviewed. | Yes |
failed | The sandbox could not be created, or it failed on the host. | Yes |
Usual path
Section titled “Usual path”creating: you called create.running: the host reported the sandbox ready.stopping: you destroyed it, or a timeout fired.stopped: the host tore it down.end_reasonisapi,idle_timeoutorhard_timeout.
When a host misbehaves
Section titled “When a host misbehaves”If the control plane stops hearing from a host, its sandboxes become unreachable. When the host reconnects, it
reports the sandboxes it still has, and those go back to running. A host that stays unreachable for 10 minutes has
its sandboxes marked lost, with end_reason: host_lost.
Every change is in the audit trail: sandbox.ready, sandbox.unreachable, sandbox.recovered, sandbox.lost,
sandbox.failed and sandbox.destroyed.
List sandboxes in one status with GET /v1/sandboxes?status=running.