Moving an Instance Pool to a Different Compartment

After you create an instance pool, you can move it to a different compartment.

    1. Navigate to the Instance pools list page. If you need help finding the list page, see Listing Instance Pools.
    2. Select the instance pool that you're interested in.
    3. Select the option you see:
      • Actions then Move resource.
      • More actions then Move resource.
    4. Choose the destination compartment from the list.
    5. Select Move resource. Your instance pools is moved to the new compartment.
  • Use the instance-pool change-compartment command to move a instance pool to another compartment:

    oci compute-management instance-pool 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 this API operation to move an instance pool to a different compartment: