Domain name for API request: vpc.tencentcloudapi.com.
This API is used to query all the flow logs of the current account.
A maximum of 20 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: DescribeFlowLogs. |
Version | Yes | String | Common Params. The value used for this API: 2017-03-12. |
Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
VpcId | No | String | ID of the VPC instance |
FlowLogId | No | String | The unique ID of the flow log. |
FlowLogName | No | String | The name of the flow log instance. |
ResourceType | No | String | The resource type of the flow log. Valid values: 'VPC', 'SUBNET', and 'NETWORKINTERFACE'. |
ResourceId | No | String | The unique ID of the resource. |
TrafficType | No | String | Type of flow logs to be collected. Valid values: 'ACCEPT', 'REJECT' and 'ALL'. |
CloudLogId | No | String | The storage ID of the flow log. |
CloudLogState | No | String | The storage ID status of the flow log. |
OrderField | No | String | Order by field. Valid values: 'flowLogName' and 'createTime'. Default value: 'createTime'. |
OrderDirection | No | String | In ascending (asc ) or descending (desc ) order. Default value: 'desc'. |
Offset | No | Integer | The offset. Default value: 0. |
Limit | No | Integer | The number of rows per page. Default value: 10. |
Filters | No | Filter | Filter condition. FlowLogIds and Filters cannot be specified at the same time. |
Parameter Name | Type | Description |
---|---|---|
FlowLog | Array of FlowLog | The instance set of flow logs. |
TotalNum | Integer | The total number of flow logs. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
https://vpc.tencentcloudapi.com/?Action=DescribeFlowLogs
&Offset=0
&Limit=10
&<Common request parameters>
{
"Response": {
"FlowLog": [
{
"CloudLogId": "219d5186-eab0-4510-905b-84925d8ec35e",
"CloudLogState": "SUCCESS",
"CreatedTime": "2019-05-07 18:00:26",
"FlowLogDescription": "",
"FlowLogId": "fl-2edhcclz",
"FlowLogName": "yuemingtest",
"ResourceId": "eni-78ysaex1",
"ResourceType": "NETWORKINTERFACE",
"TrafficType": "ACCEPT",
"VpcId": "vpc-pq9vxykj",
"StorageType": "cls",
"TagSet": [],
"Enable": true,
},
{
"CloudLogId": "dfb8f1a2-8522-47c1-8571-67905167ab3f",
"CloudLogState": "SUCCESS",
"CreatedTime": "2019-05-08 10:48:26",
"FlowLogDescription": "",
"FlowLogId": "fl-f42uhpkj",
"FlowLogName": "test",
"ResourceId": "eni-78ysaex1",
"ResourceType": "NETWORKINTERFACE",
"TrafficType": "ACCEPT",
"VpcId": "vpc-pq9vxykj",
"StorageType": "cls",
"TagSet": [],
"Enable": true,
}
],
"TotalNum": 2,
"RequestId": "404428db-f850-40c2-803d-0aae49aba43a"
}
}
POST / HTTP/1.1
Host: vpc.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeFlowLogs
<common request parameters>
{
"VpcId": "vpc-ew41hsdj",
"FlowLogId": "fl-m4vogmhf"
}
{
"Response": {
"FlowLog": [
{
"VpcId": "vpc-ew41hsdj",
"FlowLogId": "fl-m4vogmhf",
"FlowLogName": "sflow-nat",
"ResourceType": "NAT",
"ResourceId": "nat-prlux840",
"TrafficType": "ALL",
"CloudLogId": "29a6c8c8-d57d-4e25-84b5-9114734ce6ca",
"CloudLogState": "SUCCESS",
"FlowLogDescription": "",
"CreatedTime": "2022-05-18 15:26:50",
"Enable": true,
"StorageType": "cls",
"FlowLogStorage": {
"StorageId": "29a6c8c8-d57d-4e25-84b5-9114734ce6ca"
},
"TagSet": []
}
],
"TotalNum": 1,
"RequestId": "811bbd89-3c38-4926-9a8c-4bc97792aa34"
}
}
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 |
---|---|
InvalidParameterValue.Malformed | Invalid input parameter format. |
InvalidParameterValue.Range | The parameter value is not in the specified range. |
ResourceNotFound | The resource does not exist. |
Was this page helpful?