GetBucketLocation
Last Updated:2021-12-08
Interface Description
This interface is used to get the location of the bucket.
Request
-
Request syntax
GET /?location HTTP/1.1 Host: <BucketName>.bj.bcebos.com Date: <Date> Authorization: <AuthorizationString> Content-Length: 0
-
Request header field
No special parameters.
-
Request parameters
No special parameters.
Response
-
Response header field
No special head parameter response.
-
Response element
Name Type Description location String The region where the bucket resides.
Example
-
Request example
GET /?location HTTP/1.1 Host: BucketName.bj.bcebos.com Date: Wed, 06 Apr 2016 06:34:40 GMT Authorization: AuthorizationString Content-Length: 0
-
Response example
HTTP/1.1 200 OK x-bce-request-id: 4db2b34d-654d-4d8a-b49b-3049ca786409 Date: Wed, 06 Apr 2016 06:34:40 GMT Content-Length: 35 Connection: close Server: BceBos { "locationConstraint": "bj" }