All Products
Search
Document Center

Container Registry:Modify an event notification template

Last Updated:Mar 25, 2026

Event notification templates control the content and format of notifications sent when ACR Container Registry (ACR) events occur. This topic describes how to edit a DingTalk notification template and lists the available parameters for each event type.

Prerequisites

Before you begin, ensure that you have:

  • An ACR Enterprise Edition instance

  • At least one event notification rule configured in EventBridge

Modify a template

  1. Log on to the Container Registry console.

  2. In the top navigation bar, select a region.

  3. On the Instances page, click the Enterprise Edition instance that you want to manage.

  4. In the left-side navigation pane of the instance details page, choose Instances > Event Notification.

  5. On the Event Notification page, click the Event History tab, and then click View Details in the Actions column for the event you want to modify.

  6. In the left-side navigation pane of the event bus details page of the EventBridge console, click Event Rules.

  7. On the Event Rules page, find the event rule you want to modify and click Edit Targets in the Actions column.

  8. In the Template text box, edit the DingTalk notification template — for example, update a screenshot link — and then click Save.

Template parameters

The following table summarizes which parameters are available for each event type.

EventEvent typeKey parameters
Image build completedcr:Artifact:BuildCompletedRegionId, InstanceId, InstanceName, RepoBuildType, RepoId, RepoName, RepoNamespaceName, Tag, ImageUpdate
Image scan completedcr:Artifact:ScanCompletedRegionId, InstanceId, InstanceName, RepoId, RepoName, RepoNamespaceName, Tag, ImageUpdate, Status, HighSeverity, MediumSeverity, LowSeverity, UnknownSeverity, TotalSeverity, EndTime
Image push completedcr:Artifact:PushCompletedRegionId, InstanceId, InstanceName, RepoBuildType, RepoId, RepoName, RepoNamespaceName, Tag, ImageUpdate
Delivery chain processing completedcr:Artifact:DeliveryChainCompletedRegionId, InstanceId, InstanceName, RepoId, RepoName, RepoNamespaceName, Result, EndTime
Image signing completedcr:Artifact:SigningCompletedRegionId, InstanceId, InstanceName, RepoId, RepoName, RepoNamespaceName, Tag, Result, FailureMessage
Image synchronization completedcr:Artifact:SynchronizationCompletedSyncTaskId, TaskStatus, SyncRuleId, TaskTrigger, SyncBatchTaskId, StartTime, EndTime, ImageFrom.*, ImageTo.*

The following sections describe each event type's parameters in detail.

Image build completed

Event type: cr:Artifact:BuildCompleted

ParameterTypeExampleDescription
RegionIdStringcn-hangzhouThe region ID of the image. For more information, see Supported regions.
InstanceIdStringcri-kmsiwlxxdcv\*\*\*\*The instance ID.
InstanceNameStringshanghai-instance1The instance name.
RepoBuildTypeStringMANUALHow the repository was built. Valid values: MANUAL, AUTO.
RepoIdStringtestThe repository ID.
RepoNameStringtestThe repository name.
RepoNamespaceNameStringtestThe namespace to which the repository belongs.
TagString1.0The image tag.
ImageUpdateString2021-03-26 12:51:12The time when the image was last updated.

Image scan completed

Event type: cr:Artifact:ScanCompleted

ParameterTypeExampleDescription
RegionIdStringcn-hangzhouThe region ID of the image. For more information, see Supported regions.
InstanceIdStringcri-kmsiwlxxdcvaduwbThe instance ID.
InstanceNameStringshanghai-instance1The instance name.
RepoIdStringtestThe repository ID.
RepoNameStringtestThe repository name.
RepoNamespaceNameStringtestThe namespace to which the repository belongs.
TagString1.0The image tag.
ImageUpdateString2021-03-26 12:51:12The time when the image was last updated.
StatusStringCOMPLETEThe scan status. Valid values: COMPLETE, FAILED.
HighSeverityInteger1The number of high-severity vulnerabilities.
MediumSeverityInteger1The number of medium-severity vulnerabilities.
LowSeverityInteger1The number of low-severity vulnerabilities.
UnknownSeverityInteger1The number of unknown-severity vulnerabilities.
TotalSeverityInteger1The total number of vulnerabilities detected.
EndTimeString2021-03-26 12:51:12The time when the scan completed.

Image push completed

Event type: cr:Artifact:PushCompleted

ParameterTypeExampleDescription
RegionIdStringcn-hangzhouThe region ID of the image. For more information, see Supported regions.
InstanceIdStringcri-kmsiwlxxdcv\*\*\*\*The instance ID.
InstanceNameStringshanghai-instance1The instance name.
RepoBuildTypeStringMANUALHow the repository was built. Valid values: MANUAL, AUTO.
RepoIdStringtestThe repository ID.
RepoNameStringtestThe repository name.
RepoNamespaceNameStringtestThe namespace to which the repository belongs.
TagString1.0The image tag.
ImageUpdateString2021-03-26 12:51:12The time when the image was last updated.

Delivery chain processing completed

Event type: cr:Artifact:DeliveryChainCompleted

ParameterTypeExampleDescription
RegionIdStringcn-hangzhouThe region ID of the image. For more information, see Supported regions.
InstanceIdStringcri-kmsiwlxxdcvaduwbThe instance ID.
InstanceNameStringshanghai-instance1The instance name.
RepoIdStringtestThe repository ID.
RepoNameStringtestThe repository name.
RepoNamespaceNameStringtestThe namespace to which the repository belongs.
ResultStringSUCCESSThe delivery chain processing result. Valid values: SUCCESS, FAILED, CANCELED, DENIED.
EndTimeString2021-03-26 12:51:12The time when delivery chain processing completed.

Image signing completed

Event type: cr:Artifact:SigningCompleted

ParameterTypeExampleDescription
RegionIdStringcn-hangzhouThe region ID of the image. For more information, see Supported regions.
InstanceIdStringcri-kmsiwlxxdcvaduwbThe instance ID.
InstanceNameStringshanghai-instance1The instance name.
RepoIdStringtestThe repository ID.
RepoNameStringtestThe repository name.
RepoNamespaceNameStringtestThe namespace to which the repository belongs.
TagString1.0The image tag.
ResultStringSUCCESSThe image signing result. Valid values: SUCCESS, FAILED.
FailureMessageStringNo such algorithmThe reason image signing failed.

Image synchronization completed

Event type: cr:Artifact:SynchronizationCompleted

All ImageFrom.* parameters describe the source image. All ImageTo.* parameters describe the destination image.

ParameterTypeExampleDescription
SyncTaskIdStringrst-c8zx2c80z0071zmqThe synchronization task ID.
TaskStatusStringSUCCESSThe synchronization task status. Valid values: SUCCESS, ERROR, CANCELED.
SyncRuleIdStringcrsr-tifk99k64ifasrhuThe synchronization rule ID.
TaskTriggerStringIPASSIVEThe trigger policy for the synchronization rule. Valid values: INITIATIVE (manual, active synchronization), PASSIVE (automatic, passive synchronization).
SyncBatchTaskIdString15DEEB56-9271-4FDD-AC4D-C3A5CC2C0BE9The batch synchronization task ID.
StartTimeString2021-03-26 12:51:12The time when image synchronization started.
EndTimeString2021-03-26 12:51:12The time when image synchronization completed.
ImageFrom.RepoNamespaceNameStringtestThe namespace of the source repository.
ImageFrom.ImageTagStringv0.1The tag of the source image.
ImageFrom.InstanceIdStringcri-kmsiwlxxdcvaduwbThe source instance ID.
ImageFrom.RepoNameStringtestThe source repository name.
ImageFrom.RegionIdStringcn-hangzhouThe source region ID. For more information, see Supported regions.
ImageTo.RepoNamespaceNameStringtestThe namespace of the destination repository.
ImageTo.ImageTagStringv0.1The tag of the destination image.
ImageTo.InstanceIdStringcri-kmsiwlxxdcvaduwbThe destination instance ID.
ImageTo.RepoNameStringtestThe destination repository name.
ImageTo.RegionIdStringcn-hangzhouThe destination region ID. For more information, see Supported regions.