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.
-
Begin the steps for getting an events rule's details as described in Getting an Events Rule's Details.
- In the Details page of the selected events rule, click Add Tags under More Actions.
-
Complete the following:
-
Tag Namespace
-
Tag Key
-
Value
See Overview of Tagging for descriptions of these fields.
-
-
Click +Additional Tag to add another tag. Click X to remove the associated tag.
-
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
andfreeformTags
attributes and their values.