Adding an Action to an Events Rule

Add an action to a rule in Events to perform a specific task.

For more information on using actions in a rule, see Matching Events with Filters.

    1. Navigate to the events list page. If you need help finding the list page, see Listing Events Rules.
    2. Select a rule and then select Actions.
    3. Under Actions, select Add.
    4. In the Add action panel, select the type of action to add and then provide the information specific to that resource:
      • To add a stream, select Streaming, select the compartment where the stream that you want to use is located, and then select the stream.
      • To add a topic, select Notifications, select the compartment where the topic that you want to use is located, and then select the topic.
      • To add a function, select Functions, select the compartment where the function that you want to use is located, select the function application, and then select the function.
    5. Select Add action.
    Note

    Next, you can enable the action.
  • Use the --action option when running the oci events rule update command to add an action to a rule:

    oci events rule update [...] --action action
                            

    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 action attribute and its values to add an action.