Moving a Dedicated Virtual Machine Host to a Different Compartment
To move a dedicated virtual machine host to a new compartment see the following steps.
- Navigate to the Dedicated Virtual Machine Hosts list page. If you need help finding the list page, see Listing Dedicated Virtual Machine Hosts.
- Select a dedicated virtual machine host.
- Select the option you see:
- Select Move Resource.
- Choose the destination compartment from the list.
- Select Move Resource.
- Optionally, move the instances that are placed on the dedicated virtual machine host to the new compartment.
Use the
dedicated-vm-host change-compartment
command and required parameters to change the compartment for a dedicated virtual machine host:oci compute dedicated-vm-host 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 change the compartment for a dedicated virtual machine host: