GetBucketLocation
Updated at:2025-11-03
API description
This API retrieves the region in which the bucket is located.
Request
-
Request syntax
Plain Text1 GET /?location HTTP/1.1 2 Host: <BucketName>.bj.bcebos.com 3 Date: <Date> 4 Authorization: <AuthorizationString> 5 Content-Length: 0 -
Request headers
No special parameters
-
Request parameters
No special parameters
Response
| Name | Types | Description |
|---|---|---|
| location | String | Region where the bucket is located |
Example
-
Request example
Http1GET /?location HTTP/1.1 2Host: BucketName.bj.bcebos.com 3Date: Wed, 06 Apr 2016 06:34:40 GMT 4Authorization: AuthorizationString 5Content-Length: 0
-
Response example
Http1HTTP/1.1 200 OK 2x-bce-request-id: 4db2b34d-654d-4d8a-b49b-3049ca786409 3Date: Wed, 06 Apr 2016 06:34:40 GMT 4Content-Length: 35 5Connection: close 6Server: BceBos 7{ 8 "locationConstraint": "bj" 9}
