All Products
Search
Document Center

Network Intelligence Service:GetInternetTuple

Last Updated:Apr 29, 2024

Queries the rankings of Internet traffic data in the form of 1-tuple, 2-tuple, or 5-tuple. Internet 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

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The ID of the region for which you want to query the Internet traffic.

cn-shanghai
TupleTypeintegerYes

The type of the tuple. Valid values:

  • 1: 1-tuple
  • 2: 2-tuple
  • 5: 5-tuple
1
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.

1684373600099
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.

1684373700099
DirectionstringYes

The direction of the Internet traffic that you want to query. Valid values:

  • in: inbound
  • out: outbound
in
OrderBystringNo

The metric for data ranking. Default value: ByteCount. This value indicates that Internet traffic data is ranked by traffic volume.

Valid values:

  • Rtt
  • ByteCount
  • PacketCount
  • InByteCount
  • OutByteCount
  • InPacketCount
  • OutPacketCount
  • InRetranCount
  • OutRetranCount
  • InDupAckCount
  • OutDupAckCount
  • InOutOrderCount
  • OutOutOrderCount
  • RetranCount
  • OutOrderCount
  • DupAckCount
  • RetransmitRate
ByteCount
CloudIpstringNo

The local IP address.

112.74.XX.XX
CloudPortstringNo

The local port.

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

The remote IP address.

Note This parameter is required only when you set TupleType to 2 or 5.
122.112.XX.XX
OtherPortstringNo

The remote port.

Note This parameter is required only when you set TupleType to 5.
40002
InstanceIdstringNo

The ID of the Alibaba Cloud instance.

eip-sample*
ProtocolstringNo

The protocol number.

Note All protocols are supported. This parameter is required only when you set TupleType to 5.
6
SortstringNo

The order in which instances are ranked by Internet traffic. Valid values:

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

Specifies top-N traffic data to display. Default value: 10. This value specifies to display top-10 traffic data by default. Max value: 100.

10
CloudIspstringNo

The local Internet service provider (ISP).

Note In most cases, the value is Alibaba or Alibaba Cloud.
Alibaba
OtherIspstringNo

The remote ISP.

Note This parameter is required if you want to view the information about the remote ISP.
China Mobile
OtherCountrystringNo

The remote country.

Note This parameter is required only if you set TupleType to 2 or 5.
China
OtherCitystringNo

The remote city.

Note This parameter is required only if you set TupleType to 2 or 5.
Hangzhou
InstanceListarrayNo

The instance IDs for filtering.

stringNo

The instance ID for filtering.

[\"eip-sample*\"]
CloudIpListarrayNo

The local IP addresses for filtering.

stringNo

The local IP address for filtering.

[\"103.202.XX.XX\"]
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
AccountIdsarrayNo

The IDs of member accounts.

longNo

The ID of the member account.

[123]

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

D5E98683-355B-5867-8D3D-A24755F6895B
Dataobject []

The ranking result of Internet traffic data.

BeginTimestring

The beginning of the time range that you queried. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

1684373600099
Directionstring

The direction of Internet traffic. Valid values:

  • in: inbound
  • out: outbound
in
InstanceIdstring

The ID of the instance to which the local IP address belongs.

eip-sample*
AccessRegionstring

The access point of Alibaba Cloud.

Note This parameter is valid only if you set InstanceId to the instance ID of an Anycast elastic IP address (EIP).
cn-hongkong-pop
CloudIpstring

The local IP address.

112.74.XX.XX
CloudPortstring

The local port.

443
OtherIpstring

The remote IP address.

122.112.XX.XX
OtherPortstring

The remote port.

40002
Protocolstring

The protocol number.

6
CloudCountrystring

The local country or region.

China
CloudProvincestring

The local province.

Jiangsu
CloudCitystring

The local city.

Nanjing
CloudIspstring

The local ISP.

China Mobile
CloudProductstring

The service code of the instance to which the local IP address belongs.

EIP
OtherCountrystring

The remote country or region.

United States
OtherProvincestring

The remote province. In most cases, this parameter is empty if you set OtherCountry to a country except China.

Texas
OtherCitystring

The remote city. In most cases, this parameter is empty if you set OtherCountry to a country except China.

Austin
OtherIspstring

The remote ISP.

amazon.com
OtherProductstring

The service code of the instance to which the remote IP address belongs. If the IP address is not on the cloud, this parameter is empty.

ECS
Rttdouble

The round-trip time (RTT). Unit: milliseconds.

10000
ByteCountdouble

The traffic volume. Unit: bytes.

88
PacketCountdouble

The number of packets.

66
OutOrderCountdouble

The number of disordered packets.

1
InByteCountdouble

The inbound traffic volume. Unit: bytes.

88
OutByteCountdouble

The outbound traffic volume. Unit: bytes.

66
InPacketCountdouble

The number of inbound packets.

33
OutPacketCountdouble

The number of outbound packets.

22
InOutOrderCountdouble

The number of inbound disordered packets.

2
OutOutOrderCountdouble

The number of outbound disordered packets.

1
InRetranCountdouble

The number of inbound repeated packets.

0
OutRetranCountdouble

The number of outbound repeated packets.

1
RetransmitRatedouble

The retransmission rate of TCP packets.

0.1

Examples

Sample success responses

JSONformat

{
  "RequestId": "D5E98683-355B-5867-8D3D-A24755F6895B",
  "Data": [
    {
      "BeginTime": "1684373600099",
      "Direction": "in",
      "InstanceId": "eip-sample*",
      "AccessRegion": "cn-hongkong-pop",
      "CloudIp": "112.74.XX.XX",
      "CloudPort": "443",
      "OtherIp": "122.112.XX.XX",
      "OtherPort": "40002",
      "Protocol": "6",
      "CloudCountry": "China",
      "CloudProvince": "Jiangsu",
      "CloudCity": "Nanjing",
      "CloudIsp": "China Mobile",
      "CloudProduct": "EIP",
      "OtherCountry": "United States",
      "OtherProvince": "Texas",
      "OtherCity": "Austin",
      "OtherIsp": "amazon.com",
      "OtherProduct": "ECS",
      "Rtt": 10000,
      "ByteCount": 88,
      "PacketCount": 66,
      "OutOrderCount": 1,
      "InByteCount": 88,
      "OutByteCount": 66,
      "InPacketCount": 33,
      "OutPacketCount": 22,
      "InOutOrderCount": 2,
      "OutOutOrderCount": 1,
      "InRetranCount": 0,
      "OutRetranCount": 1,
      "RetransmitRate": 0.1
    }
  ]
}

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.BeginTimeAndEndTime1HIt only supports querying data for up to 1 hour: %s.Maximum support for querying 1 hour of data: %s.
400IllegalParam.GroupByThe specified param of GroupBy (%s) is invalid.The specified group field (%s) is invalid.
400IllegalParam.OrderByThe specified param of orderBy (%s) is invalid.The specified sort field (%s) is invalid.
400IllegalParam.RegionIdThe specified region ID (%s) is invalid.The specified region ID (%s) is invalid.
400IllegalParam.BeginTimeAndEndTimeIt only supports querying data for up to 24 hours: %s.The time range that you can query must be no longer than 24 hours.
400IllegalParam.BeginTimeAndEndTime5MIt only supports querying data for up to 5 minute when TupleType is 5 and the CloudIp and OtherIp are both empty: %s.When TupleType = 5 and the CloudIp and OtherIp are both empty, you can only query data in a range of up to 5 minutes.
400OperationFailed.DbConcurrentTooHighThe operation failed due to too many concurrent queries. Please try again later.The operation failed because there are too many current users. Please try again later.
400OperationFailed.DataTooMuchToo 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.
404ResourceNotFound.InstanceIdThe specified InstanceId(%s) does not exist.The specified InstanceId does not exist.

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

Change history

Change timeSummary of changesOperation
2024-04-15The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 404 change
    delete Error Codes: 400
2024-04-10The Error code has changed. The request parameters of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    Added Error Codes: 404
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: CloudIpList
2024-01-19The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 400 change
2024-01-11The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
2023-12-07The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
2023-11-24The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 400 change
2023-11-17The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 400 change
2023-11-16The Error code has changed. The response structure of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 400 change
Output ParametersThe response structure of the API has changed.
2023-06-19The Error code has changed. The request parameters of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: OtherCountry
    Added Input Parameters: OtherCity