Queries the list of API security events.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:DescribeApisecEvents |
get |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the WAF instance. Note
You can call DescribeInstance to obtain the ID of the current WAF instance. |
waf_v2_public_cn-5y***d31 |
| EventId |
string |
No |
The ID of the API security event. |
18ba94fea9***e66ba0557b7b91 |
| ApiFormat |
string |
No |
The API operation. |
/apisec/v1/***.php |
| MatchedHost |
string |
No |
The domain name or IP address to which the API operation belongs. |
a.***.com |
| EventTag |
string |
No |
The event type. Note
You can call DescribeApisecRules to obtain the supported event types. |
ObtainSensitiveUnauthorized |
| StartTs |
integer |
No |
The start time of the query, in UNIX timestamp (UTC) format. Unit: seconds. |
1683648000 |
| EndTs |
integer |
No |
The end time of the query, in UNIX timestamp (UTC) format. Unit: seconds. |
1683703260 |
| OrderKey |
string |
No |
The name of the field used for sorting. Valid values:
|
startTs |
| OrderWay |
string |
No |
The sort order. Valid values:
|
desc |
| PageNumber |
integer |
No |
The page number to return in a paged query. Default value: 1, which indicates the first page. |
1 |
| PageSize |
integer |
No |
The number of entries per page in a paged query. Default value: 10, which indicates 10 entries per page. |
10 |
| ApiTag |
string |
No |
The business purpose of the API. Note
You can call DescribeApisecRules to obtain the supported business purposes. |
SendMail |
| Origin |
string |
No |
The source of the event type. Valid values:
|
default |
| EventLevel |
string |
No |
The event level. Valid values:
|
low |
| UserStatus |
string |
No |
The event status. Valid values:
|
ignored |
| AttackIp |
string |
No |
The attack IP address. |
42.224.*.* |
| ApiId |
string |
No |
The ID of the API. |
820b860***6205da93b935b28 |
| ClusterId |
string |
No |
The hybrid cloud cluster ID. Note
This parameter applies only to hybrid cloud scenarios. You can call DescribeHybridCloudClusters to obtain hybrid cloud cluster information. |
428 |
| RegionId |
string |
No |
The region where the WAF instance is deployed. Valid values:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
The Alibaba Cloud resource group ID. |
rg-acfm***q |
| EventScope |
string |
No |
The dimension of the security event. Valid values:
|
ip |
| Account |
string |
No |
The account information. |
1818743389962696 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| TotalCount |
integer |
The total number of entries returned. |
3 |
| RequestId |
string |
The request ID. |
12F4CC8F-7E9F-5E4D-BF7C-BD1EDDE0C282 |
| Data |
array<object> |
The list of security events. |
|
|
object |
The security event information. |
||
| Origin |
string |
The source of the event type. Valid values:
|
custom |
| EventLevel |
string |
The event level. Valid values:
|
medium |
| StartTs |
integer |
The start time of the query, in UNIX timestamp (UTC) format. Unit: seconds. |
1683648000 |
EventInfo
deprecated
|
string |
The event details, which is a string converted from a JSON object constructed with the following parameters:
|
{ "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 |
The API operation. |
/apisec/v1/register.php |
| ApiTag |
string |
The business purpose of the API. Note
You can call DescribeApisecRules to obtain the supported business purposes. |
SendMail |
| UserStatus |
string |
The event status. Valid values:
|
toBeConfirmed |
| Follow |
integer |
Indicates whether the event is followed. Valid values:
|
0 |
RequestData
deprecated
|
string |
A sample API request data, which is a string converted from a JSON object constructed with a series of parameters. |
{} |
| EventId |
string |
The event ID. |
c82cb276847e9c96f9597d9f4b0cdcff |
AttackIp
deprecated
|
string |
The attack IP address. Important This parameter is deprecated. Use the AttackIps parameter instead. |
104.234.140.** |
AttackIpInfo
deprecated
|
string |
The attack IP information, which is a string converted from a JSON object constructed with the following parameters:
|
[ { "ip": "72.*.*.119", "country_id": "US", "region_id": "", "cnt": "2100" } ] |
| EndTs |
integer |
The end time of the query, in UNIX timestamp (UTC) format. Unit: seconds. |
1683703260 |
AttackCntInfo
deprecated
|
string |
The attack count information, which is a string converted from a JSON object. The key is a timestamp in seconds, and the value is the number of attacks. |
{ "1717498320": 500, "1717498380": 529, "1717498440": 20 } |
| AllCnt |
integer |
The number of attacks. |
10 |
| RemoteRegion |
string |
The region to which the attack IP address belongs. |
110000 |
ResponseData
deprecated
|
string |
A sample API response data, which is a string converted from a JSON object constructed with a series of parameters. |
{} |
| AttackClient |
string |
The attack client. |
Chrome |
| EventTag |
string |
The event type. Note
You can call DescribeApisecRules to obtain the supported event types. |
ObtainSensitiveUnauthorized |
| MatchedHost |
string |
The domain name or IP address to which the API operation belongs. |
a.***.com |
| Note |
string |
The remarks. |
Notify |
| ApiId |
string |
The ID of the API associated with the security event. |
2ecc1cf67b91853bc55545052ccf06a8 |
| RemoteCountry |
string |
The country to which the attack IP address belongs. |
US |
AttackIps
deprecated
|
array |
The list of attack IP addresses. |
|
|
string |
The attack IP address. |
104.234.140.** |
|
| AttackerList |
array |
The Attacker list associated with the event. |
|
|
string |
The attacker associated with the event. Note
When EventScope is set to ip, this value is the attacker IP address. When EventScope is set to account, this value is the attacker account. |
1.1.1.1 |
Examples
Success response
JSON format
{
"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"
],
"AttackerList": [
"1.1.1.1"
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.