Moving a Private Template

Move a private template in Resource Manager to another compartment.

    1. Open the navigation menu and click Developer Services. Under Resource Manager, click Private Templates.
    2. On the Private templates page, select the compartment that contains the private template that you want.
    3. Click the name of the private template that you want.
    4. On the Template information page, click Move resource.
    5. In the Move resource dialog box, choose the destination compartment from the list.
    6. Click Move resource.
  • Use the oci resource-manager template change-compartment command and required parameters to move a private template to another compartment:

    oci resource-manager template change-compartment --template-id <template_OCID> --compartment-id <destination_compartment_OCID>

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

  • Run the ChangeTemplateCompartment operation to move a private template.