Moving an Instance Configuration

Move a Compute instance configuration from one compartment to another compartment.

    • Navigate to the Instance Configurations list page. Select an instance configuration to view its details page. If you need help finding the list page, see Listing Instance Configurations.
    • In the details page, select one of the following options based on what you see:
      • Select Actions and then Move resource.
      • Select Move Resource.
    • Select the destination compartment from the list.
    • Select Move Resource.
    Tip

    If alarms are monitoring the instance configuration, update the alarms to reference the new compartment. See Updating an Alarm After Moving a Resource for more information.
  • Use the instance configuration change compartment command and required parameters to move an instance configuration to another compartment:

    oci compute-management instance-configuration change-compartment <INSTANCE_CONFIGURATION_OCID> --display-name <text>

    Or use a JSON file to set parameters:

    oci compute capacity-reservation change-compartment --from-json <file://path/to/file.json>

    <file://path/to/file.json> is the path to a JSON file that defines the instance details. For information about how to generate an example of the JSON file, see Advanced JSON Options.

    For a complete list of flags and variable options for the Compute service CLI commands, see the command line reference for Compute.

  • For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.

    Use the ChangeInstanceConfigurationCompartment operation to move the instance configuration to another compartment.