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 IAM Policies in 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 Resources to a Different Compartment.

  • These steps show how to move a subscription from the Subscriptions page. You can also list subscriptions in a topic.
    1. Open the navigation menu and click Developer Services. Under Application Integration, click Notifications.
    2. Click Subscriptions.
    3. On the Subscriptions page, select the compartment that contains the subscription that you want.
    4. For the subscription that you want to move, click the Actions menu (Actions Menu) and then select Move Resource.
    5. Click Move Resource.
    6. Select the compartment that you want to move the subscription to.
    7. 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.