Skip to main content
novita.volume.connect() connects to an existing volume by its ID and returns a Volume instance you can mount into sandboxes. Use it to reuse a volume that was created earlier — in a different process, session, or service — without re-creating it.

Connect to a volume

Pass the ID of an existing volume. The returned instance carries the volume ID, name, and auth token.

Connect, then mount into a sandbox

A common flow is to connect to an existing volume, create a sandbox, mount the volume, read the previously persisted data, and clean up. The data written by an earlier sandbox is still there.
novita.volume.connect() looks up an existing volume and does not create a new one. If the volume ID does not exist, the call raises a not-found error (404). To create a new volume, use novita.volume.create() instead.
Last modified on September 4, 2026