Queries the consumer groups in a Message Queue for Apache Kafka instance.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes GetConsumerList

The operation that you want to perform. Set the value to


InstanceId String Yes alikafka_post-cn-v0h18sav****

The ID of the Message Queue for Apache Kafka instance whose consumer groups you want to query.

RegionId String Yes cn-hangzhou

The ID of the region where the instance resides.

Response parameters

Parameter Type Example Description
Code Integer 200

The HTTP status code. If 200 is returned, the request is successful.

ConsumerList Array of ConsumerVO

The information about the consumer groups.

ConsumerId String CID_c34a6f44915f80d70cb42c4b14***

The name of the consumer group.

InstanceId String alikafka_post-cn-v0h18sav****

The ID of the instance.

RegionId String cn-hangzhou

The ID of the region where the instance resides.

Remark String test

The description of the consumer group.

Tags Array of TagVO

The tags added to the consumer group.

Key String test

The key of the tag.

Value String test

The value of the tag.

Message String operation success.

The response message.

RequestId String 808F042B-CB9A-4FBC-9009-00E7DDB6****

The ID of the request.

Success Boolean true

Indicates whether the request is successful.


Sample requests

&<Common request parameters>

Sample success responses

XML format

      <Message>operation success.</Message>

JSON format

    "RequestId": "808F042B-CB9A-4FBC-9009-00E7DDB6****",
    "Message": "operation success.",
    "Code": 200,
    "ConsumerList": {
        "ConsumerVO": [
                "InstanceId": "alikafka_post-cn-v0h18sav****",
                "ConsumerId": "CID_c34a6f44915f80d70cb42c4b14***",
                "RegionId": "cn-hangzhou",
                "Tags": {
                    "TagVO": []
                "Remark": "test"
    "Success": true

Error codes

For a list of error codes, visit the API Error Center.