Tagging an Events Rule at Creation

Add metadata to a rule when you first create it. This metadata enables you to define keys and values and associate them with resources.

    1. Begin the steps for creating an events rule as described in Creating an Events Rule.

    2. Click Advanced Options.

      The tagging options appear.

    3. Complete the following:

      • Tag Namespace

      • Tag Key

      • Value

      See Overview of Tagging for descriptions of these fields.

    4. Click +Additional Tag to add another tag. Click X to remove the associated tag.

    5. Continue with creating the events rule.

  • Use the --defined-tags or --freeform-tags options when running the oci events rule create command to tag a rule policy when you create it:

    oci events rule create [...] [--defined-tags | --freeform-tags] tags

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

  • Run the CreateRule operation to create a rule. Include the definedTags and freeformTags attributes and their values.