Tagging a Subscription When Updating

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

  • These steps show how to tag a subscription from the Subscriptions list page. You can also tag a subscription from the details page for the subscription or its parent topic.
    1. On the Subscriptions list page, find the subscription that you want to work with. If you need help finding the list page or the subscription, see Listing Subscriptions.
    2. To add tags:
      1. From the Actions menu (Actions Menu) for the topic, select Add tags.
      2. In the Add tags dialog box, provide the following information.
        • 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. Select Add tags.
    3. To view and edit existing tags:
      1. From the Actions menu (Actions Menu) for the topic, select View tags.
        The View tags dialog box opens.
      2. To view existing defined tags, select Defined tags.
      3. To view existing free-form tags, select Free-form tags.
      4. To edit the value for a tag, select the pencil icon, provide a new value, and select Save.
      5. To remove a tag, select the pencil icon and select Remove tag.
  • Use the oci ons subscription update command and required parameters to tag a subscription when updating it:

    oci ons subscription update [--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 UpdateSubscription operation to tag a subscription when you update it. Include the definedTags and freeformTags attributes and their values.