Get Region Where Bucket Resides
Last Updated:2021-09-13
Interface Description
This interface is used to get the location of the bucket.
Request URI
GET /v1/{bucketName}/?location
Parameter Name | Parameter Type | Required | Description | Example Value | Parameter Position |
---|---|---|---|---|---|
bucketName | String | Yes | Bucket name | "bucketName_example" | Path |
Request Body Parameters
Instructions for Data Structure of Request Body Field
Response Body Parameters
Instructions for Data Structure of Response Body Field
Parameter name | Parameter type | Description | Example value |
---|---|---|---|
locationConstraint | String | The region where the bucket resides. | bj |
Request Example
GET /v1/bucketName_example/?location
Common Request Header
{ }
Response Example
HTTP/1.1 200 OK
<Common response header>
{
"locationConstraint" : "bj"
}
Error Code
Refer to the universal error code.