This call returns details of the specified volume. The volume is referred to by its ID, which you can obtain by making the call to list all the volumes you've registered.
https://cavatica-api.sbgenomics.com/v2/storage/volumes/{volume_id}Request
Example request
GET /storage/volumes/rfranklin/output HTTP/1.1
Host: cavatica-api.sbgenomics.com
X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f75curl -s -H "X-SBG-Auth-Token: 6282d5e2121d43e7900e9d52b15845e7" -H "Content-type: application/json" -X GET "https://cavatica-api.sbgenomics.com/storage/volumes/rfranklin/output"Header Fields
Key | Description of value |
|---|---|
| Your CAVATICA authentication token. |
|
|
Path parameters
Key | Data type of value | Description of value |
|---|---|---|
| String | The volume that you want to query, which consists of username of the volume owner and volume name, for example |
Response
See a list of CAVATICA-specific response codes that may be contained in the body of the response.
Key | Data type of value | Description of value |
|---|---|---|
| Boolean | If a volume is deactivated, this field will be set to false |
| String | ID of this volume, containing owner/name |
| String | Name of the volume. |
| String | The description of this volume. |
| Object | This object more closely describes the mapping of the volume to the cloud service where the data is stored. See the |
| String | The date and time this volume was created. |
| String | The date and time this volume was last modified. |
The service object
service objectKey | Data type of value | Description of value |
|---|---|---|
| string | The type of cloud service supported. Currently the only valid values are |
| string | Signifies whether this volume should be used for read-write ( The access mode is consulted independently of the credentials granted to Seven Bridges when the volume was created, so it is possible to use a read-write credentials to register both read-write and read-only volumes using it.
|
| String | A service-specific prefix to prepend to all objects created in this volume. If the service supports folders, and this prefix includes them, the API will attempt to create any missing folders when it outputs a file.
|
applies to type: | String | The name of the AWS S3 or GCS bucket you wish to register as a volume. |
default:https://s3.amazonaws.com for | String | Cloud provider API endpoint to use when accessing this bucket. For a list of AWS-supported endpoints, see AWS Regions and Endpoints. |
| Object | Contains credentials for the underlying cloud provider.
For Google Cloud Storage, these credentials are: |
applies to type: | String | AWS access key ID of the IAM user shared with Seven Bridges to access this bucket. |
applies to type: | String | AWS secret access key of the IAM user shared with Seven Bridges to access this bucket. |
applies to type: | String | Google Cloud Storage user email. |
applies to type: | String | Google Cloud Storage private key. |
| Object | Contains properties of specific service. |
s3 | String | Use default AES256 server-side encryption or AWS KMS encryption when writing to this bucket. Can be:
default: AES256 |
s3 | String | If AWS KMS encryption is used, this should be set to the required KMS key. If not set and |
Example response body
{
"active": True,
"description": "task outputs bucket",
"id": "rfranklin/output",
"service": {
"type": "s3",
"bucket": "sbg-test-output",
"hostname": "s3.amazonaws.com",
"access_key": "AKIAJRC7TPMRMEXAMPLE",
"access_mode": "RW",
"prefix": "",
"sse_enabled": True,
"created_time": "2016-06-29T11:13:10+02:00",
"updated_time": "2016-06-29T12:15:10+02:00"
}
}