This section describes how to manage data inbound rules in the Message Queue for MQTT console.
Background information
You must create data inbound rules before you can import data from other Alibaba Cloud
services to Message Queue for MQTT. Message Queue for MQTT uses data inbound rules to obtain data from other Alibaba
Cloud services. Then, the Message Queue for MQTT broker pushes the data to Message
Queue for MQTT clients by using the Message Queuing Telemetry Transport (MQTT) protocol.
You can call the APIs of the Alibaba Cloud services to send data to the Message Queue
for MQTT clients. 

Limits
For more information, see Rule-related limits.
Precautions
When Message Queue for MQTT uses a data inbound rule to receive messages from Message Queue for Apache RocketMQ, the Message Queue for MQTT client may receive messages with latency if the Message Queue for Apache RocketMQ server is being updated. For more information about service updates, see Notice List.
Create a data inbound rule
Note For more information about the message structure mappings between Message Queue for MQTT and Message Queue for Apache RocketMQ, see Message structure mappings between Message Queue for MQTT and Message Queue for Apache RocketMQ.
Edit a data inbound rule
- Log on to the Message Queue for MQTT console.
- In the left-side navigation pane, click Instances.
- In the top navigation bar, select the region where your instance is located.
- Find the instance for which you want to create a data outbound rule in the instance list. In the Actions column, choose .
- In the rule list, find the rule that you want to edit. In the Actions column, choose .
- On the Edit Rule page, you can change all parameter values except the rule ID.
- After you change parameter values as needed, click Save in the Configure Rule Destination step.
Delete a data inbound rule
- Log on to the Message Queue for MQTT console.
- In the left-side navigation pane, click Instances.
- In the top navigation bar, select the region where your instance is located.
- Find the instance for which you want to create a data outbound rule in the instance list. In the Actions column, choose .
- In the rule list, find the rule that you want to delete. In the Actions column, choose .
- In the message that appears, click OK.
Enable a data inbound rule
- Log on to the Message Queue for MQTT console.
- In the left-side navigation pane, click Instances.
- In the top navigation bar, select the region where your instance is located.
- Find the instance for which you want to create a data outbound rule in the instance list. In the Actions column, choose .
- In the rule list, find the rule that you want to enable. In the Actions column, choose .
- In the message that appears, click OK.
Disable a data inbound rule
- Log on to the Message Queue for MQTT console.
- In the left-side navigation pane, click Instances.
- In the top navigation bar, select the region where your instance is located.
- Find the instance for which you want to create a data outbound rule in the instance list. In the Actions column, choose .
- In the rule list, find the rule that you want to disable. In the Actions column, choose .
- In the message that appears, click OK.