Mendaftar hubungan langganan untuk kelompok konsumen.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:ListConsumerGroupSubscriptions |
list |
*ConsumerGroup
|
None | None |
Sintaks permintaan
GET /instances/{instanceId}/consumerGroups/{consumerGroupId}/subscriptions HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
ID instans ApsaraMQ for RocketMQ. |
rmq-cn-tl32wwz1r05 |
| consumerGroupId |
string |
Yes |
ID kelompok konsumen yang hubungan langganannya ingin Anda kueri. |
PRINT_RETRY_CONSUMER |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| topicName |
string |
No |
Nama topik. Jika Anda tidak menentukan parameter ini, semua hubungan langganan akan dikueri. |
topic_test |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Result<List> |
||
| requestId |
string |
The request ID. |
5F4D9D5F-625B-59FF-BD4F-DA8284575DB4 |
| success |
boolean |
Indicates whether the request was successful. |
true |
| data |
array<object> |
The data returned. |
|
|
object |
The list of subscription relationships for the consumer group. |
||
| consumerGroupId |
string |
The ID of the consumer group. |
CID-TEST |
| topicName |
string |
The topic to which the consumer group subscribes. |
topic_test |
| messageModel |
string |
The consumption mode of the consumer group.
|
CLUSTERING |
| subscriptionStatus |
string |
The subscription status.
|
ONLINE |
| filterExpression |
string |
The filter expression. |
* |
| filterExpressionType |
string |
The type of the filter expression.
|
SQL |
| topicCreated |
boolean |
Indicates whether the topic is created. |
true |
| consistency |
boolean |
The consistency of the subscription relationship.
|
true |
| code |
string |
The error code. |
MissingInstanceId |
| message |
string |
The error message. |
Parameter instanceId is mandatory for this action . |
| httpStatusCode |
integer |
The HTTP status code. |
200 |
| dynamicCode |
string |
The dynamic error code. |
InstanceId |
| dynamicMessage |
string |
The dynamic error message. |
InstanceId |
Contoh
Respons sukses
JSONformat
{
"requestId": "5F4D9D5F-625B-59FF-BD4F-DA8284575DB4",
"success": true,
"data": [
{
"consumerGroupId": "CID-TEST",
"topicName": "topic_test",
"messageModel": "CLUSTERING",
"subscriptionStatus": "ONLINE",
"filterExpression": "*",
"filterExpressionType": "SQL",
"topicCreated": true,
"consistency": true
}
],
"code": "MissingInstanceId",
"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.