Queries the stack information of a consumer.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:GetConsumerStack |
get |
*ConsumerGroup
|
None | None |
Request syntax
GET /instances/{instanceId}/consumerGroups/{consumerGroupId}/stack HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The instance ID. |
rmq-cn-tl32upjeb08 |
| consumerGroupId |
string |
Yes |
The consumer group ID. |
GID_TT_TASK |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| clientId |
string |
Yes |
The client ID. |
172.26.76.48@Lqd7dImlp9KJ5V84 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| requestId |
string |
The request ID. |
30F2CBC7-F69D-5D78-9661-0254C9E1FBFA |
| success |
boolean |
Indicates whether the request was successful. |
true |
| data |
object |
The returned data. |
|
| 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> |
The stack information. |
|
|
object |
The consumer stack information. |
||
| thread |
string |
The thread ID. |
123 |
| tracks |
array |
The stack trace information. |
|
|
string |
The stack trace entry. |
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 |
Examples
Success response
JSON format
{
"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"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.