当您使用阿里云服务的控制台、API或售卖页面购买资源时,会产生资源购买事件。本文为您举例说明资源购买事件。
说明
当您使用阿里云服务的控制台或API购买资源时,可能出现跟API名称同名的资源购买事件,例如:CreateInstance事件。当您使用售卖页面购买资源时,资源购买事件名称大多为Create。
以下示例表示,在北京时间2021年08月02日14:30:17,阿里云账号151266687691****
登录ECS服务售卖页面购买了一台ID为i-bp67acfmxazb4p****
的ECS实例。
{
"requestId": "2546c4b7-6b56-403e-97d3-500d8d29339a",
"eventType": "ConsoleOperation",
"userIdentity": {
"accountId": "151266687691****",
"principalId": "151266687691****",
"type": "root-account",
"userName": "root"
},
"acsRegion": "cn-hangzhou",
"eventName": "Create",
"requestParameters": {},
"eventSource": "ecs.aliyuncs.com",
"serviceName": "Ecs",
"eventTime": "2021-08-02T06:30:17Z",
"referencedResources": {
"ACS::ECS::Instance": [
"i-bp67acfmxazb4p****"
]
},
"userAgent": "AliyunConsole",
"eventId": "2546c4b7-6b56-403e-97d3-500d8d29****",
"additionalEventData": {
"orderIds": "2105464****",
"2105464****": {
"resourceId": "i-bp67acfmxazb4p****",
"articleConfig": {
"vm_yundun_monitor": "1",
"iooptimized": "optimized",
"vm_cpu": "4",
"vm_iz": "random",
"vm_yundun_service": "1",
"vm_web_type": "1",
"vm_bandwidth": "1024,5",
"systemdisk": "cloud_essd,/dev/xvda,200,PL0",
"vm_region_no": "cn-hangzhou-dg-a01",
"vm_vpc_switch_id": "vsw-bp1bnszwnkvjpdhkh****",
"instance_type": "ecs.g6e,ecs-5,ecs.g6e.xlarge",
"vm_os": "linux,64,centos_7_9_x64_20G_alibase_2021****.vhd",
"vm_ram": "16384"
}
}
},
"errorCode": "",
"errorMessage": "",
"eventVersion": "1",
"sourceIpAddress": "192.168.XX.XX"
}
示例中关键字段含义如下:
userIdentity.accountId
:请求者的阿里云账号ID。userIdentity.type
:请求者的身份类型。取值为root-account
,表示阿里云账号。eventName
:事件名称。取值为Create
,表示资源购买事件。eventTime
:事件的发生时间(UTC格式)。取值为2021-08-02T06:30:17Z
,表示北京时间2021年08月02日14:30:17。referencedResources
:相关资源列表。取值为{"ACS::ECS::Instance": ["i-bp67acfmxazb4p****"]}
,表示ID为i-bp67acfmxazb4p****
的ECS实例。
文档内容是否对您有帮助?