> ## Documentation Index
> Fetch the complete documentation index at: https://docs.baseten.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a drive

> Get a drive's status, region, labels, and who created and last updated it.

Get a [drive](https://docs.baseten.co/drives/overview.md) to check whether it's ready to mount and which
region it's in. [Set up your SDK or the CLI](https://docs.baseten.co/drives/create-drives.md#set-up) before
running these examples.

> [!NOTE]
>
> 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](https://docs.baseten.co/reference/management-api/overview.md#drives) 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:

| Status | Meaning |
| - | - |
| `DEPLOYING` | Baseten is still setting up the drive. |
| `DEPLOYED` | The drive is ready to mount. |
| `FAILED` | Setup failed. |
| `DELETING` | Baseten is deleting the drive and its files. |

**To get the drive named `shared-notes`**:

> [tab] TypeScript
>
> Run the following code:
>
> ```typescript theme={"system"}
> import { ManagementClient } from "@basetenlabs/client";
>
> const client = new ManagementClient({ apiKey: process.env.BASETEN_API_KEY! });
> const drive = await client.drives.getInfo({ name: "shared-notes" });
> console.log(drive.status, drive.region, drive.labels);
> ```

> [tab] Python
>
> Run the following code:
>
> ```python theme={"system"}
> import os
>
> from baseten.client import ManagementClient
>
> with ManagementClient(api_key=os.environ["BASETEN_API_KEY"]) as client:
>     drive = client.drives.get_info(name="shared-notes")
>     print(drive.status, drive.region, drive.labels)
> ```

> [tab] Go
>
> Run the following code:
>
> ```go theme={"system"}
> package main
>
> import (
>     "context"
>     "fmt"
>     "log"
>     "os"
>
>     "github.com/basetenlabs/baseten-go/client"
> )
>
> func main() {
>     ctx := context.Background()
>     management, err := client.NewManagementClient(client.ManagementClientOptions{
>         APIKey: os.Getenv("BASETEN_API_KEY"),
>     })
>     if err != nil {
>         log.Fatal(err)
>     }
>     drive, err := management.Drives().GetInfo(ctx, client.DriveGetInfoOptions{Name: "shared-notes"})
>     if err != nil {
>         log.Fatal(err)
>     }
>     fmt.Println(drive.Status, drive.Region, drive.Labels)
> }
> ```

> [tab] API
>
> Run the following command to [get the drive](https://docs.baseten.co/reference/management-api/drives/get-a-drive.md):
>
> ```bash theme={"system"}
> curl --url https://api.baseten.co/v1/drives/instances/shared-notes \
>   --header "Authorization: Bearer $SANDBOX_TOKEN"
> ```
>
> A drive that doesn't exist returns HTTP `404`.

> [tab] CLI
>
> Run the following command:
>
> ```bash theme={"system"}
> baseten drive describe --name shared-notes
> ```
>
> Add `--output json` to print the full record as JSON.

## Next steps

> [card] [Mount a drive](https://docs.baseten.co/drives/mount-drives.md)
>
> Mount the drive in a running sandbox.

> [card] [Update a drive](https://docs.baseten.co/drives/update-drives.md)
>
> Replace a drive's labels.
