DescribeInternetTrafficTop
Queries the top trend chart for Internet traffic.
Operation description
Queries the top trend data for Internet traffic.
Before you begin: Ensure that Cloud Firewall is activated for your account before you call this operation. You can call DescribeUserBuyVersion to query the activation status. If the returned UserStatus is true (valid), Cloud Firewall is activated. If UserStatus is false (invalid) or InstanceStatus is free (no valid instance), Cloud Firewall is not activated for the account or the instance has expired. Activate Cloud Firewall before you call this operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cloudfirewall:DescribeInternetTrafficTop |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceIp |
string |
No |
The source IP address. |
117.82.14.XXX |
| Lang |
string |
No |
The language. Valid values:
|
zh |
| Direction |
string |
No |
The traffic direction. Valid values:
|
in |
| StartTime |
string |
Yes |
The start time. Specify a UNIX timestamp in seconds. |
1656664560 |
| EndTime |
string |
Yes |
The end time. Specify a UNIX timestamp in seconds. |
1734055824 |
| SourceCode |
string |
Yes |
The tracing code. |
yundun |
| DataType |
string |
Yes |
The traffic data type. Valid values:
|
in_src_ip |
| RuleResult |
string |
No |
The defense result of the rule. Valid values:
|
1 |
| RuleSource |
string |
No |
The rule source. Valid values:
|
1 |
| Sort |
string |
No |
The sort order. Valid values:
|
in_bytes |
| ShowCountryName |
string |
No |
Specifies whether to display country names. |
China |
| Limit |
string |
No |
The maximum number of top entries. Default value: 50. Valid values: 1 to 50. |
50 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| DataType |
string |
The traffic data type. Valid values:
|
in_src_ip |
| RequestId |
string |
The request ID. |
15FCCC52-1E23-57AE-B5EF-3E00A3****** |
| DataCount |
integer |
The number of traffic data entries. |
10 |
| DataList |
array<object> |
The list of traffic data entries. |
|
|
object |
The list of traffic data entries. |
||
| DataValue |
string |
The inbound traffic percentage. |
47.12 |
| SessionCount |
integer |
The number of sessions. |
27 |
| TotalBytes |
integer |
The total traffic. Unit: bytes. |
0 |
| DataName |
string |
The country name. |
US |
| IsSubscribed |
boolean |
Indicates whether it is subscribed. |
false |
| LabelList |
array |
The list of labels. |
|
|
string |
The label. |
NA |
Examples
Success response
JSON format
{
"DataType": "in_src_ip",
"RequestId": "15FCCC52-1E23-57AE-B5EF-3E00A3******",
"DataCount": 10,
"DataList": [
{
"DataValue": "47.12",
"SessionCount": 27,
"TotalBytes": 0,
"DataName": "US",
"IsSubscribed": false,
"LabelList": [
"NA"
]
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorSourceCodeError | The source code is invalid. | The source code is invalid. |
| 400 | ErrorDataTypeError | The data type is invalid. | The data type is invalid. |
| 400 | ErrorDirectionError | The direction is invalid. | The direction is invalid. |
| 400 | ErrorRuleSourceError | The rule source is invalid. | The rule source is invalid. |
| 400 | ErrorTimeError | The time is invalid. | The time is invalid. |
| 400 | ErrorIntervalError | The interval is invalid. | The interval is invalid. |
| 400 | ErrorSortError | The sort is invalid. | The sort is invalid. |
| 400 | ErrorLimitCountFailed | The limit count is invalid. | The limit is invalid. |
| 400 | ErrorNotBuyUser | Not buy user. | Your account has not activated the Cloud Firewall and cannot call the API. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.