Tagging a Subscription at Creation

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

  • These steps show how to open the Create Subscription panel from the details page for the topic that you want to add the subscription to. You can also open this panel from the Subscriptions page, specifying the topic in the panel: Click Create Subscription, and then select a Subscription Topic.

    1. On the Topics list page, select the topic that you want to work with. If you need help finding the list page or the topic, see Listing Topics.
    2. On the topic's details page, select Create Subscription.
    3. In the Create Subscription 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.
    4. Provide values for the remaining fields.
      For field descriptions, see Creating a Subscription (Any Type).
    5. Select Create.
    Notifications creates the subscription with the configured tags. If the subscription type requires a confirmation, then Notifications sends a confirmation URL to its endpoint and the subscription is pending until confirmation is received.
  • Use the oci ons subscription create command and required parameters to tag a subscription at creation:

    oci ons subscription 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 CreateSubscription operation to tag a subscription at creation. Include the definedTags and freeformTags attributes and their values.