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.
-
File Storage NAS (NAS)Server Load Balancer (SLB)Alibaba Cloud CDN (CDN)ElasticsearchDataVCloud Enterprise Network (CEN)ApsaraDB for HBaseKey Management Service (KMS)ApsaraDB RDSContainer Service for Kubernetes (ACK)Elastic Compute Service (ECS)PolarDB for MySQLApsaraMQ for KafkaActionTrailResource Orchestration Service (ROS)Function ComputeSmart Access GatewayCloud ConfigApsaraDB for CassandraVirtual Private Cloud (VPC)Blockchain as a Service (BaaS)Object Storage Service (OSS)Resource Access Management (RAM)TablestoreCloudMonitorBatch ComputeDynamic Content Delivery Network (DCDN)Auto ScalingElastic Container InstanceContainer RegistryInteractive AnalysisApsaraVideo Media ProcessingAnalyticDB for MySQLCloudOps Orchestration Service (OOS)Security Center (SAS)E-MapReduceFraud DetectionDomainsData Transmission Service (DTS)Quick BIApsaraVideo VOD (VOD)ApsaraVideo LiveIoT PlatformElastic High Performance Computing (E-HPC)
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 on a resource | actiontrail:ActionTrail:AliyunServiceEvent |
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.
EventBridge supports only ActionTrail events of the write type.
An API operation is called
The following code provides a sample ActionTrail event that is received by EventBridge 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.
For information about new fields that are added to ActionTrail events, see Announcement: ActionTrail will add new fields to event logs.