You can use the GetBucketLocation API of OSS to obtain the location information about the region, that is, the data center, where a bucket is located.

Note For more information about the GetBucketLocation API, see GetBucketLocation.

The returned Location field indicates the region where the bucket is located. For example, if a bucket is located in China (Hangzhou), the value of the returned Location field is oss-cn-hangzhou. For more information about regions, see Regions and endpoints.

Operating methods

Operating method Description
Console Web application that displays the region of a bucket on the bucket overview page
ossbrowser Graphical tool, which is easy to operate
ossutil Command-line tool, which delivers good performance
Java SDK SDK demos in various languages
Python SDK
PHP SDK
Go SDK
C SDK
.NET SDK
Node.js SDK
Ruby SDK