This call updates the details of a specific volume.
Learn more about using the Volumes API for Amazon S3 and for Google Cloud Storage.
https://api.sb.biodatacatalyst.nhlbi.nih.gov/v2/storage/volumes/{volume_id}Request
Example request
PATCH /v2/storage/volumes/rfranklin/output HTTP/1.1
Host: api.sb.biodatacatalyst.nhlbi.nih.gov
X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f75
Content-Type: application/jsoncurl --data '@patch-volume.json' -s -H "X-SBG-Auth-Token: 6282d5e2121d43e7900e9d52b15845e7" -H "Content-Type: application/json" -X PATCH "https://api.sb.biodatacatalyst.nhlbi.nih.gov/storage/volumes/rfranklin/output"Header Fields
| Key | Description of value |
|---|---|
X-SBG-Auth-Tokenrequired | Your authentication token. |
Content-typerequired | application/json |
Path parameters
| Key | Description of value |
|---|---|
volume_id | The volume that you want to update. |
Request body
In the body, you should enter a list of key-value pairs. The keys and the values they take are described in the following table.
| Key | Data type of value | Description of value |
|---|---|---|
description | String | An optional description of this volume. |
servicerequired | Object | This object should contain the information about the cloud service that this volume represents. See the |
The service object
service object| Key | Data type of value | Description of value |
|---|---|---|
credentials | object | Contains credentials for the underlying cloud provider. For Amazon Web Services, these credentials depend on the type of AWS identity that is used to connect the volume, IAM role or IAM user. 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 | Optional information that you can use in an IAM role trust policy to designate who can assume the role. Must be provided if it is configured in your role trust policy on AWS. More info. |
applies to type: | string | The ARN (Amazon Resource Name) for the role that you want to use to connect the volume. |
applies to type: | string | Google Cloud Platform user email. |
applies to type: | string | Google Cloud Platform private key. |
endpoint | string | Cloud provider API endpoint to use when accessing this bucket. Also includes FIPS endpoints if you need to use one. |
properties | object | Contains properties of specific service. |
applies to type: | string | Use default AES256 server-side encryption when writing to this bucket. (Support for SSE-KMS and SSE-C will be added in a later release.) Can be: default: AES256 |
applies to type: | string | Provide your AWS KMS ID here if you specify aws:kms as your sse_algorithm. Learn more about AWS KMS. |
Example request body
{
"description": null,
"service": {
"properties": {
"sse_algorithm": "AES256"
}
},
}Response
See a list of response codes that may be contained in the body of the response.
Response body
The response object contains information about the specified volume. The information is structured using the following key-value pairs:
| Key | Data type of value | Description of value |
|---|---|---|
active | Boolean | If a volume is deactivated, this field will be set to false |
id | String | ID of this volume, containing owner/name |
name | String | Name of the volume. |
description | String | The description of this volume. |
service | Object | This object more closely describes the mapping of the volume to the cloud service where the data is stored. See the |
created_on | String | The date and time this volume was created. |
modified_on | String | The date and time this volume was last modified. |
Example response body
{
"href": "https://api.sb.biodatacatalyst.nhlbi.nih.gov/v2/storage/volumes/rfranklin/output",
"id": "rfranklin/output",
"name": "output",
"access_mode": "RW",
"service": {
"type": "S3",
"bucket": "output_bucket",
"prefix": "outfiles",
"endpoint": "s3.amazonaws.com",
"credentials": {
"access_key_id": "AKIAJRC7TPMRMEXAMPLE"
},
"properties": {
"sse_algorithm": "AES256"
}
},
"created_on": "2016-06-30T08:14:02Z",
"modified_on": "2016-06-30T08:14:02Z",
"active": true
}Note that you cannot view volumes that you have created via the visual interface. However, you can see all your volumes by making the call to list volumes.
