Moving a Subscription

Move a subscription in Notifications to another compartment. The associated topic remains in its current compartment.

Important

To move resources between compartments, resource users must have sufficient access permissions for the compartment that the resource is being moved to and the current compartment. For more information about permissions for Notifications resources, see Securing Notifications.

The moved subscription is subject to policies of the destination compartment. Inherent policies in the destination compartment apply immediately and affect access to the moved resource through the Console. For more information about moving resources, see Moving a Resource Between Compartments.

  • These steps show how to move a subscription from Subscriptions list page. You can also move a subscription from the list of subscriptions for a topic, or from the subscription's details page.
    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. From the Actions menu (Actions Menu) for the subscription, select Move Resource.
    3. Select the compartment that you want to move the subscription to.
    4. Click Move Resource.
  • Use the oci ons subscription change-compartment command and required parameters to move a subscription to another compartment:

    oci ons subscription change-compartment --compartment-id <destination_compartment_OCID> --subscription-id <subscription_OCID>

    For a complete list of parameters and values for CLI commands, see the Command Line Reference for Notifications.

  • Run the ChangeSubscriptionCompartment operation to move a subscription to another compartment.