Queries a specific dead-letter message by its message ID. The returned information includes the storage time, message body, key, and tag.
Operation description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mq:QueryDLQMessage |
get |
Group
Group
|
None |
|
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MsgId |
string |
Yes |
The ID of the message to query. This is the message ID. |
0BC16699165C03B925DB8A404E2D**** |
| GroupId |
string |
Yes |
The group ID of the consumer. |
GID_test_group_id |
| InstanceId |
string |
No |
The ID of the instance to which the message belongs. |
MQ_INST_111111111111_DOxxxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. This is a common parameter. Each request has a unique ID. |
A07E3902-B92E-44A6-B6C5-6AA111111**** |
| Data |
object |
The query results. |
|
| StoreSize |
integer |
The message size. Unit: KB. |
407 |
| ReconsumeTimes |
integer |
The number of times the message has been retried. |
1 |
| StoreTimestamp |
integer |
The timestamp when the message was stored on the server-side. Unit: milliseconds. |
1570761026708 |
| InstanceId |
string |
The instance ID. |
MQ_INST_111111111111_DOxxxxxx |
| MsgId |
string |
The message ID. |
0BC16699165C03B925DB8A404E2D**** |
| StoreHost |
string |
The server instance that stores the message. |
11.220.***.***:10911 |
| Topic |
string |
The topic of the message. |
test-mq_topic |
| PropertyList |
object |
||
| MessageProperty |
array<object> |
The list of message attributes. |
|
|
object |
|||
| Value |
string |
The value of the message attribute. |
TagA |
| Name |
string |
The message attribute. Valid values:
For more information, see Terms. |
TAGS |
| BornTimestamp |
integer |
The timestamp when the message was generated. Unit: milliseconds. |
1570761026630 |
| BodyCRC |
integer |
The cyclic redundancy check (CRC) value of the message body. |
914112295 |
| BornHost |
string |
The producer instance that generated the message. |
42.120.**.**:64646 |
Examples
Success response
JSON format
{
"RequestId": "A07E3902-B92E-44A6-B6C5-6AA111111****",
"Data": {
"StoreSize": 407,
"ReconsumeTimes": 1,
"StoreTimestamp": 1570761026708,
"InstanceId": "MQ_INST_111111111111_DOxxxxxx",
"MsgId": "0BC16699165C03B925DB8A404E2D****",
"StoreHost": "11.220.***.***:10911",
"Topic": "test-mq_topic",
"PropertyList": {
"MessageProperty": [
{
"Value": "TagA",
"Name": "TAGS"
}
]
},
"BornTimestamp": 1570761026630,
"BodyCRC": 914112295,
"BornHost": "42.120.**.**:64646"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.