This topic describes the key fields of a management event and provides an example.
Key fields
Parameter | Description |
acsRegion | The ID of the region where the event occurred. |
additionalEventData | Additional information about the event. |
apiVersion | If eventType is ApiCall, this field indicates the API version. |
eventCategory | The event category. The value is always Management. |
eventId | The unique ID of the event. |
eventName | The name of the event.
|
eventRW | The read/write type of the event. Valid values:
|
eventSource | The source of the event. |
eventTime | The time when the event occurred. The time is in UTC. |
eventType | The type of event. Valid values:
Note For events from MaxCompute, the value of eventType can also be |
eventVersion | The version of the management event structure. The value is 1. |
errorCode | The error code that is returned if the API call fails. |
errorMessage | The error message that is returned if the API call fails. |
requestId | The ID of the request. |
requestParameters | The request parameters of the API call. |
requestParameterJson | The value of the requestParameters field in JSON format. |
resourceName | The name or unique identifier of the resource that is associated with the event. Note Resource names or IDs of the same type are separated by commas (,) and resource names or IDs of different types are separated by semicolons (;). |
resourceType | The type of the resource that is associated with the event. Note Multiple resource types are separated by semicolons (;). |
responseElements | The data that is returned by the API. |
referencedResources | The resources that are affected by the event. |
serviceName | The name of the Alibaba Cloud service that generated the event. |
sourceIpAddress | The source IP address of the request. Valid values:
|
vpcId | The ID of the source VPC. This field is returned if the source IP address belongs to an identifiable VPC. |
userAgent | The user agent of the client that made the request. |
isGlobal | Indicates whether the event is a global event. Valid values:
|
eventAttributes | The event attributes. For more information, see Fields in eventAttributes. |
userIdentity | The identity information of the requester. For more information, see Fields in userIdentity. |
Table 1. Fields in eventAttributes
Parameter | Description |
SensitiveAction | Indicates a sensitive operation. The value is always true. |
Table 2. Fields in userIdentity
Parameter | Description |
type | The type of identity. Valid values:
|
principalId | The ID of the requester. This field and the type field are used to uniquely identify the requester.
|
accountId | The ID of the Alibaba Cloud account to which the requester belongs. |
accessKeyId | The AccessKey ID of the requester.
|
userName | The name of the requester.
|
sessionContext | This field is recorded when a user authenticates by using an STS token or logs on to the console. It contains the following information:
|
Example
{
"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",
"requestId": "32B7EB75-62EE-511E-9449-E19EBF67C2ED",
"eventTime": "2022-10-22T21:52:00Z",
"isGlobal": false,
"acsRegion": "cn-hangzhou",
"eventName": "DeleteDisk"
}