创建桶清单规则时,角色的权限校验失败。
创建桶清单规则时,填写的 AccountId
、 Role
格式错误或 AccountId
、 Role
没有目标桶的操作权限。
您在创建桶清单规则时,填写了非法的 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": "InValidRole", "Bucket": "destination-bucket", "Prefix": "prefix1" } }, "Schedule": { "Frequency": "Daily" }, "IncludedObjectVersions": "All", "OptionalFields": { "Field": [ "Size", "LastModifiedDate", "ETag", "StorageClass", "IsMultipartUploaded", "EncryptionStatus", "CRC64", "ReplicationStatus" ] } } }
请确保 AccountId
和 Role
对目标桶拥有正确的执行权限。Role
可填写为 TOS 默认角色 TosArchiveTOSInventory,具体内容,请参见 PutBucketInventory。