Moving a Topic

Move a topic in Notifications to another compartment. Its associated subscriptions remain in their existing 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 topic 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 topic from the Topic Details page. You can also move a topic from the Topics page: Click the Actions menu (Actions Menu) and then select Move Resource.
    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.
    4. Click Move Resource.
    5. In the Move resource dialog box, select the compartment that you want to move the topic to.
    6. Click Move Resource.
  • Use the oci ons topic change-compartment command and required parameters to move a topic to another compartment:

    oci ons topic change-compartment --compartment-id <destination_compartment_OCID> --topic-id <topic_OCID>

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

  • Run the ChangeTopicCompartment operation to move a topic to another compartment.