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: Select 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.
      The Create Subscription panel opens.
    3. To show tagging options, select Show advanced options.
      If you have permissions to create a resource, then you also have permissions to apply free-form tags to that resource. To apply a defined tag, you must have permissions to use the tag namespace. For more information about tagging, see Resource Tags. If you're not sure whether to apply tags, skip this option or ask an administrator. You can apply tags later.
    4. To add a defined tag, select the namespace and key, then enter a value.
    5. To add a free-form tag, enter a key and value.
    6. Provide values for the remaining fields.
      For field descriptions, see Creating a Subscription (Any Type).
    7. 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.