The rule name command creates a quota control policy and accesses its view.
The undo rule command deletes a quota control policy.
| Parameter | Description | Value |
|---|---|---|
| rule-name | Indicates the name of a quota control policy. | The value is a case-sensitive string. The length of a name without spaces ranges from 1 to 32 characters. The length of a name with spaces ranges from 3 to 34 characters. If a name contains spaces, the name must be enclosed with quotation marks (for example, "user for test"). Question marks (?), and quotations marks (") are not supported. |
| id rule-id | Specifies the ID of the quota policy rule to be deleted. You can run the display quota-policy rule all command to view the ID of rules to be deleted. |
The quota policy rule ID must exist. |
| all | Indicates all quota control policies. | - |
In hot backup and cross-DC cluster scenarios, the rule IDs on devices may be different. The undo rule id rule-id command will not be synchronized to other devices. You are advised to delete rules by name. If you want to delete rules by ID, find the rule name based on the ID of the rule to be deleted on the local device and delete the rule with the same name on other devices to ensure configuration consistency. Before running the undo rule id rule-id command, run the hrp standby config enable command in the hot backup scenario and run the cluster standby config enable command in the cross-DC cluster scenario.