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/new
Specification
This API creates a new drive from the specified external storage service. Upon success, the requesting user will have permissions to perform tasks associated with the external storage.
Inputs
name
string name of the drivecloud
string ("azure" or "aws"): Drive cloud providercredentials
mapping credentials associated with the drivekey
string credential fieldvalue
string 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 stringcloud
is not a stringcredentials
is not hashcredentials
cannot access the given cloud environment
API method: /drive-xxxx/disable
/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
/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 drivecredentials
mapping (optional): New credentials associated with the drivekey
string credential fieldvalue
string 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 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/describe
Specification
Describes a drive.
Inputs
fields
mapping (optional): Include or exclude fields from the output.key
string Desired output field (see the "Outputs" section below for valid values)value
boolean Whether to include the field
Outputs
id
string ID of the drivename
string name of the drivecloud
string cloud provider of the drivecreated
timestamp time at which this object was createdmodified
timestamp 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