All URIs are relative to http://aps2.platform.illumina.com
Method | HTTP request | Description |
---|---|---|
CreateVolume | POST /v1/volumes | Create a volume in GDS and receive temporary credentials for upload |
DeleteVolume | DELETE /v1/volumes/{volumeId} | Deletes a volume by Id |
GetVolume | GET /v1/volumes/{volumeId} | Get information for the specified volume ID or volume name |
ListVolumes | GET /v1/volumes | Get a list of volumes |
UpdateVolume | PATCH /v1/volumes/{volumeId} | Update a volume content |
CreateVolumeResponse CreateVolume(body, include = var.include)
Create a volume in GDS and receive temporary credentials for upload
Create a volume in GDS to hold folders and files. Returns upload credentials to the root folder of the volume when the include=objectStoreAccess parameter is used. You must create a volume prior to uploading files or folders.
library(icar1)
# Create a volume in GDS and receive temporary credentials for upload
#
# prepare function argument(s)
var_body <- CreateVolumeRequest$new("name_example", "volumeConfigurationName_example", "rootKeyPrefix_example", 123, VolumeLifeCycleSettings$new(123, "gracePeriodEndAction_example")) # CreateVolumeRequest |
var_include <- "include_example" # character | Optionally include additional fields in the response. Possible values: ObjectStoreAccess (Optional)
api_instance <- VolumesApi$new()
# Configure API key authorization: Bearer
api_instance$api_client$api_keys["Authorization"] <- Sys.getenv("API_KEY")
Name | Type | Description | Notes |
---|---|---|---|
body | CreateVolumeRequest | ||
include | character | Optionally include additional fields in the response. Possible values: ObjectStoreAccess | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Created new Volume. | - |
400 | Bad request. | - |
401 | Unauthorized. | - |
403 | Forbidden. | - |
409 | A conflict was found. Make sure the new Volume doesn't already exist. | - |
0 | Unexpected issue. Please try your request again. If problem persists, please contact the system administrator. | - |
VolumeResponse DeleteVolume(volume_id, purge_object_store_data = var.purge_object_store_data)
Deletes a volume by Id
library(icar1)
# Deletes a volume by Id
#
# prepare function argument(s)
var_volume_id <- "volume_id_example" # character | Unique identifier for the Volume to be deleted.
var_purge_object_store_data <- "purge_object_store_data_example" # character | Optional and for BYOB only. If true, the volume's data in object storage will be erased. This field is ignored for non-BYOB volumes where the object store data is always removed upon deleting the volume. (Optional)
api_instance <- VolumesApi$new()
# Configure API key authorization: Bearer
api_instance$api_client$api_keys["Authorization"] <- Sys.getenv("API_KEY")
Name | Type | Description | Notes |
---|---|---|---|
volume_id | character | Unique identifier for the Volume to be deleted. | |
purge_object_store_data | character | Optional and for BYOB only. If true, the volume's data in object storage will be erased. This field is ignored for non-BYOB volumes where the object store data is always removed upon deleting the volume. | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
202 | Accepted. | - |
400 | Bad request. | - |
401 | Unauthorized. | - |
403 | Forbidden. | - |
404 | Volume not found. | - |
409 | Conflict | - |
0 | Unexpected issue. Please try your request again. If problem persists, please contact the system administrator. | - |
VolumeResponse GetVolume(volume_id, tenant_id = var.tenant_id, metadata_include = var.metadata_include, metadata_exclude = var.metadata_exclude)
Get information for the specified volume ID or volume name
library(icar1)
# Get information for the specified volume ID or volume name
#
# prepare function argument(s)
var_volume_id <- "volume_id_example" # character | Unique identifier for the volume to retrieve information for.
var_tenant_id <- "tenant_id_example" # character | Optional parameter to see shared data in another tenant (Optional)
var_metadata_include <- "metadata_include_example" # character | Optional parameter to specify comma separated patterns to include metadata by their field names. (Optional)
var_metadata_exclude <- "metadata_exclude_example" # character | Optional parameter to specify comma separated patterns to exclude metadata by their field names. (Optional)
api_instance <- VolumesApi$new()
# Configure API key authorization: Bearer
api_instance$api_client$api_keys["Authorization"] <- Sys.getenv("API_KEY")
Name | Type | Description | Notes |
---|---|---|---|
volume_id | character | Unique identifier for the volume to retrieve information for. | |
tenant_id | character | Optional parameter to see shared data in another tenant | [optional] |
metadata_include | character | Optional parameter to specify comma separated patterns to include metadata by their field names. | [optional] |
metadata_exclude | character | Optional parameter to specify comma separated patterns to exclude metadata by their field names. | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success. | - |
400 | Bad request. | - |
401 | Unauthorized. | - |
403 | Forbidden. | - |
404 | Volume not found. | - |
0 | Unexpected issue. Please try your request again. If problem persists, please contact the system administrator. | - |
VolumeListResponse ListVolumes(page_size = var.page_size, page_token = var.page_token, include = var.include, tenant_id = var.tenant_id, volume_configuration_name = var.volume_configuration_name)
Get a list of volumes
Get a list of volumes accessible by the current JWT token’s tenant ID in GDS. The default sort returned is alphabetical, ascending. The default page size is 10 items.
library(icar1)
# Get a list of volumes
#
# prepare function argument(s)
var_page_size <- 56 # integer | START_DESC END_DESC (Optional)
var_page_token <- "page_token_example" # character | START_DESC END_DESC (Optional)
var_include <- "include_example" # character | Optionally include additional fields in the response. Multiple fields can be included by comma-separation. Possible values: TotalItemCount, InheritedAcl (Optional)
var_tenant_id <- "tenant_id_example" # character | Optional parameter to see shared data in another tenant (Optional)
var_volume_configuration_name <- "volume_configuration_name_example" # character | Unique name of the volume configuration (Optional)
api_instance <- VolumesApi$new()
# Configure API key authorization: Bearer
api_instance$api_client$api_keys["Authorization"] <- Sys.getenv("API_KEY")
Name | Type | Description | Notes |
---|---|---|---|
page_size | integer | START_DESC END_DESC | [optional] |
page_token | character | START_DESC END_DESC | [optional] |
include | character | Optionally include additional fields in the response. Multiple fields can be included by comma-separation. Possible values: TotalItemCount, InheritedAcl | [optional] |
tenant_id | character | Optional parameter to see shared data in another tenant | [optional] |
volume_configuration_name | character | Unique name of the volume configuration | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success. | - |
400 | Bad request. | - |
401 | Unauthorized. | - |
403 | Forbidden. | - |
0 | Unexpected issue. Please try your request again. If problem persists, please contact the system administrator. | - |
VolumeResponse UpdateVolume(volume_id, include = var.include, body = var.body)
Update a volume content
Update an existing volume in GDS and return upload credentials for that volume.
library(icar1)
# Update a volume content
#
# prepare function argument(s)
var_volume_id <- "volume_id_example" # character | Unique identifier for the volume to be updated.
var_include <- "include_example" # character | Optionally include additional fields in the response. Possible values: ObjectStoreAccess (Optional)
var_body <- UpdateVolumeRequest$new(123, VolumeLifeCycleSettings$new(123, "gracePeriodEndAction_example")) # UpdateVolumeRequest | (Optional)
api_instance <- VolumesApi$new()
# Configure API key authorization: Bearer
api_instance$api_client$api_keys["Authorization"] <- Sys.getenv("API_KEY")
Name | Type | Description | Notes |
---|---|---|---|
volume_id | character | Unique identifier for the volume to be updated. | |
include | character | Optionally include additional fields in the response. Possible values: ObjectStoreAccess | [optional] |
body | UpdateVolumeRequest | [optional] |
- Content-Type: application/json-patch+json, application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success. | - |
400 | Bad request. | - |
401 | Unauthorized. | - |
403 | Forbidden. | - |
404 | Volume not found. | - |
0 | Unexpected issue. Please try your request again. If problem persists, please contact the system administrator. | - |