novita.volume.create() creates a new persistent volume that can be mounted into sandboxes to share and persist data across sandbox lifecycles. It returns a Volume instance carrying the volume ID, name, and auth token. You can optionally set a capacity quota at creation time.
Create a volume
Create and mount into a sandbox
A common flow is to create a volume, create a sandbox, mount the volume at a path, use it, and clean up. The data written to the mount path persists in the volume after the sandbox is killed.
A volume persists independently of any sandbox. Mount it into a sandbox with sandbox.mount_volume(name, path); data written under the mount path remains in the volume after the sandbox is killed, and can be mounted again into other sandboxes.