Welcome to the new DOCS.vastdata.com. We've added new menus and a version selector, plus new persona and resource pages to help customers get started. Looking for a previous article? Use the docs search.

Return the location of a bucket

Prev Next

The get_bucket_location() method is used to return the region in which the bucket resides.

If a region was specified in the CreateBucket() request, it is returned by this method. If no region was specified in the CreateBucket() request, the bucket region was set to 'vast-1', which is returned by this method.

Example

response = s3_client.get_bucket_location(
    Bucket='mybucket',
)