You need to enable JavaScript to run this app.
文档中心
对象存储

对象存储

复制全文
下载 pdf
14-NOTIFICATION
0014-00000020
复制全文
下载 pdf
0014-00000020
问题描述​
事件通知规则的 FilterRule 不合法。​
问题原因​
创建事件通知规则时,设置的 FilterRules 不合法。例如:​
  • 规则数量超过 2。​
  • 规则 Name 不等于 prefix 或者 suffix。​
  • FilterRules 的元素包含相同类型元素,例如存在两个 prefix 或者 suffix。​
问题示例​
如下示例中包含了两个 prefix 导致失败。​
​
PUT /?notification HTTP/1.1​
Host: bucketname.tos-cn-beijing.volces.com​
Date: GMT Date​
Authorization: authorization string​
{​
"CloudFunctionConfigurations": [​
{​
"Events": [​
"tos:ObjectCreated:*",​
"tos:ObjectRemoved:*"​
],​
"Filter": {​
"TOSKey": {​
"FilterRules": [​
{​
"Name": "prefix",​
"Value": "test_"​
},​
{​
"Name": "prefix",​
"Value": ".jpg"​
}​
]​
}​
},​
"RuleId": "string",​
"CloudFunction": "string"​
}​
]​
}​
​
解决方案​
根据需要设置相应的 FilterRule 订阅规则。​
​
最近更新时间:2026.09.20 16:16:53
这个页面对您有帮助吗?
有用
有用
无用
无用