桶清单规则中目标桶配置不正确。
创建桶清单规则时,目标桶的相关配置不符合规则,可能存在以下原因:
RoBucket
设置不合法。AccountId
为空。Role
为空。Format
没有设置为 CSV
。您在设置桶清单规则时,未填写目标桶的的相关内容。
RoBucket
设置不合法。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", ] } } }
AccountId
设置为空。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": "", "Role": "TosArchiveTOSInventory", "Bucket": "destination-bucket", "Prefix": "prefix", } }, "Schedule": { "Frequency": "Daily" }, "IncludedObjectVersions": "All", "OptionalFields": { "Field": [ "Size", "LastModifiedDate", "ETag", "StorageClass", "IsMultipartUploaded", "EncryptionStatus", "CRC64", "ReplicationStatus", ] } } }
Role
为空。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" ] } } }
Format
没有设置为 CSV
。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": "CSC", "AccountId": "2000000000000000", "Role": "TosArchiveTOSInventory", "Bucket": "destination-bucket", "Prefix": "prefix1" } }, "Schedule": { "Frequency": "Daily" }, "IncludedObjectVersions": "All", "OptionalFields": { "Field": [ "Size", "LastModifiedDate", "ETag", "StorageClass", "IsMultipartUploaded", "EncryptionStatus", "CRC64", "ReplicationStatus" ] } } }
RoBucket
设置不合法,您可以参考创建桶的命名规范正确填写桶名。Format
目前仅支持CSV。