All Products
Document Center


Last Updated: Apr 01, 2019


You can call this operation to query a list of all topics under your account.


This operation is used to generate a resource list rather than check information.

Request parameters

Name Type Required Description
PreventCache Long Yes The parameter used for CSRF verification, which can be set to the current system time. Unit: ms
InstanceId String No The ID of the instance.
Topic String No The parameter to be set when you query specific topics. Otherwise, all topics are queried.

Response parameters

Name Type Description
RequestId String A common parameter. Each request is unique.
HelpUrl String A help link.
Data List(PublishInfoDo) The list of all published topics.

Fields in PublishInfoDo

Name Type Description
id Long The topic ID.
topic String The name of the topic.
owner String The ID of the topic owner, which is the Alibaba Cloud UID.
relation Integer The relation ID. Valid values:
  • 1: owner
  • 2: publishable
  • 4: subscribable
  • 6: publishable and subscribable
relationName String The name of the relation, for example, owner, publishable, subscribable, and publishable and subscribable.
MessageType Integer The type of the message. Valid values:
  • 0: normal message
  • 1: partitionally ordered message
  • 2: globally ordered message
  • 4: transactional message
  • 5: scheduled/delayed message
InstanceId String The ID of the instance.
IndependentNaming Boolean Indicates whether namespaces are available. Valid values:
  • false: No separate namespace provided, so that each Topic name and Group ID must be unique either within an instance or across instances.
  • true: Separate namespace is provided. Each Topic name and Group ID must be unique within the same instance, but can be the same across instances.
updateTime Long The update time.
Remark String Remarks.


For more information about sample codes, see API sample code and endpoints.