Overview
The event notification feature supports sending notification messages to a HTTP or HTTPS address specified by the user when there are changes in the image signing, image scanning, and instance synchronization status.
Before You Begin
An instance of the Cloud Container Repository Enterprise Edition has been activated
Creating Event Notification Rules
1. Access the Cloud Container Repository console.
2. Click on the name of the activated Enterprise Edition instance.
3. In the left navigation pane, click Instance Management - Event Notification. Then, on the Event Rule tab, click the Create Rule button.
4. On the creation page, fill in the relevant parameters for the rule.
Parameter | Description |
Rule Name | The name of the event rule. |
Event Type | The type of event that triggers the notification, including: 1. Image signing. 2. Image scanning. 3. Instance synchronization |
Effective Scope | The scope where the event notification takes effect, including: 1. Instance: Triggers event notification within the current instance when the Tag-matching condition is met. 2. Namespace: Triggers event notification within the specified namespace when the Tag-matching condition is met. 3. Repository: Triggers event notification within the specified repository when the Tag-matching condition is met. |
Tag-Matching Conditions | Sets the image edition that the rule matches using regular expressions. Usage examples include: Match all: .* match multiple editions: v1|v2|v3 match prefixes: v1.* |
Notification URL | The URL address that the user uses to receive event notifications, starting with http:// or https://. |
Notification Parameters | The parameters included in the event notification. |
5. Once created, you can view the created event notification rules on the list page.
6. In the operation bar, the Edit button allows you to modify the event notification rules. The Disable/Enable button allows you to change the status of the event notification rules. The Delete button allows you to remove event notification rules.
Viewing Event Notification History
1. Access the Cloud Container Repository console.
2. Click on the name of the activated Enterprise Edition instance.
3. In the left navigation pane, click Instance Management - Event Notification. Then, click the Event History tab to view the event notification history.
4. In the top-right corner of the event notification history list, you can filter the event rules.
5. For notifications that were not successfully sent, you can click the Retry button in the operation bar to resend them.