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. Open the navigation menu and click Developer Services. Under Application Integration, click Notifications.
    2. On the Topics page, select the compartment that you want to create the topic in.
    3. Click Create Topic.
    4. In the Create Topic panel, click Show advanced options and then provide values for the tagging fields.
      • Tag namespace: To add a defined tag, select an existing namespace. If adding a free-from tag, leave 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.
    5. Provide values for the remaining fields.
      For field descriptions, see Creating a Topic.
    6. Click Create.
  • Use the oci ons topic create command and required parameters to tag a topic at creation:

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

    For a complete list of flags and variable options 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.