cls_describe_topics
Query and filter log topics and metric topics stored in Tencent Cloud Log Service (CLS) using parameters like name, type, and region.
Instructions
查询日志主题列表。日志主题是日志数据的基本存储单元。
参数说明
offset: 分页偏移量,默认 0
limit: 每页条数,默认 20
logset_id: 按日志集 ID 过滤(可选)
topic_name: 按日志主题名称过滤(可选,模糊匹配)
biz_type: 主题类型过滤(可选):0 表示日志主题,1 表示指标主题(时序数据主题)。不传则返回所有类型。当需要查询指标主题时,请传入 biz_type=1
region: 地域(可选),如 ap-guangzhou、na-ashburn,不传则使用默认地域,可通过 cls_describe_regions 查询所有可用地域
返回信息
日志主题 ID、名称、所属日志集
主题类型(日志主题/指标主题)
存储类型、保存周期、分区数
采集和索引状态
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | No | ||
| limit | No | ||
| logset_id | No | ||
| topic_name | No | ||
| biz_type | No | ||
| region | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |