Mengkueri informasi stack tentang konsumen.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:GetConsumerStack |
get |
*ConsumerGroup
|
None | None |
Sintaks permintaan
GET /instances/{instanceId}/consumerGroups/{consumerGroupId}/stack HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
ID instans. |
rmq-cn-tl32upjeb08 |
| consumerGroupId |
string |
Yes |
ID kelompok konsumen. |
GID_TT_TASK |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| clientId |
string |
Yes |
ID klien. |
172.26.76.48@Lqd7dImlp9KJ5V84 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The result. |
||
| requestId |
string |
The request ID. |
30F2CBC7-F69D-5D78-9661-0254C9E1FBFA |
| success |
boolean |
Indicates whether the request was successful. |
true |
| data |
object |
The data returned. |
|
| regionId |
string |
The region ID. |
cn-hangzhou |
| instanceId |
string |
The instance ID. |
rmq-cn-7e22ody**** |
| consumerGroupId |
string |
The ID of the consumer group. |
CID-TEST |
| stacks |
array<object> |
Stack Information. |
|
|
object |
Consume stack information. |
||
| thread |
string |
Thread id. |
123 |
| tracks |
array |
Stack Information. |
|
|
string |
Stack Information. |
xxx |
|
| code |
string |
The error code. |
Topic.NotFound |
| message |
string |
The error message. |
The instance cannot be found. |
| 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": "30F2CBC7-F69D-5D78-9661-0254C9E1FBFA",
"success": true,
"data": {
"regionId": "cn-hangzhou",
"instanceId": "rmq-cn-7e22ody****",
"consumerGroupId": "CID-TEST",
"stacks": [
{
"thread": "123",
"tracks": [
"xxx"
]
}
]
},
"code": "Topic.NotFound",
"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.