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

Prerequisites

The MNS service is activated. For more information, see Activate Message Service.

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 topic list of the Topics page, find MyTopic. In the Action column, click Configure.
  2. 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. On the Topics page of the console, you can view the parameter settings of MyTopic.Query the information of a topic
  2. Find MyTopic. In the Action column, click Configure. In the Configure dialog box, view the parameter settings of MyTopic.

Query a topic list

  1. Go to the Topics page of the console.Query a topic list
  2. 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. On the Topics page of the console, click Get Endpoint in the upper-right corner of the page.
  2. In the Get Endpoint dialog box, view the Internet endpoint and virtual private cloud (VPC) endpoint.

    You can use HTTP or HTTPS to access the endpoints.

Delete a topic

  1. On the Topics page of the console, find MyTopic. In the Action column, click Delete.
  2. In the Prompt message, click .

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. On the Topics page of the console, find MyTopic. In the Action column, click Subscription List.
  2. In the upper-right corner of the section that appears, click Subscribe.Create a subscription
  3. In the Subscribedialog box, specify the parameters, and click OK.
    You can select a Push Type from the following push types:

Query the subscription list of a topic

  1. On the Topics page, find MyTopic. In the Action column, click Subscription List to view all subscriptions of MyTopic.
  2. 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. On the Topics page, find MyTopic. In the Action column, click Subscription List to view the subscription information of MyTopic.
  2. To view the parameter settings of MySubscription, click Configuration in the Action column.

Modify the notification strategy of a subscription.

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

Delete a subscription

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

Publish a message

  1. On the Topics page, find MyTopic. In the Action column, click Publish Message.
  2. On the Publish Message page, enter a message, select a push type, enter a message filter tag, and then click OK.

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