You need to enable JavaScript to run this app.
导航

0025-00000006

最近更新时间2024.01.25 16:11:02

首次发布时间2024.01.05 16:32:28

问题描述

桶清单规则的 ID 不合法。

问题原因

桶清单规则的 ID 设置不合法,桶清单规则的 ID 需要符合以下要求:

  • 长度为 0~64 个字符。
  • 只能包含小写字母 a-z、大写字母 A-Z、数字 0-9、中划线(-)、下划线(_)和英文句号(.)。
  • 开头和结尾只能是小写字母 a-z、大写字母 A-Z、数字 0-9 。

问题示例

您在设置桶清单规则时,ID 项填写了非法值。

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"
      ]
    }
  }
}

解决方案

请按照规范填写正确的桶清单 ID,详细格式,请参见 PutBucketInventory