Skip to main content
A managed volume is storage the platform keeps for you, independent of any box. This is the shortest complete path: create one, mount it, write through it, read it back.

Prerequisites

  • An API key from the console, exported as BOXLITE_API_KEY. See API keys.
  • pip install boxlite, and the REST URL exported as BOXLITE_REST_URL. See Quickstart.
Every example reads both values from the environment, so nothing hard-codes a credential. Create a volume, mount it into a box at /data, write a file through the mount, and read it back. This runs as written once the two environment variables are set.
Two things in that script are worth pausing on, and the rest of this page builds on them: the volume carries a name you chose, and the box mounts it by that name.

Create a volume in the console

The console is the other way to create a volume, and the one to use when you want to see what you own.
  1. Open Volumes in the console and click New Volume.
  2. Fill in Name — the only field. Pick something you will recognize later, such as subtitle-models.
  3. Creation waits until the volume is ready, so you can mount it immediately.
The volume now exists independently of any box. You can mount it into a box, destroy that box, and mount it into a different one later. rt.volumes.list() and the Volumes page report the same set of volumes, and a name set in either place mounts the same way.

Next steps

Volumes

What a volume is, the full parameter reference, and how Cloud differs from open source.