Unlock the Power of AI

1 million free tokens

88% Price Reduction

NaNDayNaN:NaN:NaN
Activate Now

0020-00000012

Updated at: 2023-07-21 07:46

Problem description

The PutBucketInventory request does not contain the Destination/OSSBucketDestination/Format node.

Causes

The PutBucketInventory request does not contain the required Destination/OSSBucketDestination/Format node.

Examples

The Destination/OSSBucketDestination/Format node is not specified in the PutBucketInventory request.

 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>123</UpperSizeBound>
    <StorageClass>Standard,IA</StorageClass>
   </Filter>
   <Destination>
   		<OSSBucketDestination>
        <AccountId>1000000000000000</AccountId>
        <RoleArn>acs:ram::1000000000000000:role/AliyunOSSRole</RoleArn>
        <Bucket>acs:oss:::destination-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

Include the Format node in the Destination/OSSBucketDestination part of the request. The Format node specifies the format of inventory lists. The exported inventory lists are comma-separated values (CSV) objects compressed by using GZIP.

Correct examples:

  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>Pics/</Prefix>
         <LastModifyBeginTimeStamp>1637883649</LastModifyBeginTimeStamp>
         <LastModifyEndTimeStamp>1638347592</LastModifyEndTimeStamp>
         <LowerSizeBound>1024</LowerSizeBound>
         <UpperSizeBound>1048576</UpperSizeBound>
         <StorageClass>Standard,IA</StorageClass>
     </Filter>
     <Destination>
        <OSSBucketDestination>
          <Format>CSV</Format>
          <AccountId>100000000000000</AccountId>
          <RoleArn>acs:ram::100000000000000:role/AliyunOSSRole</RoleArn>
          <Bucket>acs:oss:::destbucket</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>

References

PutBucketInventory

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

Chat now with Alibaba Cloud Customer Service to assist you in finding the right products and services to meet your needs.

alicare alicarealicarealicare