Retrieves the details of a specific message.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:GetMessageDetail |
get |
*Topic
|
None | None |
Request syntax
GET /instances/{instanceId}/topics/{topicName}/messages/{messageId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The ID of the instance. |
rmq-cn-lbj31fs790d |
| topicName |
string |
Yes |
The name of the topic. |
flink_test |
| messageId |
string |
Yes |
The ID of the message. |
0A792FDB001F7591083D30ADB1DA11D5 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Result |
||
| requestId |
string |
The ID of the request. |
FAEBD71F-E839-52F9-BD7B-8F1290525841 |
| success |
boolean |
Indicates whether the request was successful. |
true |
| data |
object |
The data that is returned. |
|
| regionId |
string |
The ID of the region. |
cn-hangzhou |
| instanceId |
string |
The ID of the instance. |
rmq-cn-7e22ody**** |
| topicName |
string |
The name of the topic. |
topic_test |
| messageId |
string |
The ID of the message. |
01BE87E485F0C7808C04543CAF00000001 |
| bornTime |
string |
The time when the message was generated. |
2023-03-22 12:17:08 |
| storeTime |
string |
The time when the message was stored. |
2023-03-22 12:17:08 |
| body |
string |
The body of the message. |
{} |
| bodySize |
integer |
The size of the message body. |
123 |
| bornHost |
string |
The host that generated the message. |
xxx.xx.xxx.xx |
| storeHost |
string |
The host that stored the message. |
xxx.xx.xxx.xx |
| messageType |
string |
The type of the message. |
NORMAL |
| messageTag |
string |
The tags of the message. |
xx |
| messageGroup |
string |
The sharding key. This parameter is returned only for ordered messages. |
xx |
| messageKeys |
array |
The business keys of the message. |
|
|
string |
A business key. |
xx |
|
| userProperties |
object |
The user-defined properties of the message. |
|
|
string |
A user-defined property. |
xxx |
|
| systemProperties |
object |
The default system properties of the message. |
|
|
string |
A default system property. |
xx |
|
| liteTopicName |
string |
The name of the lightweight topic. |
abc |
| code |
string |
The error code. |
Topic.NotFound |
| 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 |
Examples
Success response
JSON format
{
"requestId": "FAEBD71F-E839-52F9-BD7B-8F1290525841",
"success": true,
"data": {
"regionId": "cn-hangzhou",
"instanceId": "rmq-cn-7e22ody****",
"topicName": "topic_test",
"messageId": "01BE87E485F0C7808C04543CAF00000001",
"bornTime": "2023-03-22 12:17:08",
"storeTime": "2023-03-22 12:17:08",
"body": "{}",
"bodySize": 123,
"bornHost": "xxx.xx.xxx.xx",
"storeHost": "xxx.xx.xxx.xx",
"messageType": "NORMAL",
"messageTag": "xx",
"messageGroup": "xx",
"messageKeys": [
"xx"
],
"userProperties": {
"key": "xxx"
},
"systemProperties": {
"key": "xx"
},
"liteTopicName": "abc"
},
"code": "Topic.NotFound",
"message": "Parameter instanceId is mandatory for this action .",
"httpStatusCode": 200,
"dynamicCode": "InstanceId",
"dynamicMessage": "instanceId"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.