Tagging an Events Rule when Updating

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

    1. Begin the steps for getting an events rule's details as described in Getting an Events Rule's Details.

    2. In the Details page of the selected events rule, click Add Tags under More Actions.
    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. Click Add tags.

    The Add Tags dialog box closes and you are returned to the Details page.

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

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

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

  • Run the UpdateRule operation to update a rule. Include the definedTags and freeformTags attributes and their values.