Listing Dedicated Virtual Machine Hosts
List the instances on a dedicated virtual machine host.
You can list the instances on a dedicated virtual machine host using the following steps.
- Open the navigation menu.
- Click Compute.
- Under Compute, click Dedicated Virtual Machine Hosts.
- Go to the Details page for the dedicated virtual machine host.
- Under Resources, click Hosted Instances. Perform this step for each compartment in your tenancy that has instances running on the dedicated virtual machine host. To change the compartment for the Hosted Instances list, select a different compartment from the Table Scope list.
To list the instances running on a dedicated virtual machine host, run the following command:
oci compute dedicated-vm-host list --compartment-id <compartment_OCID> --dedicated-vm-host-id <dedicatedVMhost_OCID>
Run this command for every compartment in your tenancy that has instances running on the dedicated virtual machine host that you want to delete.
Use the ListDedicatedVmHostInstances operation.