问题描述
PutBucketInventory请求中Destination/OSSBucketDestination/Encryption
节点取值不合法。
问题原因
PutBucketInventory请求中Destination/OSSBucketDestination/Encryption
节点同时包含了SSE-OSS
和SSE-KMS
两种加密方式。单次请求仅允许指定一种加密方式。
问题示例
以下请求通过Destination/OSSBucketDestination/Encryption
节点同时指定了SSE-KMS
和SSE-OSS
两种加密方式。
PUT /?inventory&inventoryId=report1 HTTP/1.1
Host: BucketName.oss.aliyuncs.com
Date: Mon, 31 Oct 2016 12:00:00 GMT
Authorization: authorization string
Content-Length: length
<?xml version="1.0" encoding="UTF-8"?>
<InventoryConfiguration>
<Id>report1</Id>
<IsEnabled>true</IsEnabled>
<Filter>
<Prefix>filterPrefix/</Prefix>
<LastModifyBeginTimeStamp>1637883649</LastModifyBeginTimeStamp>
<LastModifyEndTimeStamp>1638347592</LastModifyEndTimeStamp>
<LowerSizeBound>1024</LowerSizeBound>
<UpperSizeBound>123</UpperSizeBound>
<StorageClass>Standard,IA</StorageClass>
</Filter>
<Destination>
<OSSBucketDestination>
<Format>CSV</Format>
<AccountId>1000000000000000</AccountId>
<RoleArn>acs:ram::1000000000000000:role/AliyunOSSRole</RoleArn>
<Bucket>acs:oss:::destination-bucket</Bucket>
<Prefix>prefix1</Prefix>
<Encryption>
<SSE-KMS>
<KeyId>keyId</KeyId>
</SSE-KMS>
<SSE-OSS>
<KeyId>keyId</KeyId>
</SSE-OSS>
</Encryption>
</OSSBucketDestination>
</Destination>
<Schedule>
<Frequency>Daily</Frequency>
</Schedule>
<IncludedObjectVersions>All</IncludedObjectVersions>
<OptionalFields>
<Field>Size</Field>
<Field>LastModifiedDate</Field>
<Field>ETag</Field>
<Field>StorageClass</Field>
<Field>IsMultipartUploaded</Field>
</OptionalFields>
</InventoryConfiguration>
解决方案
Destination/OSSBucketDestination/Encryption
节点下仅保留SSE-OSS
或者SSE-KMS
的加密方式。
相关文档
文档内容是否对您有帮助?