Skip to Content
RMQ Message Queue(URocketMQ)QueryURocketMQMessageByTopic

QueryURocketMQMessageByTopic - QueryURocketMQMessageByTopic

Overview

Query messages within a certain time range based on Topic.

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is QueryURocketMQMessageByTopic.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
BeginintStart Time Unix SecondsYes
EndintEnd TimeYes
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 listNo

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=QueryURocketMQMessageByTopic &Region=cn-zj &ProjectId=LRsgyvbM &ServiceId=aUMFIPvT &TopicId=geZjcTRm &Begin=6 &End=6

Response Example

{ "Action": "QueryURocketMQMessageByTopicResponse", "Message": "ouPqwKpk", "MessageList": [ { "MsgId": "yBMTthbf", "Properties": "lUCCvlZf", "StoreTimestamp": 6, "Topic": "YYsBgRvA" } ], "RetCode": 0 }