查询API安全事件列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
yundun-waf:DescribeApisecEvents |
get |
*全部资源
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
InstanceId |
string |
是 |
WAF 实例的 ID。 说明
您可以调用 DescribeInstance 获取当前 WAF 实例的 ID。 |
waf_v2_public_cn-5y***d31 |
EventId |
string |
否 |
API 安全事件 ID。 |
18ba94fea9***e66ba0557b7b91 |
ApiFormat |
string |
否 |
API 接口。 |
/apisec/v1/***.php |
MatchedHost |
string |
否 |
API 接口所属的域名或 IP。 |
a.***.com |
EventTag |
string |
否 |
事件类型。 说明
您可以调用 DescribeApisecRules 获取支持的事件类型。 |
ObtainSensitiveUnauthorized |
StartTs |
integer |
否 |
查询的开始时间,格式为 Unix 时间戳(UTC 时间),单位为秒。 |
1683648000 |
EndTs |
integer |
否 |
查询的结束时间,格式为 Unix 时间戳(UTC 时间),单位为秒。 |
1683703260 |
OrderKey |
string |
否 |
排序字段的名称。取值:
|
startTs |
OrderWay |
string |
否 |
排序的方式。取值:
|
desc |
PageNumber |
integer |
否 |
分页查询时,返回第几页数据。默认值为 1,表示返回第 1 页数据。 |
1 |
PageSize |
integer |
否 |
分页查询时,每页包含多少条结果。默认值为 10,表示每页包含 10 条结果。 |
10 |
ApiTag |
string |
否 |
API 业务用途。 说明
您可以调用 DescribeApisecRules 获取支持的业务用途。 |
SendMail |
Origin |
string |
否 |
事件类型的来源。取值:
|
default |
EventLevel |
string |
否 |
事件等级。取值:
|
low |
UserStatus |
string |
否 |
事件状态。取值:
|
ignored |
AttackIp |
string |
否 |
攻击 IP。 |
42.224.*.* |
ApiId |
string |
否 |
API 的 ID。 |
820b860***6205da93b935b28 |
ClusterId |
string |
否 |
混合云集群 ID。 说明
只针对混合云场景,您可以调用 DescribeHybridCloudClusters 获取混合云集群信息。 |
428 |
RegionId |
string |
否 |
WAF 实例所属地域。取值:
|
cn-hangzhou |
ResourceManagerResourceGroupId |
string |
否 |
阿里云资源组 ID。 |
rg-acfm***q |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
请求结果。 |
||
TotalCount |
integer |
返回结果的总数。 |
3 |
RequestId |
string |
请求 ID。 |
12F4CC8F-7E9F-5E4D-BF7C-BD1EDDE0C282 |
Data |
array<object> |
安全事件列表。 |
|
object |
安全事件信息。 |
||
Origin |
string |
事件类型的来源。取值:
|
custom |
EventLevel |
string |
事件等级。取值:
|
medium |
StartTs |
integer |
查询的开始时间,格式为 Unix 时间戳(UTC 时间),单位为秒。 |
1683648000 |
EventInfo |
string |
事件详细信息,以一系列参数构造的 JSON 格式转化成字符串。包括:
|
{ "ip_info": [ { "ip": "112.224.143.**", "country_id": "CN", "region_id": "-", "cnt": "4" } ], "rule_id": "837**", "rule_tag": "interface returns a large amount of sensitive information" } |
ApiFormat |
string |
API 接口。 |
/apisec/v1/register.php |
ApiTag |
string |
API 业务用途。 说明
您可以调用 DescribeApisecRules 获取支持的业务用途。 |
SendMail |
UserStatus |
string |
事件状态。取值:
|
toBeConfirmed |
Follow |
integer |
是否关注。取值:
|
0 |
RequestData |
string |
API 请求数据实例,以一系列参数构造的 JSON 格式转化成字符串。 |
{} |
EventId |
string |
事件 ID。 |
c82cb276847e9c96f9597d9f4b0cdcff |
AttackIp |
string |
攻击 IP。 重要 参数已弃用,请使用 AttackIps 参数。 |
104.234.140.** |
AttackIpInfo |
string |
攻击 IP 相关信息,以一系列参数构造的 JSON 格式转化成字符串。包括:
|
[ { "ip": "72.*.*.119", "country_id": "US", "region_id": "", "cnt": "2100" } ] |
EndTs |
integer |
查询的结束时间,格式为 Unix 时间戳(UTC 时间),单位为秒。 |
1683703260 |
AttackCntInfo |
string |
攻击数量相关信息,以一系列参数构造的 JSON 格式转化成字符串。其中 Key 为时间戳,单位为秒、Value 为攻击数量。 |
{ "1717498320": 500, "1717498380": 529, "1717498440": 20 } |
AllCnt |
integer |
攻击次数。 |
10 |
RemoteRegion |
string |
攻击 IP 所属地区。 |
110000 |
ResponseData |
string |
API 响应数据示例,以一系列参数构造的 JSON 格式转化成字符串。 |
{} |
AttackClient |
string |
攻击客户端。 |
Chrome |
EventTag |
string |
事件类型。 说明
您可以调用 DescribeApisecRules 获取支持的事件类型。 |
ObtainSensitiveUnauthorized |
MatchedHost |
string |
API 接口所属的域名或 IP。 |
a.***.com |
Note |
string |
备注信息。 |
Notify |
ApiId |
string |
安全事件关联 API 的 ID。 |
2ecc1cf67b91853bc55545052ccf06a8 |
RemoteCountry |
string |
攻击 IP 所属国家。 |
US |
AttackIps |
array |
攻击 IP 列表。 |
|
string |
攻击 IP。 |
104.234.140.** |
示例
正常返回示例
JSON
格式
{
"TotalCount": 3,
"RequestId": "12F4CC8F-7E9F-5E4D-BF7C-BD1EDDE0C282",
"Data": [
{
"Origin": "custom",
"EventLevel": "medium",
"StartTs": 1683648000,
"EventInfo": "{\n \"ip_info\": [\n {\n \"ip\": \"112.224.143.**\",\n \"country_id\": \"CN\",\n \"region_id\": \"-\",\n \"cnt\": \"4\"\n }\n ],\n \"rule_id\": \"837**\",\n \"rule_tag\": \"interface returns a large amount of sensitive information\"\n}\n",
"ApiFormat": "/apisec/v1/register.php",
"ApiTag": "SendMail",
"UserStatus": "toBeConfirmed",
"Follow": 0,
"RequestData": "{}",
"EventId": "c82cb276847e9c96f9597d9f4b0cdcff",
"AttackIp": "104.234.140.**",
"AttackIpInfo": "[\n {\n \"ip\": \"72.*.*.119\",\n \"country_id\": \"US\",\n \"region_id\": \"\",\n \"cnt\": \"2100\"\n }\n]",
"EndTs": 1683703260,
"AttackCntInfo": "{\n \"1717498320\": 500,\n \"1717498380\": 529,\n \"1717498440\": 20\n}",
"AllCnt": 10,
"RemoteRegion": "110000",
"ResponseData": "{}",
"AttackClient": "Chrome",
"EventTag": "ObtainSensitiveUnauthorized",
"MatchedHost": "a.***.com",
"Note": "Notify",
"ApiId": "2ecc1cf67b91853bc55545052ccf06a8",
"RemoteCountry": "US",
"AttackIps": [
"104.234.140.**\n"
]
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。