Skip to Content
RMQ Message Queue(URocketMQ)QueryURocketMQMessageByID

QueryURocketMQMessageByID - QueryURocketMQMessageByID

Overview

Get the details of a Message with a specified ID

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is QueryURocketMQMessageByID.Yes
PublicKeystringThe user’s public key can be obtained from Console Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See Region and Availability Zone List Yes
ProjectIdstringProject ID. Please refer to the GetProjectList API Yes
ServiceIdstringService IDYes
MsgIdstringMessage IDYes
TopicNamestringTopic NameYes

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
MessageListarray[MessageDetail]Message DetailsNo

Data Model

MessageDetail

Field NameTypeDescription InformationRequired
PropertiesMessagePropertiesMessage AttributeYes
TopicstringTopic NameYes
MsgIdstringMessage’s IDYes
StoreTimestampintMessage’s landing time, Unix millisecondsYes
MessageBodystringBody of the MessageYes

MessageProperties

Field NameTypeDescription InformationRequired
TAGSstringTag of MessageYes
KEYSstringKey of the MessageYes

Example

Request Example

https://api.surfercloud.com/?Action=QueryURocketMQMessageByID &Region=cn-zj &ProjectId=TbKkMNBW &ServiceId=lDRInGeU &GroupName=OpqwDJnj &MsgId=BIWmWMwr

Response Example

{ "Action": "QueryURocketMQMessageByIDResponse", "Message": "XNnTsUzD", "MessageList": [ { "MessageBody": "dtPXPyXq", "MsgId": "mTpiCAmy", "Properties": {}, "StoreTimestamp": 4, "Topic": "fwiLfLtZ" } ], "RetCode": 0 }