Moving an Events Rule Between Compartments
Move a rule to a different compartment.
See Managing Compartments for information about compartments and access control.
- Open the navigation menu and click Observability & Management. Under Events Service, click Rules.
-
Select the Compartment from the list.
All events rules in that compartment are listed in tabular form.
-
Select the events rule you want to move to a different compartment.
The Rules dialog box appears
-
Click Move Resource.
Alternatively, click the
for the events rule you want to move and click Move Resource.The Move resource dialog box appears.
-
Select the compartment to which you want to move your web application acceleration policy from the Destination compartment list.
-
Click Move resource.
The events rule you moved is now accessible from the new compartment.
Use the oci events rule change-compartment command and required parameters to move an events rule between compartments
oci events rule change-compartment rule-id rule_ocid --compartment-id compartment_ocid [OPTIONS]
For a complete list of flags and variable options for CLI commands, see the Command Line Reference.
Run the ChangeRuleCompartment operation to move a rule between compartments.