使用该接口查询审计事件列表及详情。
Http Method:Post
参数 | 类型 | 位置 | 是否必填 | 描述 |
---|---|---|---|---|
Action | string | Query | 是 | LookupEvents |
Version | string | Query | 是 | 2021-09-01 |
NextToken | string | json | 否 | 翻页参数, 翻下一页要填前一次返回中的值 |
MaxResults | int | json | 否 | 返回数量, 最大为50, 不填默认为50 |
StartTime | int64 | json | 否 | StartTime < EndTime, unix值, 不填默认为(now-90天) |
EndTime | int64 | json | 否 | unix值, 不填默认为now |
LookupConditionKey | string | json | 否 | EventSource 事件源 |
LookupConditionValue | string | json | 否 |
{ "NextToken": "", "MaxResults": 0, "StartTime": 1650000000, "EndTime": 1650000100, "LookupConditions": [ { "LookupConditionKey": "", "LookupConditionValue": "" } ] }
{ "ResponseMetadata": { "RequestId": "202109131754500102252431**********" }, "Result": { "NextToken": "613f1ed7-2-5ed3-1-1", "Trails": [ { "EventID": "2967779b-1dc8-4404-8858-a6**********", "EventTime": "2021-09-13T09:54:08Z", "EventName": "GetUser", "RequestID": "202109131754070102252431***********", "SourceIPAddress": "10.255.29.190", "EventSource": "iam", "UserName": "", "AccessKeyID": "AKLTODZlNWI1ODEtNTRlNC00MmEyLWIwYjYtZTI2Nz**********", "Region": "cn-north-1", "ErrorCode": "", "EventDetail": "{\"EventVersion\":\"v1.0\",\"EventID\":\"2967779b-1dc8-4404-8858-a6**********\",\"RequestID\":\"202109131754070102252431***********\",\"EventTime\":\"2021-09-13T09:54:08Z\",\"EventType\":\"ApiCall\",\"UserIdentity\":{\"AccountID\":\"21000*****\",\"Type\":\"Root\",\"PrincipalID\":\"21000*****\",\"TRN\":\"trn:iam::21000*****:root\",\"AccessKeyID\":\"AKLTODZlNWI1ODEtNTRlNC00MmEyLWIwYjYtZTI2Nz**********\"},\"EventSource\":\"iam\",\"EventName\":\"GetUser\",\"Region\":\"cn-north-1\",\"SourceIPAddress\":\"10.255.**.***\",\"UserAgent\":\"node-fetch/1.0 (+https://github.com/bitinn/node-fetch)\",\"RequestParameters\":\"\",\"ResponseElements\":\"\",\"ApiVersion\":\"2018-01-01\"}" } ] } }