All Products
Search
Document Center

Network Intelligence Service:GetVbrFlowTopN

Last Updated:Sep 13, 2024

Queries the rankings of hybrid cloud traffic data in the form of 1-tuple, 2-tuple, or 5-tuple. Hybrid cloud traffic data can be ranked by metrics such as traffic volumes and the number of packets.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
nis:GetVbrFlowTopNlist
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The local region.

cn-shanghai
BeginTimelongYes

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.

1638239092000
EndTimelongYes

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
DirectionstringYes

The direction of the hybrid cloud traffic in the local regions or for the local IP addresses. Valid values:

  • in: traffic from a data center to Alibaba Cloud
  • out: traffic from Alibaba Cloud to a data center
in
GroupBystringYes

The dimension for ranking hybrid cloud traffic data. The value of this parameter is case-sensitive. Valid values:

  • 1Tuple: queries the rankings of hybrid cloud traffic data for the Cloud Enterprise Network (CEN) instances, CEN connections, virtual border routers (VBRs), and IP addresses.
  • 2Tuple: queries the rankings of hybrid cloud traffic data for the local and remote IP addresses.
  • 5Tuple: queries the rankings of hybrid cloud traffic data for the local and remote IP addresses, local and remote ports, and protocols.
  • CloudPort: queries the rankings of hybrid cloud traffic data for the local ports.
  • OtherPort: queries the rankings of hybrid cloud traffic data for the remote ports.
  • Protocol: queries the rankings of hybrid cloud traffic data for the protocols.
1Tuple
OrderBystringNo

The metric for ranking hybrid cloud traffic data. Default value: Bytes. This value specifies that hybrid cloud traffic data is ranked by traffic volumes.

Bytes
SortstringNo

The order for ranking hybrid cloud traffic data. Valid values:

  • desc: descending order
  • asc: ascending order
desc
TopNintegerNo

Specifies top-N traffic data to display. Default value: 10. This value specifies that top-10 traffic data is displayed by default. Maximum value: 100.

10
CenIdstringNo

The CEN instance ID.

cen-ia8kw1zjv4hyal****
VirtualBorderRouterIdstringNo

The ID of the VBR that is associated with the Express Connect circuit.

vbr-k1atj46citwuek42j****
AttachmentIdstringNo

The CEN connection ID.

tr-attach-dnv870gmqzmb5u****
ProtocolstringNo

The protocol number.

Note All protocols are supported. This parameter is required only if you set GroupBy to 5Tuple or Protocol.
6
CloudIpstringNo

The local IP address.

112.74.XX.XX
OtherIpstringNo

The remote IP address.

122.112.XX.XX
CloudPortstringNo

The local port.

Note This parameter is required only if you set GroupBy to CloudPort.
443
OtherPortstringNo

The remote port.

Note This parameter is required only if you set GroupBy to OtherPort.
40002
AccountIdsarrayNo

The IDs of member accounts.

stringNo

The ID of the member account.

[\"118639953821****\"]
UseMultiAccountbooleanNo

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

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

A7F0D6EC-E19E-58AC-AC9F-08036763960F
VirtualBorderRouterFlowlogTopNarray<object>

The ranking result of hybrid cloud traffic data.

object
CloudRegionstring

The local region where the local IP address resides.

cn-shanghai
CloudIpstring

The local IP address.

120.24.X.X
OtherIpstring

The remote IP address.

222.85.X.X
CloudPortstring

The local port.

80
OtherPortstring

The remote port.

10965
Protocolstring

The protocol number.

6
AttachmentIdstring

The CEN connection ID.

tr-attach-u6v1j3jre0fe9h****
VirtualBorderRouterIdstring

The ID of the VBR that is associated with the Express Connect circuit.

vbr-k1atj46citwuek42j****
Bytesdouble

The total volume of traffic in the specified time range.

108
Packetsdouble

The total number of packets in the specified time range.

66
AccountIdstring

The account ID.

156237031628****

Examples

Sample success responses

JSONformat

{
  "RequestId": "A7F0D6EC-E19E-58AC-AC9F-08036763960F",
  "VirtualBorderRouterFlowlogTopN": [
    {
      "CloudRegion": "cn-shanghai",
      "CloudIp": "120.24.X.X",
      "OtherIp": "222.85.X.X",
      "CloudPort": "80",
      "OtherPort": "10965",
      "Protocol": "6",
      "AttachmentId": "tr-attach-u6v1j3jre0fe9h****",
      "VirtualBorderRouterId": "vbr-k1atj46citwuek42j****",
      "Bytes": 108,
      "Packets": 66,
      "AccountId": "156237031628****"
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400IllegalParam.TopNThe TopN(%s) should not greater than 100.Only top 100 are supported. Actual input: (%s).
400IllegalParam.BeginTimeThe specified begin time (%s) is invalid.The specified start time (%s) is invalid.
400IllegalParam.BeginTimeAndEndTimeIt only supports querying data for up to 7 days: %s.You can query data within the last seven days: %s.
400IllegalParam.SortThe specified Sort(%s) is invalid.Valid values for the sort field: desc and asc.
400IllegalParam.OrderByThe specified param of orderBy (%s) is invalid.The specified sort field (%s) is invalid.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-07-10The API operation is deprecated. The Error code has changedView Change Details
2024-03-06The Error code has changedView Change Details
2023-12-07The Error code has changedView Change Details