You need to enable JavaScript to run this app.
导航

查询审计事件

最近更新时间2023.12.14 18:50:08

首次发布时间2023.01.04 19:09:31

描述

使用该接口查询审计事件列表及详情。
Http Method:Post

请求参数

参数类型位置是否必填描述
ActionstringQueryLookupEvents
VersionstringQuery2021-09-01
NextTokenstringjson翻页参数, 翻下一页要填前一次返回中的值
MaxResultsintjson返回数量, 最大为50, 不填默认为50
StartTimeint64jsonStartTime < EndTime, unix值, 不填默认为(now-90天)
EndTimeint64jsonunix值, 不填默认为now

LookupConditionKey

string

json

EventSource 事件源
EventName 事件名称
RequestID 请求id
AccessKeyID AK
IdentityName 用户名
ExtraIndex 业务索引

LookupConditionValuestringjson

请求体示例

{
    "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\"}"
      }
    ]
  }
}