Queries the top 10 rule IDs that have triggered mitigation policies the most times.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:DescribeRuleHitsTopRuleId |
get |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| StartTimestamp |
string |
Yes |
The beginning of the time range to query. Unit: seconds. |
1665331200 |
| EndTimestamp |
string |
No |
The end of the time range to query. Unit: seconds. If you do not specify this parameter, the current time is used. |
1665386280 |
| Resource |
string |
No |
The protected object. |
www.aliyundoc.com |
| RuleType |
string |
No |
The type of rule hit by the protected object. By default, this parameter is not specified, which indicates that all rules are displayed.
|
blacklist |
| InstanceId |
string |
Yes |
The ID of the WAF instance. Note
You can call DescribeInstance to query the ID of the current WAF instance. |
waf_cdnsdf3**** |
| IsGroupResource |
string |
No |
Specifies whether to aggregate rule hits by protected object.
|
true |
| 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 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
F6334274-8870-5D2F-A1AD-D6EF885AC1ED |
| RuleHitsTopRuleId |
array<object> |
The top 10 rule IDs by rule hits. |
|
|
object |
The rule hit details. |
||
| RuleId |
string |
The rule ID. |
5465465 |
| Resource |
string |
The protected object. This parameter is returned when the IsGroupResource request parameter is set to false. |
www.aliyundoc.com |
| Count |
integer |
The number of requests that hit the rule. |
181174784 |
Examples
Success response
JSON format
{
"RequestId": "F6334274-8870-5D2F-A1AD-D6EF885AC1ED",
"RuleHitsTopRuleId": [
{
"RuleId": "5465465",
"Resource": "www.aliyundoc.com",
"Count": 181174784
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.