GetBucketMirroring
更新时间:2023-07-21
接口描述
本接口用来获取bucket的镜像回源信息
请求(Request)
-
请求语法
GET /?mirroring HTTP/1.1 Host: <BucketName>.bj.bcebos.com Date: <GMT Date> Authorization: AuthorizationString
-
请求头域
无特殊参数
-
请求参数
无特殊参数
响应(Response)
-
响应元素
参数 描述 mode 模式为拉取或者重定向 sourceUrl 主源站url backSourceUrl 备源站url resource 规则对哪些资源生效 prefix 回源地址前缀 suffix 回源地址后缀 fixedKey 回源地址固定名称 storageClass Object的存储类型 version 回源前缀替换选项 prefixReplace 前缀替换裁剪选项 passQueryString 是否传递请求参数 passHeaders 透传的header ignoreHeaders 忽略的header customHeaders 自定义header -
响应头域
无特殊参数
示例
-
请求示例
GET /?mirroring HTTP/1.1 Host: test-bucket.bj.bcebos.com Date: Thu, 15 May 2017 00:17:23 GMT Authorization: AuthorizationString
-
响应示例
HTTP/1.1 200 OK Date: Thu, 15 May 2017 00:17:23 GMT Server: BceBos x-bce-request-id: xxxx-xxxxx-xxxx Connection: keep-alive Content-Length: xxx { "bucketMirroringConfiguration":[ { "mode":"fetch", "sourceUrl":"http://www.baidu.com", "backSourceUrl":"bos://bj.bcebos.com/bucket", "resource" : "folder1/folder2*.jpeg", "prefix": "testprefix", "suffix": ".jpeg", "fixedKey":"folder1/404.jpeg", "version":"v2", "prefixReplace" : "a/b/c", "passQueryString":true, "storageClass":"STANDARD", "allHeader":"custom", "customHeaders":[ { "headerName":"testheader1", "headerValue":"name1", }, { "headerName":"TestHeaderName", "headerValue":"TestHeaderValue", } ], "ignoreHeaders": ["BanHeader1","BanHeader2"], "passHeaders":["AllowHeader1","AllowHeader2"], }, ] }