Create volume
volume_createCreate a persistent volume for a sandbox or app to keep files across restarts and redeploys; set project, name, region or service mount path, and size.
Instructions
Create a persistent volume. Without service: a sandbox volume in the project, to attach with sandbox_create's volume (it must be in the sandbox's region); the size defaults to the project's default and must be within its limits. With service: a volume attached to that app at mountPath (default /data), one per app; the app restarts with it mounted and files there survive restarts and redeploys. Volumes are billed for their size until deleted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Lowercase letters, digits and dashes, up to 64 | |
| region | No | Sandbox volumes: region code (region_list) | |
| sizeGb | No | Size in GB | |
| project | Yes | Project name, slug, or ID | |
| service | No | App name or ID to attach the volume to | |
| mountPath | No | With service: absolute path, default /data |