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.
- Under Tags, select Add tag.
The tagging options appear.
Enter or select values for these items:
- Namespace
- Key
- Value
-
Select Add tag to add another tag. Select X to remove a tag.
-
Continue with creating the events rule.
-
Use the
--defined-tagsor--freeform-tagsoptions 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] tagsFor 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
definedTagsandfreeformTagsattributes and their values.