Getting your S3 bucket name

Depending on the region and other settings, LABDRIVE keeps your data container inside a particular S3 Bucket. All data containers in your instance may use the same S3 bucket or not.

To obtain the Bucket Name associated to the data container you want to use, follow this process:

Using the LABDRIVE Management Interface

Go to the container you would like to upload to in the Management interface and get the bucket name in the Storage section.

Using the API

Alternatively, you can get the same information with the following method:

$ curl --request GET \
      --url "$your_labdrive_url/api/container/{your container id}" \
      --header "authorization: Bearer $your_labdrive_api_key"

and locate the bucket name:

The path for every file in the container is formed with:

s3://{S3 bucket name}/{container id}/{path to your file}

For example:

s3://labdrive-acme/5/myfile.txt

Last updated