GET /?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 |
GET /?encryption HTTP 1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Mon, 17 Jun 2019 08:37:35 GMTAuthorization: signatureValue
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: xxxxDate: Mon, 17 Jun 2019 08:37:36 GMTServer: tencent-cosx-cos-request-id: NWQwNzUxNTBfMzdiMDJhMDlfOWM0Nl85NDFk****<?xml version = "1.0" encoding = "UTF-8"><ServerSideEncryptionConfiguration><Rule><ApplyServerSideEncryptionByDefault><SSEAlgorithm>AES256</SSEAlgorithm></ApplyServerSideEncryptionByDefault></Rule></ServerSideEncryptionConfiguration>
本页内容是否解决了您的问题?