tencent cloud

Feedback

DescribeGatewayFlowMonitorDetail

Last updated: 2023-08-23 14:11:30

1. API Description

Domain name for API request: vpc.tencentcloudapi.com.

This API is used to query the traffic monitoring details of the gateway.

  • You can only use this API to query a single gateway instance, which means you must pass in only one of VpnId, DirectConnectGatewayId, PeeringConnectionId, or NatId.
  • If the gateway has traffic, but no data is returned when this API is called, please check whether gateway traffic monitoring has been enabled in the corresponding gateway details page in the console.

A maximum of 30 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: DescribeGatewayFlowMonitorDetail.
Version Yes String Common Params. The value used for this API: 2017-03-12.
Region No String Common Params. This parameter is not required for this API.
TimePoint Yes Timestamp The point in time. This indicates details of this minute will be queried. For example, in 2019-02-28 18:15:20, details at 18:15 will be queried.
VpnId No String The instance ID of the VPN gateway, such as vpn-ltjahce6.
DirectConnectGatewayId No String The instance ID of the Direct Connect gateway, such as dcg-ltjahce6.
PeeringConnectionId No String The instance ID of the peering connection, such as pcx-ltjahce6.
NatId No String The instance ID of the NAT gateway, such as nat-ltjahce6.
Offset No Integer Offset.
Limit No Integer The returned quantity.
OrderField No String The order field supports InPkg, OutPkg, InTraffic, and OutTraffic.
OrderDirection No String Order methods. Ascending: ASC, Descending: DESC.

3. Output Parameters

Parameter Name Type Description
TotalCount Integer The number of objects meeting the condition.
GatewayFlowMonitorDetailSet Array of GatewayFlowMonitorDetail The gateway traffic monitoring details.
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Querying the traffic monitoring details of a NAT gateway

This example shows you how to querying the traffic monitoring details of a NAT gateway.

Input Example

https://vpc.tencentcloudapi.com/?Action=DescribeGatewayFlowMonitorDetail
&TimePoint=2019-02-28 18:15:20
&NatId=nat-lz6rjk7n
&OrderField=OutTraffic
&OrderDirection=DESC
&<common request parameters>

Output Example

{
    "Response": {
        "GatewayFlowMonitorDetailSet": [
            {
                "PrivateIpAddress": "172.20.65.74",
                "InPkg": 182,
                "OutPkg": 263,
                "InTraffic": 17316,
                "OutTraffic": 35269
            },
            {
                "PrivateIpAddress": "172.20.65.63",
                "InPkg": 0,
                "OutPkg": 20,
                "InTraffic": 0,
                "OutTraffic": 1960
            },
            {
                "PrivateIpAddress": "172.20.65.70",
                "InPkg": 0,
                "OutPkg": 20,
                "InTraffic": 0,
                "OutTraffic": 1960
            },
            {
                "PrivateIpAddress": "172.20.65.172",
                "InPkg": 0,
                "OutPkg": 20,
                "InTraffic": 0,
                "OutTraffic": 1960
            },
            {
                "PrivateIpAddress": "172.20.65.249",
                "InPkg": 0,
                "OutPkg": 20,
                "InTraffic": 0,
                "OutTraffic": 1960
            }
        ],
        "TotalCount": 261,
        "RequestId": "0fc9884d-7aa1-4d95-95d3-7945108d2b10"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
InternalError.ModuleError Internal module error
InvalidParameterValue.Malformed Invalid input parameter format.
InvalidParameterValue.Range The parameter value is not in the specified range.
UnsupportedOperation Unsupported operation.