GetVbrFlowTopN
Retrieves the ranking of hybrid cloud traffic details, covering 1-tuple, 2-tuple, and 5-tuple granularities, and supports sorting by metrics such as traffic and packet count.
This API has been deprecated. We recommend migrating to nis(2021-12-16) - GetNisNetworkRanking for enhanced functionality and continued support. While the deprecated API remains temporarily accessible, no further updates or bug fixes will be provided.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nis:GetVbrFlowTopN |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The cloud region. |
cn-shanghai |
| BeginTime |
integer |
Yes |
The start time of the query, in milliseconds (UNIX timestamp). The maximum query span is 24 hours. |
1638239092000 |
| EndTime |
integer |
Yes |
The end time of the query, in milliseconds (UNIX timestamp). The maximum query span is 24 hours. |
1638239093000 |
| Direction |
string |
Yes |
The traffic direction relative to the current region or IP address. Valid values:
|
in |
| GroupBy |
string |
Yes |
The dimension for hybrid cloud traffic ranking. This parameter is case-sensitive. Valid values:
|
1Tuple |
| OrderBy |
string |
No |
The metric used for sorting. Default value: Bytes, which sorts by traffic volume. |
Bytes |
| Sort |
string |
No |
The sort order. Valid values:
|
desc |
| TopN |
integer |
No |
The maximum number of top-ranked entries to return. Default value: 10, which returns the top 10 entries. Maximum value: 100. |
10 |
| CenId |
string |
No |
The CEN instance ID. |
cen-ia8kw1zjv4hyal**** |
| VirtualBorderRouterId |
string |
No |
The VBR instance ID of the Express Connect circuit. |
vbr-k1atj46citwuek42j**** |
| AttachmentId |
string |
No |
The CEN connection ID. |
tr-attach-dnv870gmqzmb5u**** |
| Protocol |
string |
No |
The protocol number. Note
All protocols are supported. This parameter is required only when GroupBy is set to 5Tuple or Protocol. |
6 |
| CloudIp |
string |
No |
The cloud-side IP address. |
112.74.XX.XX |
| OtherIp |
string |
No |
The IDC-side IP address. |
122.112.XX.XX |
| CloudPort |
string |
No |
The cloud-side port number. Note
This parameter is required only when GroupBy is set to CloudPort. |
443 |
| OtherPort |
string |
No |
The IDC-side port number. Note
This parameter is required only when GroupBy is set to OtherPort. |
40002 |
| AccountIds |
array |
No |
The list of member account IDs. |
|
|
integer |
No |
The ID of a member account. |
[\"118639953821****\"] |
|
| UseMultiAccount |
boolean |
No |
Specifies whether to enable the multi-account management feature. Default value: false, which indicates that this feature is disabled. Note
The multi-account management feature is not available by default. To use this feature, contact your account manager to request access. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
RpcResponse |
||
| RequestId |
string |
The request ID. |
A7F0D6EC-E19E-58AC-AC9F-08036763960F |
| VirtualBorderRouterFlowlogTopN |
array<object> |
The ranking list of hybrid cloud traffic details. |
|
|
object |
The hybrid cloud traffic details. |
||
| AccountId |
string |
The account ID. |
156237031628**** |
| AttachmentId |
string |
The CEN connection ID. |
tr-attach-u6v1j3jre0fe9h**** |
| Bytes |
number |
The total traffic volume within the specified time range. |
108 |
| CloudIp |
string |
The cloud-side IP address. |
120.24.X.X |
| CloudPort |
string |
The cloud-side port. |
80 |
| CloudRegion |
string |
The cloud region that corresponds to the cloud-side IP address. |
cn-shanghai |
| OtherIp |
string |
The IDC-side IP address. |
222.85.X.X |
| OtherPort |
string |
The IDC-side port. |
10965 |
| Packets |
number |
The total number of packets within the specified time range. |
66 |
| Protocol |
string |
The protocol number. |
6 |
| VirtualBorderRouterId |
string |
The VBR instance ID. |
vbr-k1atj46citwuek42j**** |
Examples
Success response
JSON format
{
"RequestId": "A7F0D6EC-E19E-58AC-AC9F-08036763960F",
"VirtualBorderRouterFlowlogTopN": [
{
"AccountId": "156237031628****",
"AttachmentId": "tr-attach-u6v1j3jre0fe9h****",
"Bytes": 108,
"CloudIp": "120.24.X.X",
"CloudPort": "80",
"CloudRegion": "cn-shanghai",
"OtherIp": "222.85.X.X",
"OtherPort": "10965",
"Packets": 66,
"Protocol": "6",
"VirtualBorderRouterId": "vbr-k1atj46citwuek42j****"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalParam.TopN | The TopN(%s) should not greater than 100. | Only top 100 are supported. Actual input: (%s). |
| 400 | IllegalParam.BeginTime | The specified begin time (%s) is invalid. | The specified start time (%s) is invalid. |
| 400 | IllegalParam.BeginTimeAndEndTime | It only supports querying data for up to 7 days: %s. | You can query data within the last seven days: %s. |
| 400 | IllegalParam.Sort | The specified Sort(%s) is invalid. | Valid values for the sort field: desc and asc. |
| 400 | IllegalParam.OrderBy | The specified param of orderBy (%s) is invalid. | The specified sort field (%s) is invalid. |
| 400 | OperationFailed.DataTooMuch | Too much data has been queried under the specified conditions. Shorten the query time, specify more precise filtering conditions, or try again later. | Too much data has been queried under the specified conditions. Shorten the query time, specify more precise filtering conditions, or try again later. |
| 400 | IllegalParam.RegionId | The specified region ID (%s) is invalid. | The specified region ID (%s) is invalid. |
| 400 | QuotaExceeded.CheckRowReadLimit | The query time range (%s) exceeds the number of data rows limit. Shorten the query interval. | The query time range (%s) exceeds the number of data rows limit. Shorten the query interval. |
| 400 | IllegalParam.GroupBy | The specified param of GroupBy (%s) is invalid. | The specified group field (%s) is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.