Drives
Learn about creating and managing virtual drives, mapped to resources on external storage services, via the DNAnexus API.
Drive API Method Specifications
API method: /drive/new
/drive/newSpecification
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
namestring name of the drivecloudstring (azureoraws): Drive cloud providercredentialsmapping credentials associated with the drivekeystring credential fieldvaluestring credential value
Outputs
idstring id of the created drive
Errors
Unauthorized
Must supply authentication token
InvalidInput
The input is not a hash
nameis not a nonempty stringcloudis not a stringcredentialsis not hashcredentialscannot access the given cloud environment
API method: /drive-xxxx/disable
/drive-xxxx/disableSpecification
This API disables a drive. The requesting user must have permissions to use the drive.
Outputs
idstring 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
/drive-xxxx/updateSpecification
Updates information about a drive. The requesting user must have permissions to use the drive.
Inputs
namestring (optional): New user specified name of drivecredentialsmapping (optional): New credentials associated with the drivekeystring credential fieldvaluestring credential value
Outputs
idstring 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 stringcredentials(if provided) is not hashcredentials(if provided) cannot access given cloud environment
ResourceNotFound
The entity drive-xxxx could not be found
API method: /drive-xxxx/describe
/drive-xxxx/describeSpecification
Describes a drive.
Inputs
fieldsmapping (optional): Include or exclude fields from the output.keystring Desired output field (see the "Outputs" section below for valid values)valueboolean Whether to include the field
Outputs
idstring ID of the drivenamestring name of the drivecloudstring cloud provider of the drivecreatedtimestamp time at which this object was createdmodifiedtimestamp 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 hashname(if provided) is not booleancloud(if provided) is not booleanid(if provided) is not booleancreated(if provided) is not booleanmodified (if provided) is not boolean
ResourceNotFound
The entity drive-xxxx could not be found
Last updated
Was this helpful?