Queries the top 10 URLs that trigger protection rules most frequently.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:DescribeRuleHitsTopUrl |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| StartTimestamp |
string |
Yes |
The beginning of the time range to query. This value is a UNIX timestamp. Unit: seconds. |
1665331200 |
| EndTimestamp |
string |
No |
The end of the time range to query. This value is a UNIX timestamp. Unit: seconds. If you do not set this parameter, the current time is used as the end time. |
1665386280 |
| Resource |
string |
Yes |
The protected object. |
www.aliyundoc.com |
| RuleType |
string |
No |
The type of rule that the protected object hits. If you do not set this parameter, data of all rule types is returned.
|
blacklist |
| InstanceId |
string |
Yes |
The ID of the Web Application Firewall (WAF) instance. Note
You can call DescribeInstance to query the ID of your WAF instance. |
waf_cdnsdf3**** |
| RegionId |
string |
No |
The region where the WAF instance resides. Valid values:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
The ID of the resource group. |
rg-acfm***q |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
3D8AF43B-08EB-51CE-B33A-93AA****9B0C |
| RuleHitsTopUrl |
array<object> |
The top 10 URLs that hit protection rules. |
|
|
object |
The details about the rules that were hit by URLs. |
||
| Count |
integer |
The number of requests that hit the rule. |
21862 |
| Url |
string |
The request URL. Note
The return value is Base64-encoded. |
d3d3LmFsaXl1bmRvYy5jb20vcGF0aDM= |
Examples
Success response
JSON format
{
"RequestId": "3D8AF43B-08EB-51CE-B33A-93AA****9B0C",
"RuleHitsTopUrl": [
{
"Count": 21862,
"Url": "d3d3LmFsaXl1bmRvYy5jb20vcGF0aDM="
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.