Domain name for API request: vpc.tencentcloudapi.com.
This API is used to query the traffic monitoring details of the gateway.
VpnId
, DirectConnectGatewayId
, PeeringConnectionId
, or NatId
.A maximum of 30 requests can be initiated per second for this API.
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 . |
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. |
This example shows you how to querying the traffic monitoring details of a NAT gateway.
https://vpc.tencentcloudapi.com/?Action=DescribeGatewayFlowMonitorDetail
&TimePoint=2019-02-28 18:15:20
&NatId=nat-lz6rjk7n
&OrderField=OutTraffic
&OrderDirection=DESC
&<common request parameters>
{
"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"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
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. |
本页内容是否解决了您的问题?