すべてのプロダクト
Search
ドキュメントセンター

Object Storage Service:0020-00000028

最終更新日:Dec 22, 2023

問題の説明

PutBucketInventoryリクエストのDestination/OSSBucketDestination/AccountIdノードの値が無効です。

原因

PutBucketInventoryリクエストのDestination/OSSBucketDestination/AccountIdノードの値が空であるか、バケット所有者によって付与されたアカウントIDとは異なります。

次のリクエストでは、Destination/OSSBucketDestination/AccountIdノードの値が123456789です。これは、バケット所有者によって付与されたアカウントIDとは異なります。 その結果、エラーが報告される。

PUT /?inventory&inventoryId=report1 HTTP/1.1
  Host: BucketName.oss.aliyuncs.com
  日付: 10月31日月曜日2016 12:00:00 GMT
  権限付与: 権限付与文字列
  コンテンツ-長さ: 長さ

  <?xml version="1.0" encoding="UTF-8"?>
    <InventoryConfiguration>
     <Id> レポート1</Id>
     <IsEnabled>true</IsEnabled>
     <宛先>
        <OSSBucketDestination>
           <フォーマット> CSV</フォーマット>
           <AccountId>123456789</AccountId>
           <RoleArn>acs:ram::1000000000000000:role/AliyunOSSRole</RoleArn>
           <Bucket>acs:oss ::: destination-bucket</Bucket>
           <Prefix>prefix1</Prefix>
           <暗号化>
              <SSE-KMS>
                 <KeyId>keyId</KeyId>
              </SSE-KMS>
           </暗号化>
        </OSSBucketDestination>
     </宛先>
     <スケジュール>
        <Frequency> デイリー </Frequency>
     </スケジュール>
     <IncludedObjectVersions> すべての </IncludedObjectVersions>
     <OptionalFields>
        <フィールド> サイズ </フィールド>
        <フィールド> LastModifiedDate</フィールド>
        <フィールド> ETag</フィールド>
        <Field>StorageClass</Field>
        <Field>IsMultipartUploaded</Field>
        <Field>EncryptionStatus</Field>
     </OptionalFields>
  </InventoryConfiguration> 

ソリューション

[Destination/OSSBucketDestination/AccountId] ノードの値が、バケット所有者によって付与されたアカウントIDと同じであることを確認します。

関連ドキュメント

PutBucketInventory