All Products
Search
Document Center

OnsTopicSubDetail

Last Updated: Apr 08, 2019

OnsTopicSubDetail

You can call this operation to view the online groups that has subscribed to this topic.

Request parameters

Name Type Required Description
PreventCache Long Yes The parameter that is used for CSRF verification, which can be set to the current system time. Unit: ms
InstanceId String Yes The ID of the instance for the topic that you want to query.
Topic String Yes The topic that you want to query.

Response parameters

Name Type Description
RequestId String A common parameter. Each request has a unique ID.
Data Data The returned data object.

Fields in Data

Name Type Description
Topic String The topic name
SubscriptionDataList List All the online subscription groups.

Fields in SubscriptionDataListItem

Name Type Description
GroupId String The ID of the group that subscribes to the topic.
SubString String The subscription string.
MessageModel String The consumption mode. Valid values:
  • CLUSTERING: clustering subscription.
  • BROADCASTING: broadcasting subscription.

Examples

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