最近更新时间:2024-08-30 17:45:12
该接口是获取在线解压策略。获取策略必须是桶所有者(BucketOwner
)或者拥有GetBucketDecompressPolicy
权限。
请求
请求语法
GET /?decompresspolicy HTTP/1.1
Host: {Bucketname}.{Endpoint}
Authorization: {SignatureValue}
Content-Type: application/json
Content-Length: {length}
Date: {date}
请求参数
该接口不使用请求参数
请求消息头
该请求使用公共消息头
响应消息样式
HTTP/1.1 status_code
Server: ks3
Date: date
Content-Type: type
Content-Length: length
compresspolicy in json body
请求示例
GET /?decompresspolicy HTTP/1.1
Host: bucketname.ks3-cn-beijing.ksyuncs.com
Authorization: authorization string
Content-Type: application/json
Content-Length: 497
Date: Tue, 21 Jul 2023 15:38:30 GMT
响应示例
HTTP/1.1 200 ok
Server: ks3
Date: Tue, 07 Jul 2020 07:29:13 GMT
Content-Length: 11
{
"rules": [{
"id": "ruleid",
"events": "ObjectCreated:*",
"prefix": "decompress",
"suffix": [".zip"],
"overwrite": "0",
"callback":"http://callback.demo.com",
"callback_format":"JSON",
"path_prefix": "test/",
"path_prefix_replaced":"0",
"policy_type": "decompress"
}]
}
错误响应
状态码 | 报错信息 | 错误原因 |
404 NotFound | rules not found | 桶里面没有设置在线解压策略规则。 |
纯净模式