Updates an event rule.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:UpdateEventCenterRule |
update |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
cri-kmsiwlxxdcva**** |
| RuleId |
string |
Yes |
The ID of the event notification rule. |
crecr-n6pbhgjxt***** |
| RuleName |
string |
No |
The name of the event notification rule. |
chain-demo |
| EventChannel |
string |
No |
The event notification channel. |
EVENT_BRIDGE |
| EventType |
string |
No |
The type of the event. Valid values:
|
cr:Artifact:DeliveryChainCompleted |
| EventScope |
string |
No |
The event scope. Valid values:
Default value: |
INSTANCE |
| Namespaces |
array |
No |
The namespaces to which the event notification rule applies. |
ns |
|
string |
No |
The namespaces. |
["ns1","ns2"] |
|
| RepoNames |
array |
No |
The names of the repositories to which the event notification rule applies. |
reponame |
|
string |
No |
The names of the repositories. |
["repo1","repo2"] |
|
| RepoTagFilterPattern |
string |
No |
The regular expression for image tags. |
.* |
| EventConfig |
string |
No |
The event configuration. |
{ "notifyMethod":"http", "notifyConfig":{ "Url":"http://www.aliyundoc.com", "id":"MaAV3HgTkO5Fh8l1V********", }, "notifyFilter":{} } |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
031572FA-7D8F-4C05-B790-1071E0E05DE6 |
| Code |
integer |
The status code. |
200 |
| RuleId |
string |
The ID of the event notification rule. |
crecr-n6pbhgjxt***** |
Examples
Success response
JSON format
{
"RequestId": "031572FA-7D8F-4C05-B790-1071E0E05DE6",
"Code": 200,
"RuleId": "crecr-n6pbhgjxt*****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.