Retrieves the connection information for clients in a specified consumer group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:ListConsumerConnections |
list |
*ConsumerGroup
|
None | None |
Request syntax
GET /instances/{instanceId}/consumerGroups/{consumerGroupId}/connections HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The instance ID. |
rmq-cn-uax32mf9h1f |
| consumerGroupId |
string |
Yes |
The consumer group ID. |
GID_TEST_STOCK_OPEND_GW |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| topicName |
string |
No |
The name of the lite topic. |
test1 |
| liteTopicName |
string |
No |
The name of the Lite MSMQ topic. |
abc |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Result |
||
| requestId |
string |
The request ID. |
A3620115-6F1F-5CFB-AA3F-BBD4853B2EC4 |
| success |
boolean |
Indicates whether the request was successful. |
true |
| data |
object |
The returned data. |
|
| regionId |
string |
The region ID. |
cn-hangzhou |
| instanceId |
string |
The instance ID. |
rmq-cn-7e22ody**** |
| consumerGroupId |
string |
The consumer group ID. |
CID-TEST |
| connections |
array<object> |
The list of client connections. |
|
|
object |
The list of client connections. |
||
| clientId |
string |
The client ID. |
172.17.135.197@17392#1936705963#551717232#9873695589062458 |
| hostname |
string |
The client hostname. |
vos |
| egressIp |
string |
The host IP address or Internet egress IP address. |
xx.xx.xx.xx |
| language |
string |
The client language. |
java |
| version |
string |
The client version. |
1.0 |
| messageModel |
string |
The consumption mode of the consumer:
|
BROADCASTING |
| code |
string |
The error code. |
MissingPageNumber |
| message |
string |
The error message. |
The instance cannot be found. |
| httpStatusCode |
integer |
The HTTP status code. |
200 |
| dynamicCode |
string |
The dynamic error code. |
InstanceId |
| dynamicMessage |
string |
The dynamic error message. |
instanceId |
Examples
Success response
JSON format
{
"requestId": "A3620115-6F1F-5CFB-AA3F-BBD4853B2EC4",
"success": true,
"data": {
"regionId": "cn-hangzhou",
"instanceId": "rmq-cn-7e22ody****",
"consumerGroupId": "CID-TEST",
"connections": [
{
"clientId": "172.17.135.197@17392#1936705963#551717232#9873695589062458",
"hostname": "vos",
"egressIp": "xx.xx.xx.xx",
"language": "java",
"version": "1.0",
"messageModel": "BROADCASTING"
}
]
},
"code": "MissingPageNumber",
"message": "The instance cannot be found.",
"httpStatusCode": 200,
"dynamicCode": "InstanceId",
"dynamicMessage": "instanceId"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.