All Products
Search
Document Center

ApsaraMQ for RocketMQ:OnsMessageDetail

Last Updated:Mar 03, 2024

Queries the details of a message.

Operation description

Note API operations provided by Alibaba Cloud are used to manage and query resources of Alibaba Cloud services. We recommend that you integrate these API operations only in management systems. Do not use these API operations in the core system of messaging services. Otherwise, system risks may occur.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the ApsaraMQ for RocketMQ Instance.

MQ_INST_184681981******_BXig0x6A
TopicstringYes

The name of the topic in which the message you want to query is stored.

test-mq_topic
MsgIdstringYes

The ID of the message that you want to query.

1E0578FE110F18B4AAC235C0******

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The ID of the request. This parameter is a common parameter. Each request has a unique ID. You can use this ID to troubleshoot issues.

EAE5BE23-37A1-4354-94D6-E44AE17E****
Dataobject

The data returned.

StoreSizeinteger

The size of the message. Unit: KB.

2
ReconsumeTimesinteger

The number of retries that ApsaraMQ for RocketMQ performed to send the message to consumers.

0
StoreTimestamplong

The timestamp that indicates the point in time when the ApsaraMQ for RocketMQ broker stored the message. Unit: milliseconds.

1570761026708
Bodystring

The string that is obtained after the message body is encrypted by using the Base 64 algorithm.

aGVsbG8=
InstanceIdstring

The ID of the ApsaraMQ for RocketMQ Instance.

MQ_INST_184681981******_BXig0x6A
MsgIdstring

The ID of the message.

1E0578FE110F18B4AAC235C05F2*****
StoreHoststring

The ApsaraMQ for RocketMQ broker that stores the message.

11.220.***.***:10911
Topicstring

The topic to which the message belongs.

test-mq_topic
PropertyListobject []

The attributes of the message.

Valuestring

The value of the attribute.

MSG_REGION
Namestring

The name of the attribute. Valid values:

  • TRACE_ON: indicates whether the trace of the message exists.
  • MSG_REGION: The region ID of the instance to which the topic belongs.
  • __MESSAGE_DECODED_TIME: The time when the message was decoded.
  • __BORNHOST: The IP address of the producer client.
  • UNIQ_KEY: The ID of the message.

For information about the terms that are used in ApsaraMQ for RocketMQ, see Terms .

cn-hangzhou
BornTimestamplong

The timestamp that indicates the point in time when the message was generated. Unit: milliseconds.

1570761026630
BodyCRCinteger

The cyclic redundancy check (CRC) value of the message body.

907060870
BornHoststring

The producer instance that generated the message.

42.120.**.**:64646
BodyStrstring

The information about the message body.

hello

Examples

Sample success responses

JSONformat

{
  "RequestId": "EAE5BE23-37A1-4354-94D6-E44AE17E****",
  "Data": {
    "StoreSize": 2,
    "ReconsumeTimes": 0,
    "StoreTimestamp": 1570761026708,
    "Body": "aGVsbG8=",
    "InstanceId": "MQ_INST_184681981******_BXig0x6A",
    "MsgId": "1E0578FE110F18B4AAC235C05F2*****",
    "StoreHost": "11.220.***.***:10911",
    "Topic": "test-mq_topic",
    "PropertyList": [
      {
        "Value": "MSG_REGION",
        "Name": "cn-hangzhou"
      }
    ],
    "BornTimestamp": 1570761026630,
    "BodyCRC": 907060870,
    "BornHost": "42.120.**.**:64646",
    "BodyStr": "hello"
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history