ListEventCenterRecord

Updated at: 2025-03-24 06:30
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Queries the historical events of an event rule.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
OperationAccess levelResource typeCondition keyAssociated operation
cr:ListEventCenterRecordget
*Instance
acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
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***
RepoNamespaceNamestringNo

The name of the namespace to which the repository belongs.

test
RepoNamestringNo

The name of the repository.

test
PageNointegerNo

The number of the page to return.

1
PageSizeintegerNo

The number of entries to return on each page.

30

Response parameters

ParameterTypeDescriptionExample
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
Recordsarray<object>

The list of historical events.

[]
Recordsobject
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
Change timeSummary of changesOperation
2024-01-23The request parameters of the API has changedView Change Details
  • On this page (1)
  • Debugging
  • Authorization information
  • Request parameters
  • Response parameters
  • Examples
  • Error codes
  • Change history
Feedback