All Products
Search
Document Center

:ActionTrail events

最終更新日:Nov 26, 2024

This topic describes the types of ActionTrail events that can be published to EventBridge.

Background information

ActionTrail can be used as an event source for the following Alibaba Cloud services.

Event types

The following table describes the types of ActionTrail events that can be published to EventBridge.

Event type

Value of the type parameter

An operation is performed by Alibaba Cloud on a resource

actiontrail:ActionTrail:AliyunServiceEvent

An API is called

actiontrail:ActionTrail:ApiCall

An operation is performed in the console

actiontrail:ActionTrail:ConsoleOperation

For more information about the parameters defined in the CloudEvents specification, see Overview.

Important

EventBridge supports only ActionTrail events of the write type.

An API operation is called

The following example shows the event that EventBridge receives when an API operation is called:

{
  "eventId": "92b33345-0cef-47be-821f-fb9914d3****",
  "eventAttributes": {
    "SensitiveAction": "true"
  },
  "eventVersion": 1,
  "sourceIpAddress": "ecs.aliyuncs.com",
  "userAgent": "ecs.aliyuncs.com",
  "eventRW": "Write",
  "eventType": "ApiCall",
  "referencedResources": {
    "ACS::ECS::Instance": [
      "i-8vb0smn1lf6g77md****"
    ],
    "ACS::ECS::Disk": [
      "d-8vbf8rpv2nn0l1zm****"
    ]
  },
  "userIdentity": {
    "type": "system",
    "userName": "ecs.aliyuncs.com"
  },
  "serviceName": "Ecs",
  "extend": "INSTANCE",
  "requestId": "32B7EB75-62EE-511E-9449-E19EBF67C2ED",
  "eventTime": "2022-10-22T21:52:00Z",
  "isGlobal": false,
  "acsRegion": "cn-hangzhou",
  "eventName": "DeleteDisk"
}

For information about the fields in the preceding example, see Management event structure.

Note

For information about new fields that are added to ActionTrail events, see Announcement: ActionTrail will add new fields to event logs.