Queries the rankings of inter-region traffic data in the form of 1-tuple, 2-tuple, or 5-tuple. Inter-region traffic data can be ranked by metrics such as traffic volumes and the number of packets.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
BeginTime | long | Yes | The beginning of the time range to query. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. The maximum time range that you can query is 24 hours. | 1684373600099 |
EndTime | long | Yes | The end of the time range to query. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. The maximum time range that you can query is 24 hours. | 1638239093000 |
TopN | integer | No | Specifies the maximum number of data entries to display. Default value: 10. Maximum value: 100. | 20 |
Direction | string | Yes | The direction of the inter-region traffic in the local regions or for the local IP addresses. Valid values:
| in |
GroupBy | string | Yes | The dimension for ranking inter-region traffic data. The value of this parameter is case-sensitive. Valid values:
| 1Tuple |
ThisRegion | string | No | The local region where the local IP address resides. | cn-shanghai |
ThisIp | string | No | The local IP address. | 1.8.XX.XX |
ThisPort | string | No | The local port. | 80 |
OtherRegion | string | No | The remote region. | ap-southeast-1 |
OtherIp | string | No | The remote IP address. | 122.112.XX.XX |
OtherPort | string | No | The remote port. | 10869 |
Protocol | string | No | The protocol number. Note
All protocols are supported. This parameter is required only if you set GroupBy to 5Tuple or Protocol.
| 6 |
OrderBy | string | No | The metric for ranking inter-region traffic data. Default value: Bytes. This value specifies that inter-region traffic data is ranked by traffic volume. | Bytes |
Sort | string | No | The order for ranking inter-region traffic data. Valid values:
| desc |
CenId | string | No | The CEN instance ID. | cen-ia8kw1zjv4hyal**** |
BandwithPackageId | string | No | The ID of the CEN bandwidth plan. | cenbwp-ia8kw1zjv4hyal***** |
AccountIds | array | No | The IDs of the member accounts. | |
string | No | The ID of the member account. | [\"118639953821xxxx\"] | |
UseMultiAccount | boolean | No | Specifies whether to enable the multi-account management feature. Default value: false. This value specifies that the multi-account management feature is disabled. Note
By default, the multi-account management feature is not available. If you want to use this feature, contact your account manager to apply for permissions.
| false |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "D5E98683-355B-5867-8D3D-A24755F6895B",
"TransitRouterFlowTopN": [
{
"AccountId": "118639953821xxxx",
"CenId": "cen-ia8kw1zjv4hyal****",
"ThisRegion": "cn-shanghai",
"ThisIp": "1.8.XX.XX",
"ThisPort": "80",
"OtherRegion": "ap-southeast-1",
"OtherIp": "47.216.XX.XX",
"OtherPort": "53470",
"Protocol": "6",
"StartTime": "2023-01-31T05:40:00Z",
"EndTime": "2023-01-31T06:40:00Z",
"Packets": 88,
"Bytes": 188,
"BandwithPackageId": "cenbwp-ia8kw1zjv4hyal****"
}
]
}
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.OrderBy | The specified param of orderBy (%s) is invalid. | The specified sort field (%s) is invalid. |
400 | IllegalParam.Sort | The specified Sort(%s) is invalid. | Valid values for the sort field: desc and asc. |
400 | IllegalParam.AccountIds | The specified parameter accountId (%s) is invalid. | The specified parameter accountId (%s) is invalid. |
400 | IllegalParam.inOrOut | Valid values for the inOrOut parameter: in and out. | Valid values for the inOrOut parameter: in and out. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||
---|---|---|---|---|---|---|
2023-12-07 | The Error code has changed | see changesets | ||||
| ||||||
2023-10-24 | The Error code has changed | see changesets | ||||
|