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.
- Navigate to the events list page. If you need help finding the list page, see Listing Events Rules.
- Select a rule, then select Tags.
- Select Add.
-
Enter or select values for these items:
- Namespace
- Key
- Value
-
Select Add tag to add another tag. Select X to remove a tag.
-
Select Add tags.
You see the tags you added.
Use the
--defined-tagsor--freeform-tagsoptions when running the oci events rule update command to tag a rule when you update it:oci events rule update [...] [--defined-tags | --freeform-tags] tagsFor 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
definedTagsandfreeformTagsattributes and their values.