All Products
Search
Document Center

OnsGroupSubDetail

Last Updated: Apr 08, 2019

OnsGroupSubDetail

You can call this operation to view the topics to which a group has subscribed. No data can be queried if the group is offline.

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 instance ID of the group ID you want to query.
GroupId String Yes The group ID 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
GroupId String The group ID that you want to query.
Online Boolean Whether the group ID is online.
MessageModel String The consumption mode. Valid values:
  • CLUSTERING: clustering subscription.
  • BROADCASTING: broadcasting subscription.
SubscriptionDataList List No data can be queried if the group is offline.

Fields in SubscriptionDataListItem

Name Type Description
Topic String The topic.
SubString String The subscription string.

Examples

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