> For the complete documentation index, see [llms.txt](https://documentation.dnanexus.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.dnanexus.com/developer/api/introduction-to-data-object-classes/drives.md).

# Drives

## Drive API Method Specifications

### API method: `/drive/new`

#### Specification

This API creates a new drive from the specified external storage service. On success, the requesting user has permissions to perform tasks associated with the external storage.

#### Inputs

* `name` **string** (required) Name of the drive.
* `cloud` **string** (required) Drive cloud provider.
  * Must be one of `"azure"` or `"aws"`.
* `credentials` **mapping** (required) Credentials associated with the drive.
  * **key** — the credential field.
  * **value** **string** — the credential value.

#### Outputs

* `id` **string** ID of the created drive.

#### Errors

* Unauthorized
  * Must supply authentication token
* InvalidInput
  * The input is not a hash
  * `name` is not a nonempty string
  * `cloud` is not a string
  * `credentials` is not a hash
  * `credentials` cannot access the given cloud environment

### API method: `/drive-xxxx/disable`

#### Specification

This API disables a drive. The requesting user must have permissions to use the drive.

#### Outputs

* `id` **string** ID of the disabled drive.

#### Errors

* Unauthorized
  * Must supply authentication token
* ResourceNotFound
  * The entity drive-xxxx could not be found

### API method: `/drive-xxxx/update`

#### Specification

Updates information about a drive. The requesting user must have permissions to use the drive.

#### Inputs

* `name` **string** (optional) New user-specified name of the drive.
* `credentials` **mapping** (optional) New credentials associated with the drive.
  * **key** — the credential field.
  * **value** **string** — the credential value.

#### Outputs

* `id` **string** ID of the updated drive.

#### Errors

* Unauthorized
  * Must supply authentication token
* InvalidInput
  * The input is not a hash
  * `name` (if provided) is not a nonempty string
  * `credentials` (if provided) is not a hash
  * `credentials` (if provided) cannot access the given cloud environment
* ResourceNotFound
  * The entity drive-xxxx could not be found

### API method: `/drive-xxxx/describe`

#### Specification

Describes a drive.

#### Inputs

* `fields` **mapping** (optional) Include or exclude fields from the output.
  * **key** — the output field to include or exclude. See "Outputs" below for valid values.
  * **value** **boolean** — whether to include the field.

#### Outputs

* `id` **string** ID of the drive.
* `name` **string** Name of the drive.
* `cloud` **string** Cloud provider of the drive.
* `created` [**timestamp**](/developer/api.md#data-types) Time at which this object was created.
* `modified` [**timestamp**](/developer/api.md#data-types) Time at which this object was last modified.

#### Errors

* Unauthorized
  * Must supply authentication token
* InvalidInput
  * The input is not a hash
  * `fields` (if provided) is not a hash
  * `name` (if provided) is not a boolean
  * `cloud` (if provided) is not a boolean
  * `id` (if provided) is not a boolean
  * `created` (if provided) is not a boolean
  * `modified` (if provided) is not a boolean
* ResourceNotFound
  * The entity drive-xxxx could not be found


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://documentation.dnanexus.com/developer/api/introduction-to-data-object-classes/drives.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
