桶清单规则中内容信息字段不合法。
桶清单规则只支持输出几种固定的字段信息,服务器无法识别您设置的字段。
您在设置桶清单规则时,在清单内容信息(OptionalFields
)中传入了桶清单不支持的字段 SSEType
。
PUT /?inventory&id=report1 HTTP/1.1 Host: BucketName.tos-cn-beijing.volces.com Date: Mon, 31 Oct 2016 12:00:00 GMT Authorization: authorization string Content-Length: length { "InventoryConfiguration": { "Id": "id", "IsEnabled": "true", "Filter": { "Prefix": "prefix" }, "Destination": { "TOSBucketDestination": { "Format": "CSV", "AccountId": "2000000000000000", "Role": "TosArchiveTOSInventory", "Bucket": "destination-bucket", "Prefix": "prefix1" } }, "Schedule": { "Frequency": "Daily" }, "IncludedObjectVersions": "All", "OptionalFields": { "Field": [ "Size", "LastModifiedDate", "ETag", "StorageClass", "IsMultipartUploaded", "EncryptionStatus", "CRC64", "ReplicationStatus", "SSEType" ] } } }
传入的清单内容信息(OptionalFields
)的字段必须是桶清单支持的字段,关于桶清单支持的所有字段信息,请参见 PutBucketInventory。