更新时间:2025-02-07 GMT+08:00
查询流日志列表
功能介绍
查询提交请求的租户的所有流日志列表,并根据过滤条件进行过滤。
URI
GET /v1/{project_id}/fl/flow_logs
样例:
GET https://{Endpoint}/v1/b2782e6708b8475c993e6064bc456bf8/fl/flow_logs?name=flowlog 参数说明请参见表1。
| 名称 | 是否必选 | 参数类型 | 说明 |
|---|---|---|---|
| project_id | 是 | String |
|
| id | 否 | String |
|
| name | 否 | String |
|
| tenant_id | 否 | String |
|
| description | 否 | String |
|
| resource_type | 否 | String |
|
| resource_id | 否 | String |
|
| traffic_type | 否 | String |
|
| log_group_id | 否 | String |
|
| log_topic_id | 否 | String |
|
| limit | 否 | Integer | 分页查询每页返回的记录个数,取值范围为0~intmax(2^31-1),默认值2000。 limit需要和marker配合使用,详细规则请见marker的参数说明。 |
| marker | 否 | String | 分页查询的起始资源ID,表示从指定资源的下一条记录开始查询。 marker需要和limit配合使用:
|
请求参数
无
请求示例
GET https://{Endpoint}/v1/b2782e6708b8475c993e6064bc456bf8/fl/flow_logs?name=flowlog 响应参数
| 名称 | 参数类型 | 说明 |
|---|---|---|
| id | String |
|
| name | String |
|
| tenant_id | String |
|
| description | String |
|
| resource_type | String |
|
| resource_id | String |
|
| traffic_type | String |
|
| log_group_id | String |
|
| log_topic_id | String |
|
| created_at | String |
|
| updated_at | String |
|
响应示例
{
"flow_logs": [
{
"id": "35868d55-443e-4d5c-90a4-ac618dc45c1a",
"name": "flowlog",
"description": "just a test",
"tenant_id": "b2782e6708b8475c993e6064bc456bf8",
"resource_type": "port",
"resource_id": "05c4052d-8d14-488f-aa00-19fea5a25fde",
"traffic_type": "reject",
"log_group_id": "05c4052d-8d14-488f-aa00-19fea5a25fff",
"log_topic_id": "a9d7dee7-37d2-4cba-a208-a016252aaa63",
"created_at": "2019-01-14T11:03:02",
"updated_at": "2019-01-14T11:03:02"
}
]
} 状态码
请参见状态码。
错误码
请参考错误码。
父主题: 流日志