Queries traffic statistics for an API operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:DescribeUserApiRequest |
get |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the WAF instance. Note
Call the DescribeInstance operation to query the ID of the WAF instance. |
waf_v3prepaid_public_cn-zxu38*** |
Domain
deprecated
|
string |
No |
The domain name or IP address of the API operation. Important
This parameter is deprecated. Use the ApiId parameter instead. |
c.***.com |
ApiFormat
deprecated
|
string |
No |
The API operation. Important
This parameter is deprecated. Use the ApiId parameter instead. |
/api/v1/know |
| Type |
string |
No |
The type of statistics. Valid values:
|
api_ip |
| ClusterId |
string |
No |
The ID of the hybrid cloud cluster. Note
This parameter applies only to hybrid cloud scenarios. Call the DescribeHybridCloudClusters operation to obtain information about hybrid cloud clusters. |
428 |
| ApiId |
string |
Yes |
The ID of the API. |
3799f0695c0d687f3295d132fe49bc14 |
| RegionId |
string |
No |
The region where the WAF instance resides. Valid values:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
The ID of the Alibaba Cloud resource group. |
rg-acfm***q |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The request result. |
||
| RequestId |
string |
The request ID. |
D13E4540-4432-5AD7-B216-6369512514F4 |
| Requests |
array<object> |
The list of statistics. |
|
|
object |
The statistics information. |
||
| Value |
string |
The statistics information. This includes:
|
{ "client_list": [ "Unknown" ], "ip": "47.92.113.***", "region_id": "110000", "country_id": "CN" } |
| Count |
integer |
The number of statistics. |
76 |
Examples
Success response
JSON format
{
"RequestId": "D13E4540-4432-5AD7-B216-6369512514F4",
"Requests": [
{
"Value": "{\n \"client_list\": [\n \"Unknown\"\n ],\n \"ip\": \"47.92.113.***\",\n \"region_id\": \"110000\",\n \"country_id\": \"CN\"\n}",
"Count": 76
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.