Moving a Private Template

Move a private template in Resource Manager to another compartment.

    1. On the Private templates list page, select the private template that you want to work with. If you need help finding the list page or the private template, see Listing Private Templates.
    2. Select Move resource.
    3. In the Move resource dialog box, select the compartment that you want to move the private template to.
    4. Select 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.