DeleteBucketEncryption接口用于删除Bucket加密规则。

说明 只有Bucket的拥有者及授权的RAM用户才能删除Bucket的加密规则,否则返回403错误。有关Bucket加密的更多信息,请参见服务器端加密

请求语法

DELETE /?encryption HTTP/1.1
Date: GMT Date
Host: BucketName.oss.aliyuncs.com
Authorization: SignatureValue

示例

  • 请求示例
    DELETE /?encryption HTTP/1.1
    Host: oss-example.oss-cn-hangzhou.aliyuncs.com
    Date: Tue, 20 Dec 2018 11:35:24 GMT
    Authorization: OSS qn6qrrqxo2oawuk53otf****:6ZVHOehYzxoC1yxRydPQs/Cn****
  • 响应示例
    HTTP/1.1 204 OK
    x-oss-request-id: 5C22E0EFD127F6810B1A****
    Date: Tue, 20 Dec 2018 11:37:05 GMT
    Connection: keep-alive
    Content-Length: 0

SDK

DeleteBucketEncryption接口对应的各语言SDK如下:

错误码

错误码 HTTP状态码 说明
AccessDenied 403 无删除Bucket加密规则的权限。
NoSuchBucket 400 指定删除加密规则对应的Bucket不存在。