You can use the GetBucketLocation operation of OSS to query the location information about the region, which is the data center, where a bucket is located.
Note For more information about the GetBucketLocation operation, see GetBucketLocation.
The returned Location field indicates the region where the bucket is located. For
example, a bucket is located in the China (Hangzhou) region, and the value of the
returned Location field is oss-cn-hangzhou
. For more information about regions, see Regions and endpoints.
Implementation modes
Implementation mode | Description |
---|---|
Console | A web application that displays the region of a bucket on the bucket overview page |
ossbrowser | An easy-to-operate graphical tool |
ossutil | A high-performance command-line tool |
Java SDK | SDK demos for various programming languages |
Python SDK | |
PHP SDK | |
Go SDK | |
C SDK | |
.NET SDK | |
Node.js SDK |