Mengkueri topik yang dilanggan oleh kelompok. Kueri akan gagal jika instans konsumen untuk ID kelompok yang ditentukan sedang offline.
Deskripsi operasi
The OpenAPI provided by Alibaba Cloud is a management API used to manage and query resources of Alibaba Cloud services. We recommend that you integrate OpenAPI only in management data links. Do not use OpenAPI in core data links for sending and receiving messages. This may pose risks to the data links.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mq:QueryGroupSubDetail |
get |
Group
Group
|
None |
|
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans tempat kelompok berada. |
MQ_INST_111111111111_DOxxxxxx |
| GroupId |
string |
Yes |
ID kelompok yang ingin Anda kueri. |
GID_test_group_id |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
A common parameter. The ID of the request. Each request has a unique ID. You can use this ID to troubleshoot issues. |
3364E875-013B-442A-BC3C-C1A84DC6**** |
| Data |
object |
The returned Data object. |
|
| SubscriptionDataList |
object |
||
| SubscriptionDataList |
array<object> |
The topics to which consumers in the consumer group subscribe. If all consumers in the specified group are offline, no topics are returned. |
|
|
object |
|||
| SubString |
string |
The expression based on which consumers in the consumer group subscribe to the topic. |
* |
| Topic |
string |
The name of the topic to which consumers in the consumer group subscribe. |
test-mq_topic |
| GroupId |
string |
The ID of the group that you want to query. |
GID_test_group_id |
| MessageModel |
string |
The consumption pattern. Valid values:
For more information about consumption patterns, see Clustering consumption and broadcasting consumption. |
CLUSTERING |
| Online |
boolean |
Indicates whether the consumer is online. |
true |
Contoh
Respons sukses
JSONformat
{
"RequestId": "3364E875-013B-442A-BC3C-C1A84DC6****",
"Data": {
"SubscriptionDataList": {
"SubscriptionDataList": [
{
"SubString": "*",
"Topic": "test-mq_topic"
}
]
},
"GroupId": "GID_test_group_id",
"MessageModel": "CLUSTERING",
"Online": true
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.