Updates an event rule.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
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. | |
string | No | The namespaces. | ["ns1","ns2"] | |
RepoNames | array | No | The names of the repositories to which the event notification rule applies. | |
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 parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "031572FA-7D8F-4C05-B790-1071E0E05DE6",
"Code": 200,
"RuleId": "crecr-n6pbhgjxt*****"
}
Error codes
For a list of error codes, visit the Service error codes.