本接口用于获取日志主题的消费组列表。
GET /consumergroups?topic_id=xxxx-xx-xx-xx-xxxxxxxx HTTP/1.1
Host: <Region>.cls.tencentyun.com
Authorization: <AuthorizationString>
除公共头部外,无特殊请求头部。
字段名 | 类型 | 位置 | 是否必须 | 含义 |
---|---|---|---|---|
topic_id | string | query | 是 | 查询日志主题的 ID |
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 123
{
"consumer_groups":[
{
"consumer_group":"cls-demo_consumer_group",
"order":true,
"timeout":3600
}
]
}
除公共响应头部外,无特殊响应头部。
字段名 | 类型 | 是否必有 | 含义 |
---|---|---|---|
consumer_group | string | 是 | 消费组名称 |
timeout | int | 是 | 消费组超时时间,超过 timeout 秒后未收到任何心跳,系统会删除消费组 |
order | bool | 是 | 是否按顺序消费 |
参见 错误码。
本页内容是否解决了您的问题?