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 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 a Resource Between Compartments.

    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. From the Actions menu (Actions Menu) for the topic, select Move Resource.
    3. In the Move resource dialog box, select the compartment that you want to move the topic to.
    4. 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.