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. Under Tags, select Add tag.

      The tagging options appear.

    3. Enter or select values for these items:

      • Namespace
      • Key
      • Value
      Note

      See Overview of Tagging for descriptions of these fields.
    4. Select Add tag to add another tag. Select X to remove a 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.