Querying a Specified Consumer Group
Function
This API is used to query a specified consumer group.
Calling Method
For details, see Calling APIs.
URI
GET /v2/{engine}/{project_id}/instances/{instance_id}/groups/{group}
Parameter | Mandatory | Type | Description |
|---|---|---|---|
engine | Yes | String | Engine. |
project_id | Yes | String | Project ID. For details, see Obtaining a Project ID. |
instance_id | Yes | String | Instance ID. |
group | Yes | String | Filter query by consumer group name. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter | Type | Description |
|---|---|---|
group | group object | Consumer group information. |
Parameter | Type | Description |
|---|---|---|
state | String | Definition: Consumer group status. Range: |
createdAt | Long | Definition Creation time. Range N/A |
group_id | String | Definition Consumer group name. Range N/A |
coordinator_id | Integer | Definition Coordinator ID. Range N/A |
assignment_strategy | String | Definition Partition assignment policy. Range N/A |
group_desc | String | Definition Consumer group description. Range N/A |
Example Requests
GET https://{endpoint}/v2/{engine}/{project_id}/instances/{instance_id}/groups/{group} Example Responses
Status code: 200
Successful
{
"group" : {
"state" : "EMPTY",
"createdAt" : 1765333498068,
"group_id" : "test-consumer-group",
"coordinator_id" : 0,
"assignment_strategy" : "",
"group_desc" : "wefewf"
}
} Status Codes
Status Code | Description |
|---|---|
200 | Successful |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.

