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.
-
Begin the steps for creating an events rule as described in Creating an Events Rule.
-
Click Advanced Options.
The tagging options appear.
-
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.
-
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
andfreeformTags
attributes and their values.