列出 Kafka 消费组-ListUKafkaConsumers

列出 Kafka 消费组

Request Parameters

Parameter nameTypeDescriptionRequired
Regionstring地域。 参见 地域和可用区列表Yes
Zonestring可用区。参见 可用区列表Yes
ProjectIdstring项目 ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList 接口No
ClusterInstanceIdstringKafka 集群 IDYes

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
Groupsarray消费者组列表No

Request Example

https://api.ucloud.cn/?Action=ListUKafkaConsumers
&Region=befZCCUI
&Zone=boqlDiIv
&ProjectId=aTyyvWoG
&ClusterInstanceId=yUHbmMXE
&ConsumerGroup=LgcijwcM
&Type=ZK

Response Example

{
    "Action": "ListUKafkaConsumersResponse",
    "RetCode": 0,
    "Groups": [
        {
            "NumOfTopics": 1,
            "GroupName": "your_group",
            "Type": "ZK"
        },
        {
            "NumOfTopics": 2,
            "GroupName": "group1",
            "Type": "ZK"
        },
        {
            "NumOfTopics": 1,
            "GroupName": "console-consumer-15031",
            "Type": "KF"
        },
        {
            "NumOfTopics": 7,
            "GroupName": "c-group-no.1",
            "Type": "KF"
        },
        {
            "NumOfTopics": 1,
            "GroupName": "console-consumer-49808",
            "Type": "KF"
        },
        {
            "NumOfTopics": 7,
            "GroupName": "console-consumer-66549",
            "Type": "KF"
        },
        {
            "NumOfTopics": 1,
            "GroupName": "console-consumer-27520",
            "Type": "KF"
        },
        {
            "NumOfTopics": 1,
            "GroupName": "console-consumer-6519",
            "Type": "KF"
        }
    ]
}