vserver export-policy rule delete
Delete a rule
Availability: This command is available to cluster and Vserver administrators at the admin privilege level.
Description
The vserver export-policy rule delete
command deletes an export rule from a policy. You can specify the export rule by specifying its index number in the policy. When you delete a rule, the other rules in the policy are not automatically renumbered or reordered. You can use the vserver export-policy rule setindex command to reorder the rules in a rule set.
Parameters
-vserver <vserver name>
- Vserver-
This parameter specifies the Vserver which contains the export policy.
-policyname <export policy name>
- Policy Name-
This parameter specifies the export policy from which you want to delete a rule.
-ruleindex <integer>
- Rule Index-
This parameter specifies the index number of the rule that you want to delete. You can use the vserver export-policy rule show command to view a list of rules with their index numbers.
Examples
The following example deletes an export rule with the index number 5 from an export policy named rs1 on a Vserver named vs0:
cluster1::> vserver export-policy rule delete -vserver vs0 -policyname read_only_expolicy -ruleindex 5