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

Debugging

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

GetConsumerList.

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.

ConsumerVO
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 attached to the consumer group.

TagVO
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.

Examples

Sample requests

http(s)://[Endpoint]/?Action=GetConsumerList
&RegionId=cn-hangzhou
&InstanceId=alikafka_post-cn-v0h18sav****
&<Common request parameters>

Sample success responses

XML format

<GetConsumerListResponse>
      <RequestId>808F042B-CB9A-4FBC-9009-00E7DDB6****</RequestId>
      <Message>operation success.</Message>
      <Code>200</Code>
      <ConsumerList>
            <ConsumerVO>
                  <InstanceId>alikafka_post-cn-v0h18sav****</InstanceId>
                  <ConsumerId>CID_c34a6f44915f80d70cb42c4b14***</ConsumerId>
                  <RegionId>cn-hangzhou</RegionId>
                  <Tags>
            </Tags>
                  <Remark>test</Remark>
            </ConsumerVO>
      </ConsumerList>
      <Success>true</Success>
</GetConsumerListResponse>

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.