全部产品
Search
文档中心

云原生数据库 PolarDB:DescribeConsumerGroups - 查询消费者组列表

更新时间:Apr 28, 2026

查询消费者组列表

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

POST  HTTP/1.1

请求参数

名称

类型

必填

描述

示例值

GwClusterId

string

网关实例 ID。

pg-xxxxxxx

ConsumerGroupId

string

用户组 ID。

cg-xxxxxxxx

PageSize

integer

每页记录数,取值范围如下:

  • 30

  • 50

  • 100

默认值为 30。

30

PageNumber

integer

查询页码,默认值为 1。

1

RegionId

string

地域 ID。

cn-beijing

返回参数

名称

类型

描述

示例值

object

Schema of Response

RequestId

string

Id of the request

24A1990B-4F6E-482B-B8CB-75C612******

TotalRecordCount

integer

总记录数。

1

PageRecordCount

integer

本页记录数。

30

PageNumber

integer

页码。

1

PageSize

integer

每页记录数,取值为 30、50 或 100。 默认值为 30。

30

Items

array<object>

用户组列表

object

用户组对象

IsDefault

string

是否默认组,枚举值:

  • 0

  • 1

0

ConsumerGroupId

string

用户组 ID。

cg-xxxxxxxx

ConsumerGroupName

string

用户组名称

test

NickName

string

用户组昵称

test

GmtCreated

string

创建时间

2026-01-28T09:56:03+08:00

GmtModified

string

更新时间

2026-01-04T16:09:29+08:00

AllowedModels

string

支持的模型列表

"[]"

示例

正常返回示例

JSON格式

{
  "RequestId": "24A1990B-4F6E-482B-B8CB-75C612******",
  "TotalRecordCount": 1,
  "PageRecordCount": 30,
  "PageNumber": 1,
  "PageSize": 30,
  "Items": [
    {
      "IsDefault": "0",
      "ConsumerGroupId": "cg-xxxxxxxx",
      "ConsumerGroupName": "test",
      "NickName": "test",
      "GmtCreated": "2026-01-28T09:56:03+08:00",
      "GmtModified": "2026-01-04T16:09:29+08:00",
      "AllowedModels": "\"[]\""
    }
  ]
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情