This topic describes how to create, delete, and update a topic in the Message Queue for MQTT console.

Background information

MQTT is a messaging protocol that is based on the publish-subscribe model. Therefore, each message belongs to a topic. MQTT supports multiple levels of topics. A level-1 topic is a parent topic. Before you use Message Queue for MQTT, you must create a parent topic in the Message Queue for MQTT console.

For more information, see Terms.

Create a topic

  1. Log on to the Message Queue for MQTT console. In the top navigation bar, select the region where the instance is located.
  2. In the left-side navigation pane, choose Topics > Create Topic.
  3. In the Create Topic dialog box, set Topic and Description and click OK.
    You can view the topic you create on the Topics page.

Edit a topic

  1. Log on to the Message Queue for MQTT console. In the top navigation bar, select the region where the instance is located.
  2. In the left-side navigation pane, click Topics.
  3. Find the target topic and click Edit in the Actionscolumn.
  4. In the editing topic dialog box, update Description and click OK.
    You can view the updated description of the topic in the Description column on the Topics page.

Delete a topic

  1. Log on to the Message Queue for MQTT console. In the top navigation bar, select the region where the instance is located.
  2. In the left-side navigation pane, click Topics.
  3. Find the target topic and click Delete in the Actions column.
  4. In the Delete dialog box, click OK.

References

You can also create data inbound or outbound rules for a topic. For more information, see Rule operations.