Mengkueri grup konsumen online yang berlangganan topik tertentu.
Deskripsi operasi
Operasi API yang disediakan oleh Alibaba Cloud digunakan untuk mengelola dan mengkueri sumber daya layanan Alibaba Cloud. Sebaiknya Anda mengintegrasikan operasi API ini hanya di sistem manajemen. Jangan gunakan operasi API ini di sistem inti layanan pesan. Jika tidak, risiko sistem dapat terjadi.
Anda dapat memanggil operasi ini untuk mengkueri grup konsumen online yang berlangganan topik tertentu. Jika semua konsumen dalam suatu grup offline, informasi tentang grup tersebut tidak dikembalikan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mq:QueryTopicSubDetail |
get |
Topic
Topic
|
None |
|
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans yang berisi topik yang ingin Anda kueri. |
MQ_INST_111111111111_DOxxxxxx |
| Topic |
string |
Yes |
Nama topik yang ingin Anda kueri. |
test |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. Parameter ini adalah parameter umum. Setiap permintaan memiliki ID unik. Anda dapat menggunakan ID ini untuk memecahkan masalah. |
87B6207F-2908-42B5-A134-84956DCA**** |
| Data |
object |
Data yang dikembalikan. |
|
| SubscriptionDataList |
object |
||
| SubscriptionDataList |
array<object> |
The information about the online consumer groups that subscribe to the topic. |
|
|
object |
|||
| GroupId |
string |
The ID of the consumer group that subscribes to the topic. |
GID_test |
| MessageModel |
string |
The consumption mode. Valid values:
For more information about consumption modes, see Clustering consumption and broadcasting consumption. |
CLUSTERING |
| SubString |
string |
The expression based on which consumers in the consumer group subscribe to the topic. |
* |
| Online |
string |
Indicates whether the consumer group is online. |
true |
| Topic |
string |
Nama topik. |
test |
Contoh
Respons sukses
JSONformat
{
"RequestId": "87B6207F-2908-42B5-A134-84956DCA****",
"Data": {
"SubscriptionDataList": {
"SubscriptionDataList": [
{
"GroupId": "GID_test",
"MessageModel": "CLUSTERING",
"SubString": "*",
"Online": "true"
}
]
},
"Topic": "test"
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.