All Products
Search
Document Center

Container Registry:ListEventCenterRecord

Last Updated:Mar 01, 2024

Queries the historical events of an event rule.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the instance.

cri-kmsiwlxxdcva****
EventTypestringNo

The type of the event. Valid values:

  • cr:Artifact:DeliveryChainCompleted: The delivery chain is processed.
  • cr:Artifact:SynchronizationCompleted: The image is replicated.
  • cr:Artifact:BuildCompleted: The image is built.
  • cr:Artifact:ScanCompleted: The image is scanned.
  • cr:Artifact:SigningCompleted: The image is signed.
cr:Artifact:DeliveryChainCompleted
RuleIdstringNo

The ID of the event notification rule.

crecr-n6pbhgjxtla***
PageNointegerNo

The number of the page to return.

1
PageSizeintegerNo

The number of entries to return on each page.

30

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The ID of the request.

665C7A5E-BAEC-5BCD-AF9F-5F9260D672BF
Codestring

The return value.

success
PageNointeger

The page number of the returned page.

1
IsSuccessboolean

Indicates whether the request is successful.

true
PageSizeinteger

The number of entries returned per page.

30
TotalCountinteger

The total entries of historical events.

50
Recordsobject []

The list of historical events.

[]
RecordIdstring

The ID of the event record.

crecrr-ctdbzwtkpr*****
RuleIdstring

The ID of the event notification rule.

crecr-n6pbhgjxtla*****
InstanceIdstring

The ID of the instance.

cri-gl34plsa****
RuleNamestring

The name of the event notification rule.

chain-demo
Namespacestring

The namespace.

mychain
RepoNamestring

The name of the image repository.

ruby-2.4.0
Tagstring

The tags.

ruby-2.4.0
EventChannelstring

The event notification channel.

EVENT_BRIDGE
EventTypestring

The type of the event.

cr:Artifact:DeliveryChainCompleted
EventNotifyMethodstring

The notification method. Valid values:

  • http: The notification is sent over HTTP.
  • https: The notification is sent over HTTPS.
  • dingding: The notification is sent by using DingTalk.
http
EventNotifyIdstring

The ID of the event notification.

7d478419-61df-49e5-b92b-30ce730c2127
CreateTimelong

The time when the event was created.

1638188622000
UpdateTimelong

The time when the event was last updated.

1638188622000

Examples

Sample success responses

JSONformat

{
  "RequestId": "665C7A5E-BAEC-5BCD-AF9F-5F9260D672BF",
  "Code": "success",
  "PageNo": 1,
  "IsSuccess": true,
  "PageSize": 30,
  "TotalCount": 50,
  "Records": [
    {
      "RecordId": "crecrr-ctdbzwtkpr*****",
      "RuleId": "crecr-n6pbhgjxtla*****",
      "InstanceId": "cri-gl34plsa****",
      "RuleName": "chain-demo",
      "Namespace": "mychain",
      "RepoName": "ruby-2.4.0",
      "Tag": "ruby-2.4.0",
      "EventChannel": "EVENT_BRIDGE",
      "EventType": "cr:Artifact:DeliveryChainCompleted",
      "EventNotifyMethod": "http",
      "EventNotifyId": "7d478419-61df-49e5-b92b-30ce730c2127",
      "CreateTime": 1638188622000,
      "UpdateTime": 1638188622000
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-01-23The request parameters of the API has changedsee changesets
Change itemChange content
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: RepoNamespaceName
    Added Input Parameters: RepoName