0020-00000033

Updated at:

Problem description

When you call PutBucketInventory, OSS returns this error if the destination bucket specified in the Destination/OSSBucketDestination/Bucket node does not belong to the current Alibaba Cloud account.

Causes

The bucket specified in Destination/OSSBucketDestination/Bucket belongs to a different Alibaba Cloud account, not the account used to send the request.

Examples

The following request sets Destination/OSSBucketDestination/Bucket to acs:oss:::another-user-bucket. Because another-user-bucket belongs to a different account, the request fails.

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>1048576</UpperSizeBound>
         <StorageClass>Standard,IA</StorageClass>
   </Filter>
   <Destination>
      <OSSBucketDestination>
         <Format>CSV</Format>
         <AccountId>1000000000000000</AccountId>
         <RoleArn>acs:ram::1000000000000000:role/AliyunOSSRole</RoleArn>
         <Bucket>acs:oss:::another-user-bucket</Bucket>
         <Prefix>prefix1</Prefix>
         <Encryption>
            <SSE-KMS>
               <KeyId>keyId</KeyId>
            </SSE-KMS>
         </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>
      <Field>EncryptionStatus</Field>
   </OptionalFields>
</InventoryConfiguration>

Solutions

Make sure that the bucket specified by the value of the Destination/OSSBucketDestination/Bucket node exists under the current Alibaba Cloud account.

References