Tagging a Topic at Creation

Add metadata to a topic in Notifications when you first create it. This metadata associates keys and values with the new topic.

    1. On the Topics list page, select Create Topic. If you need help finding the list page, see Listing Topics.
    2. In the Create Topic panel, select Show advanced options and then provide values for the tagging fields.
      • Tag namespace: To add a defined tag, select an existing namespace. To add a free-from tag, leave the value blank.
      • Tag key: To add a defined tag, select an existing tag key. To add a free-form tag, type the key name that you want.
      • Tag value: Type the tag value that you want.
      • Add tag: Click to add another tag.
    3. Provide values for the remaining fields.
      For field descriptions, see Creating a Topic.
    4. Select Create.
  • Use the oci ons topic create command and required parameters to tag a topic at creation:

    oci ons topic create [--defined-tags | --freeform-tags] tags [...]

    For a complete list of parameters and values for CLI commands, see the Command Line Reference for Notifications.

  • Run the CreateTopic operation to tag a topic at creation. Include the definedTags and freeformTags attributes and their values.