Provision a Volume and Attach It to a New Sandbox
A 3-step recipe with Daytona. We can help you get access.
Recipe · 3 steps
Provision a Volume and Attach It to a New Sandbox
with Daytona
Create a volume, wait until ready, then launch a sandbox with it mounted.
- Create a new persistent volume.
- Poll the volume until it reports ready, looping while it is still creating and ending if it errors.
- Create a sandbox from the snapshot with the ready volume mounted.
What you'll need to have ready
- apiToken: Daytona API key used as a bearer token.
- volumeName: The name of the persistent volume to create.
- snapshot: The ID or name of the snapshot used to back the new sandbox.
- mountPath: The path at which the volume is mounted inside the sandbox (e.g. /data).
For your developer
Arazzo workflow daytona-io:provision-volume-and-sandbox, 3 operations: createVolume → getVolume → createSandbox. Specs on APIs.io.