--- title: "Return the location of a bucket" slug: "return-the-location-of-a-bucket-boto3" updated: 2026-10-28T01:54:03Z published: 2026-10-28T01:54:03Z canonical: "docs.vastdata.com/return-the-location-of-a-bucket-boto3" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.vastdata.com/llms.txt > Use this file to discover all available pages before exploring further. # Return the location of a bucket The [get_bucket_location()](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#S3.Client.get_bucket_location) method is used to return the region in which the bucket resides. If a region was specified in the [CreateBucket()](/docs-5-4/docs/en/create-a-bucket-boto3) 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 ```plaintext response = s3_client.get_bucket_location(    Bucket='mybucket', ) ```