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. Open the navigation menu and click Developer Services. Under Application Integration, click Notifications.
    2. On the Topics page, select the compartment that contains the topic that you want.
    3. Click the name of the topic that you want to add the subscription to.
    4. On the Topic Details page, click Create Subscription.
    5. 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.
    6. Provide values for the remaining fields.
      For field descriptions, see Creating a Subscription (Any Type).
    7. Click 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.