You need to enable JavaScript to run this app.
导航
0014-00000018
最近更新时间:2024.04.23 14:53:51首次发布时间:2024.01.05 16:32:25

问题描述

事件通知单规则内,事件通知类型重复。

问题原因

事件通知单规则内,事件通知类型重复。

问题示例

如下所示,Events 元素中 tos:ObjectCreated:* **** 已包含 **** tos:ObjectCreated:Put

PUT /?notification HTTP/1.1
Host: bucketname.tos-cn-beijing.volces.com
Date: GMT Date
Authorization: authorization string
{
  "CloudFunctionConfigurations": [
    {
      "Events": [
        "tos:ObjectCreated:*",
        "tos:ObjectCreated:Put"
      ],
      "Filter": {
        "TOSKey": {
          "FilterRules": [
            {
              "Name": "prefix",
              "Value": "test_"
            },
            {
              "Name": "suffix",
              "Value": ".jpg"
            }
          ]
        }
      },
      "RuleId": "string",
      "CloudFunction": "string"
    }
  ]
}

解决方案

调整事件通知类型,去除重复事件类型。