Moving an Events Rule Between Compartments

Move a rule to a different compartment.

    1. Navigate to the events list page. If you need help finding the list page, see Listing Events Rules.
    2. Select a rule you want to move to a different compartment.
    3. Select Actions.
    4. Select Move Resource.

      The Move resource dialog box appears.

    5. Select the destination compartment.
    6. Select Move resource.

    The events rule is moved to 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.