This topic describes how to manage topics in the MNS console.

Prerequisites

The following operations are performed:

Create a topic

To create a topic named MyTopic in the MNS console, perform the following steps:

  1. Log on to the MNS console.
  2. Select a region in the top navigation bar.
  3. In the left-side navigation pane, click Topics.
  4. In the upper-right corner of the Topics page, click Create Topic.
  5. In the Create Topicdialog box, enter a topic name and a maximum message size, and then click OK.

Modify a topic

To modify MyTopic, perform the following steps:

  1. In the left-side navigation pane, click Topics.
  2. On the Topics page, find MyTopic. In the Action column, click Configure.
  3. In the Configure dialog box, modify the parameter settings and click OK.

Query the information of a topic

To query the information of MyTopic, perform the following steps:

  1. In the left-side navigation pane, click Topics.
  2. On the Topics page of the console, you can view the parameter settings of MyTopic.Query the information of a topic
  3. Find MyTopic. In the Action column, click Configure.
  4. In the Configure dialog box, view the parameter settings of MyTopic.

Query a topic list

  1. In the left-side navigation pane, click Topics.
  2. Go to the Topics page of the console.
  3. Enter a keyword such as My in the search bar next to Topic Name, and click Search. All topics that match the keyword are displayed.

View the endpoint information

To view the endpoint information, perform the following steps:

  1. In the left-side navigation pane, click Topics.
  2. On the Topics page of the console, click Get Endpoint in the upper-right corner of the page.
  3. In the Get Endpoint dialog box, view the endpoint information in the Internet Endpoint and Intranet Endpoint fields.
    Note You can use HTTP or HTTPS to access the endpoints.

Delete a topic

  1. In the left-side navigation pane, click Topics.
  2. On the Topics page of the console, find MyTopic. In the Action column, click Delete.
  3. In the Prompt message, click OK.

Create a subscription.

To receive messages from a topic, you must create a subscription. To create a subscription named MySubscription, perform the following steps:

  1. In the left-side navigation pane, click Topics.
  2. On the Topics page of the console, find MyTopic. In the Action column, click Subscription List.
  3. In the upper-right corner of the section that appears, click Subscribe.Create a subscription.
  4. In the Subscribe dialog box, set the parameters, and click OK.
    You can select a Push Type from the following push types:

Query the subscription list of a topic

  1. In the left-side navigation pane, click Topics.
  2. On the Topics page, find MyTopic. In the Action column, click Subscription List to view all subscriptions of MyTopic.
  3. Optional. Enter a keyword such as My in the search bar next to Subscription Name, and click Search. All subscriptions that match the keyword are displayed.

Query the information of a subscription

  1. In the left-side navigation pane, click Topics.
  2. On the Topics page, find MyTopic. In the Action column, click Subscription List to view the subscription information of MyTopic.
  3. Click Configuration in the Action column.
  4. In the Configuration dialog box, view the parameter settings of MySubscription.

Modify the notification strategy of a subscription

  1. In the left-side navigation pane, click Topics.
  2. On the Topics page, find MyTopic. In the Action column, click Subscription List.
  3. In the section that appears, find MySubscription. In the Action column, click Configuration.
  4. In the Configuration dialog box, modify the notification strategy, and click OK.

Delete a subscription

  1. In the left-side navigation pane, click Topics.
  2. On the Topics page, find MyTopic. In the Action column, click Subscription List.
  3. In the section that appears, find MySubscription. In the Action column, click Delete.
  4. In the dialog box that appears, click OK.

Publish a message

  1. In the left-side navigation pane, click Topics.
  2. On the Topics page, find MyTopic. In the Action column, click Publish Message.
  3. On the Publish Message page, enter a message in the Message Content field, select a Push Type, and configure a Message Filter Tag to filter messages. Click OK.

    The Push Type that you specify must be included in the available push types.