调用DescribeFlowLogs查询流日志。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 否 | DescribeFlowLogs |
要执行的操作。 取值:DescribeFlowLogs。 |
RegionId | String | 是 | cn-hangzhou |
流日志地域ID。 |
FlowLogId | String | 否 | fl-7a56mar1kfw9vj**** |
流日志实例ID。 |
FlowLogName | String | 否 | DDE |
流日志实例名称。 |
Description | String | 否 | desc |
流日志实例描述。 |
Status | String | 否 | Active |
流日志实例状态,取值:
|
OutputType | String | 否 | sls |
流日志输出类型,取值:
|
PageSize | Integer | 否 | 10 |
指定分页查询时每页的行数,最大值为50,默认值为10。 |
PageNumber | Integer | 否 | 1 |
流日志实例列表的页码,默认值为1。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
FlowLogs | Array |
流日志。 |
|
FlowLogSetType | |||
ActiveAging | Integer | 300 |
活跃流输出间隔,数值范围:60~6000(单位:s),默认值为300s。 |
Description | String | aaa |
流日志实例描述。 |
FlowLogId | String | fl-7a56mar1kfw9vj**** |
流日志实例ID。 |
InactiveAging | Integer | 15 |
非活跃流输出间隔,数值范围:10~600(单位:s),默认值为15s。 |
LogstoreName | String | config-operation-log |
日志服务的日志库名称。 |
Name | String | DDE |
流日志实例名称。 |
NetflowServerIp | String | 192.168.0.xxxx |
流日志输出的服务器地址。 |
NetflowServerPort | String | 9995 |
流日志输出的服务器端口,默认值为9995。 |
NetflowVersion | String | V9 |
流日志输出时使用的etflow协议版本号,默认值V9。 |
OutputType | String | sls |
流日志输出类型。
|
ProjectName | String | sag-flowlog-shanghai |
日志服务的Project名称。 |
SlsRegionId | String | cn-shanghai |
日志服务的地域ID。 |
Status | String | Active |
流日志实例的状态:
|
TotalSagNum | Integer | 2 |
流日志实例关联的智能接入网关实例数目。 |
PageNumber | Integer | 1 |
流日志实例列表的页码数,默认值为1。 |
PageSize | Integer | 10 |
指定分页查询时每页的行数,最大值为50,默认值为10。 |
RequestId | String | 44F4E2D0-77F7-4DEC-969B-061688946143 |
请求ID。 |
TotalCount | Integer | 5 |
查询列表条目数。 |
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeFlowLogs
&RegionId=cn-hangzhou
&<公共请求参数>
正常返回示例
XML
格式
<DescribeFlowLogsResponse>
<TotalCount>1</TotalCount>
<FlowLogs>
<FlowLogSetType>
<NetflowServerPort>9995</NetflowServerPort>
<Status>Active</Status>
<LogstoreName>config-operation-log</LogstoreName>
<Description>aaa</Description>
<ActiveAging>300</ActiveAging>
<ProjectName>sag-flowlog-shanghai</ProjectName>
<NetflowVersion>V9</NetflowVersion>
<InactiveAging>15</InactiveAging>
<FlowLogId>fl-0vv40lyu2un5qh****</FlowLogId>
<Name>test</Name>
<TotalSagNum>0</TotalSagNum>
<SlsRegionId>cn-shanghai</SlsRegionId>
<OutputType>sls</OutputType>
</FlowLogSetType>
</FlowLogs>
<RequestId>6F959528-F177-488C-93DA-6A791BBC718B</RequestId>
<PageSize>10</PageSize>
<PageNumber>1</PageNumber>
</DescribeFlowLogsResponse>
JSON
格式
{
"TotalCount": 1,
"FlowLogs": {
"FlowLogSetType": [
{
"NetflowServerPort": 9995,
"Status": "Active",
"LogstoreName": "config-operation-log",
"Description": "aaa",
"ActiveAging": 300,
"ProjectName": "sag-flowlog-shanghai",
"NetflowVersion": "V9",
"InactiveAging": 15,
"FlowLogId": "fl-0vv40lyu2un5qh****",
"Name": "test",
"TotalSagNum": 0,
"SlsRegionId": "cn-shanghai",
"OutputType": "sls"
}
]
},
"RequestId": "6F959528-F177-488C-93DA-6A791BBC718B",
"PageSize": 10,
"PageNumber": 1
}
错误码
访问错误中心查看更多错误码。