Provision a Sandbox
A 3-step recipe with Daytona. We can help you get access.
Recipe · 3 steps
Provision a Sandbox
with Daytona
Create a sandbox from a snapshot and wait until it is running.
- Create a new sandbox backed by the supplied snapshot with the requested CPU, memory, and disk resources.
- Read the sandbox and branch on its state: keep polling while it is still provisioning, finish when it is started, or stop if it errors.
- Read the full details of the now-running sandbox.
What you'll need to have ready
- apiToken: Daytona API key used as a bearer token.
- snapshot: The ID or name of the snapshot used to back the new sandbox.
- name: Optional name for the sandbox; defaults to the sandbox ID when omitted.
- cpu: CPU cores to allocate to the sandbox.
- memory: Memory in GB to allocate to the sandbox.
- disk: Disk space in GB to allocate to the sandbox.
For your developer
Arazzo workflow daytona-io:provision-sandbox, 3 operations: createSandbox → getSandbox → getSandbox. Specs on APIs.io.