Skip to main content
Get a drive to check whether it’s ready to mount and which region it’s in. Set up your SDK or the CLI before running these examples.
Drives are in pre-release in the Baseten CLI (baseten drive and baseten sandbox drive) and in the Python, TypeScript, and Go SDKs (baseten, @basetenlabs/client, @basetenlabs/sandbox, and baseten-go). Commands, methods, and responses can change. The Management API drive operations are experimental.

Get a drive

A drive’s record holds its name, region, status, and labels, and when and by whom it was created and last updated. Its status is one of these values: To get the drive named shared-notes:
Run the following code:

Next steps

Mount a drive

Mount the drive in a running sandbox.

Update a drive

Replace a drive’s labels.