Displays the top 10 User-Agents by number of attacks.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
yundun-waf:DescribeRuleHitsTopUa | get | *All Resource
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
StartTimestamp | string | Yes | The beginning of the time range to query. This is a UNIX timestamp in seconds. | 1665331200 |
EndTimestamp | string | No | The end of the time range to query. This is a UNIX timestamp in seconds. If you do not specify this parameter, the current time is used as the end time. | 1665386280 |
Resource | string | No | The protected object. | www.aliyundoc.com |
InstanceId | string | Yes | The ID of the WAF instance. Note Call the DescribeInstance operation to obtain the ID of the WAF instance. | waf_cdnsdf3**** |
RegionId | string | No | The region of the WAF instance. 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 ID of the request. | 8E5C7ED7-503A-5986-A005-36F2511EB89F |
| RuleHitsTopUa | array<object> | The top 10 User-Agents that initiated attacks. | |
object | The attack details for a User-Agent. | ||
Count | integer | The number of attack requests. | 531 |
Ua | string | The User-Agent string. | android |
Examples
Success response
JSON format
{
"RequestId": "8E5C7ED7-503A-5986-A005-36F2511EB89F",
"RuleHitsTopUa": [
{
"Count": 531,
"Ua": "android"
}
]
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.