You need to enable JavaScript to run this app.
导航
0025-00000018
最近更新时间:2024.05.11 18:38:21首次发布时间:2024.01.05 16:32:28

问题描述

桶清单规则中内容信息字段不合法。

问题原因

桶清单规则只支持输出几种固定的字段信息,服务器无法识别您设置的字段。

问题示例

您在设置桶清单规则时,在清单内容信息(OptionalFields)中传入了桶清单不支持的字段 SSEType

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": "TosArchiveTOSInventory",
        "Bucket": "destination-bucket",
        "Prefix": "prefix1"
      }
    },
    "Schedule": { "Frequency": "Daily" },
    "IncludedObjectVersions": "All",
    "OptionalFields": {
      "Field": [
        "Size",
        "LastModifiedDate",
        "ETag",
        "StorageClass",
        "IsMultipartUploaded",
        "EncryptionStatus",
        "CRC64",
        "ReplicationStatus",
        "SSEType"
      ]
    }
  }
}

解决方案

传入的清单内容信息(OptionalFields)的字段必须是桶清单支持的字段,关于桶清单支持的所有字段信息,请参见 PutBucketInventory