0020-00000019

Updated at: 2023-07-21 07:46

Problem description

The destination bucket specified by the OSSBucketDestination/Bucket node in the PutBucketInventory request and the bucket for which inventories are configured are not in the same region.

Causes

The destination bucket that stores exported inventory lists is not in the same region as the source bucket for which inventories are configured.

Examples

An inventory is configured for a bucket (oss-example) in the China (Hangzhou) region. However, the destination bucket (dest-bucket) specified by the OSSBucketDestination/Bucket bucket is in the China (Beijing) region.

 PUT /?inventory&inventoryId=report1 HTTP/1.1
 Host: oss-example.oss-cn-hangzhou.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:::dest-bucket</Bucket>
       	<Prefix>prefix1</Prefix>
      </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>

Solutions

Make sure that the destination bucket that stores exported inventory lists is in the same region as the source bucket for which inventories are configured.

References

PutBucketInventory

  • On this page (1, T)
  • Problem description
  • Causes
  • Examples
  • Solutions
  • References
Feedback