PUT /?encryption HTTP 1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: GMT DateAuthorization: Auth String
<ServerSideEncryptionConfiguration><Rule><ApplyServerSideEncryptionByDefault><SSEAlgorithm>AES256|KMS</SSEAlgorithm><KMSMasterKeyID>String</KMSMasterKeyID></ApplyServerSideEncryptionByDefault></Rule></ServerSideEncryptionConfiguration>
元素名称 | 父节点 | 描述 | 类型 | 是否必选 |
ServerSideEncryptionConfiguration | 无 | 包含默认加密的配置参数 | Container | 是 |
Rule | ServerSideEncryptionConfiguration | 默认的服务端加密配置规则 | Container | 是 |
ApplyServerSideEncryptionByDefault | ServerSideEncryptionConfiguration.Rule | 服务端加密的默认配置信息 | Container | 是 |
SSEAlgorithm | ServerSideEncryptionConfiguration.Rule.ApplyServerSideEncryptionByDefault | 支持枚举值 AES256、KMS,AES256 代表使用 SSE-COS 模式,加密算法为 AES256;KMS 代表 SSE-KMS 模式 | String | 是 |
KMSMasterKeyID | ServerSideEncryptionConfiguration.Rule.ApplyServerSideEncryptionByDefault | 当 SSEAlgorithm 的值为 KMS 时,用于指定 KMS 的用户主密钥 CMK,如不指定,则使用 COS 默认创建的 CMK,更多详细信息可参见 SSE-KMS 加密 | String | 是 |
PUT /?encryption HTTP 1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Mon, 17 Jun 2019 08:37:35 GMTAuthorization: signatureValue<ServerSideEncryptionConfiguration><Rule><ApplyServerSideEncryptionByDefault><SSEAlgorithm>AES256</SSEAlgorithm></ApplyServerSideEncryptionByDefault></Rule></ServerSideEncryptionConfiguration>
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 0Date: Mon, 17 Jun 2019 08:37:36 GMTServer: tencent-cosx-cos-request-id: NWQwNzUxNTBfMzdiMDJhMDlfOWM0Nl85NDFk****
本页内容是否解决了您的问题?