GetBucketLocation
更新时间:2020-07-09
接口描述
本接口用于获取Bucket所在的区域。
请求(Request)
-
请求语法
GET /?location HTTP/1.1 Host: <BucketName>.bj.bcebos.com Date: <Date> Authorization: <AuthorizationString> Content-Length: 0
-
请求头域
无特殊参数
-
请求参数
无特殊参数
响应(Response)
示例
-
请求示例
GET /?location HTTP/1.1 Host: BucketName.bj.bcebos.com Date: Wed, 06 Apr 2016 06:34:40 GMT Authorization: AuthorizationString Content-Length: 0
-
响应示例
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" }