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

0025-00000017

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

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

问题描述

正在创建的桶清单规则和已经存在的桶清单规则有重叠的过滤前缀。

问题原因

桶清单规则不允许过滤前缀重叠,正在创建的桶清单规则和已经存在的桶清单规则的过滤设置中的按前缀匹配的值存在重叠。

问题示例

第一次调用 PutBucketInventory,目标桶设置(Destination)中的过滤前缀(Prefix)为 prefix1

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

第二次调用 PutBucketInventory,目标桶设置(Destination)中的过滤前缀(Prefix)为 prefix1/prefix2

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/prefix2"
      }
    },
    "Schedule": { "Frequency": "Daily" },
    "IncludedObjectVersions": "All",
    "OptionalFields": {
      "Field": [
        "Size",
        "LastModifiedDate",
        "ETag",
        "StorageClass",
        "IsMultipartUploaded",
        "EncryptionStatus",
        "CRC64",
        "ReplicationStatus"
      ]
    }
  }
}

解决方案

请勿设置有相同过滤前缀的桶清单规则,若一定要设置,请删除已存在的且冲突的的桶清单规则。