Mengambil informasi koneksi untuk klien dalam grup konsumen yang ditentukan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:ListConsumerConnections |
list |
*ConsumerGroup
|
None | None |
Sintaks permintaan
GET /instances/{instanceId}/consumerGroups/{consumerGroupId}/connections HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
ID instans. |
rmq-cn-uax32mf9h1f |
| consumerGroupId |
string |
Yes |
ID grup konsumen. |
GID_TEST_STOCK_OPEND_GW |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| topicName |
string |
No |
Nama topik lite. |
test1 |
| liteTopicName |
string |
No |
Nama topik Lite MSMQ. |
abc |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Hasil |
||
| requestId |
string |
ID permintaan. |
A3620115-6F1F-5CFB-AA3F-BBD4853B2EC4 |
| success |
boolean |
Menunjukkan apakah permintaan berhasil. |
true |
| data |
object |
Data yang dikembalikan. |
|
| regionId |
string |
ID region. |
cn-hangzhou |
| instanceId |
string |
ID instans. |
rmq-cn-7e22ody**** |
| consumerGroupId |
string |
ID grup konsumen. |
CID-TEST |
| connections |
array<object> |
Daftar koneksi klien. |
|
|
object |
Daftar koneksi klien. |
||
| 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 |
Kode kesalahan. |
MissingPageNumber |
| message |
string |
Pesan kesalahan. |
The instance cannot be found. |
| httpStatusCode |
integer |
Kode status HTTP. |
200 |
| dynamicCode |
string |
Kode kesalahan dinamis. |
InstanceId |
| dynamicMessage |
string |
Pesan kesalahan dinamis. |
instanceId |
Contoh
Respons sukses
JSONformat
{
"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"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.