Mengquery langganan grup konsumer.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:GetConsumerGroupSubscription |
get |
*ConsumerGroup
|
None | None |
Sintaks permintaan
GET /instances/{instanceId}/consumerGroups/{consumerGroupId}/subscriptions/{topicName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
ID instans. |
rmq-cn-uqm32kqyy11 |
| consumerGroupId |
string |
Yes |
ID grup konsumer yang langganannya ingin Anda query. |
common_dev |
| topicName |
string |
Yes |
Nama topik yang dilanggani oleh grup konsumer. |
mq003 |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
Tidak ada parameter yang diperlukan.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| requestId |
string |
ID permintaan. |
157DF7D4-53FB-58C6-BEBC-A9400E7EF68A |
| success |
boolean |
Menunjukkan apakah permintaan berhasil. |
true |
| data |
array<object> |
Data yang dikembalikan. |
|
|
array<object> |
Langganan. |
||
| subscriptionDTO |
object |
Detail langganan. |
|
| consumerGroupId |
string |
The consumer group ID. |
GID_inspector_group |
| topicName |
string |
The topic to which the consumer group subscribes. |
Topic_normal_inspector |
| messageModel |
string |
The consumption mode of the consumer group. Valid values:
|
BROADCASTING |
| subscriptionStatus |
string |
The subscription status. Valid values:
|
ONLINE |
| filterExpression |
string |
The filter expression. |
* |
| filterExpressionType |
string |
The type of the filter expression. Valid values:
|
UNSPECIFIED |
| connectionDTO |
object |
Detail koneksi. |
|
| clientId |
string |
The client ID. |
192.168.50.191@19908#-2093249153#1534215565#40385215750900 |
| hostname |
string |
The host name. |
nginx |
| egressIp |
string |
The public IP address of the host. |
xx.xx.xx.xx |
| language |
string |
The language used by the client. |
zh |
| version |
string |
The client version. |
1.0.0 |
| messageModel |
string |
The consumption mode of the consumer group. Valid values:
|
BROADCASTING |
| code |
string |
Kode kesalahan. |
Instance.NotFound |
| message |
string |
Pesan kesalahan. |
Parameter instanceId is mandatory for this action . |
| httpStatusCode |
integer |
Kode respons. |
200 |
| dynamicCode |
string |
Kode kesalahan dinamis. |
InstanceId |
| dynamicMessage |
string |
Pesan kesalahan dinamis. |
instanceId |
Contoh
Respons sukses
JSONformat
{
"requestId": "157DF7D4-53FB-58C6-BEBC-A9400E7EF68A",
"success": true,
"data": [
{
"subscriptionDTO": {
"consumerGroupId": "GID_inspector_group",
"topicName": "Topic_normal_inspector",
"messageModel": "BROADCASTING",
"subscriptionStatus": "ONLINE",
"filterExpression": "*",
"filterExpressionType": "UNSPECIFIED"
},
"connectionDTO": {
"clientId": "192.168.50.191@19908#-2093249153#1534215565#40385215750900",
"hostname": "nginx",
"egressIp": "xx.xx.xx.xx",
"language": "zh",
"version": "1.0.0",
"messageModel": "BROADCASTING"
}
}
],
"code": "Instance.NotFound",
"message": "Parameter instanceId is mandatory for this action .",
"httpStatusCode": 200,
"dynamicCode": "InstanceId",
"dynamicMessage": "instanceId"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.