Queries the top 10 protected objects that triggered protection rules most frequently.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:DescribeRuleHitsTopResource |
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 specify this parameter, the current time is used as the end time. |
1665386340 |
| RuleType |
string |
No |
The type of rule that was triggered. If you do not specify this parameter, data for all rule types is returned.
|
blacklist |
| InstanceId |
string |
Yes |
The ID of the WAF instance. Note
Call the DescribeInstance operation to query the ID of the WAF instance. |
waf_cdnsdf3**** |
| RegionId |
string |
No |
The region where the WAF instance is deployed. 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. |
ADA11BC7-AA95-5C31-9095-5802C02ED1DC |
| RuleHitsTopResource |
array<object> |
The top 10 protected objects that triggered protection rules. |
|
|
object |
The details of a protected object that triggered a protection rule. |
||
| Resource |
string |
The protected object. |
www.aliyundoc.com |
| Count |
integer |
The number of requests that triggered the rule. |
14219 |
Examples
Success response
JSON format
{
"RequestId": "ADA11BC7-AA95-5C31-9095-5802C02ED1DC",
"RuleHitsTopResource": [
{
"Resource": "www.aliyundoc.com",
"Count": 14219
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.