Enabling and Disabling an Events Rule

Enable and disable a rule.

    1. Open the navigation menu and click Observability & Management. Under Events Service, click Rules.
    2. Select the Compartment from the list.

      All events rules in that compartment are listed in tabular form.

    3. Select the events rule you want to enable or disable.

      The Rules dialog box appears

    4. Click Enable or Disable depending on what action you want to take.

      Alternatively, click the Actions (Action icon) icon and select Enable or Disable.

    5. Confirm when prompted.
  • Use the --is-enabled option when running the oci events rule update command to enable (true) or disable (false) a rule:

    oci events rule update [...] --is-enabled [true|false]

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference.

  • Run the UpdateRule operation to create a rule. Include the isEnabled attribute and the values true and false to enable and disable the rule respectively.