Skip to Content
RMQ Message Queue(URocketMQ)QueryURocketMQMessageByKey

QueryURocketMQMessageByKey - QueryURocketMQMessageByKey

Overview

Query the message list based on Topic and Key

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is QueryURocketMQMessageByKey.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 GetProjectList API Yes
ServiceIdstringService IDYes
KeystringMessage Key (Custom Key when sending messages to a Topic)Yes
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[MessageBaseInfo]message listYes

Data Model

MessageBaseInfo

Field NameTypeDescription InformationRequired
PropertiesMessagePropertiesMessage AttributeNo
MsgIdstringMessageIDNo
TopicstringTopic NameNo
StoreTimestampintSave TimestampNo

MessageProperties

Field NameTypeDescription InformationRequired
TAGSstringTag of MessageYes
KEYSstringKey of the MessageYes

Example

Request Example

https://api.surfercloud.com/?Action=QueryURocketMQMessageByKey &Region=cn-zj &ProjectId=yrOlxXJt &ServiceId=diLaCmkF &TopicId=Bqknnywq &Key=wIafuUhk

Response Example

{ "Action": "QueryURocketMQMessageByKeyResponse", "Message": "hytmeMHy", "MessageList": [ { "MsgId": "srzxKsNQ", "Properties": "tyTRrRcn", "StoreTimestamp": 8, "Topic": "JqggGOym" } ], "RetCode": 0 }