Listing Dedicated Virtual Machine Hosts

List the dedicated virtual machine hosts in a compartment and virtual machine instances on that host.

  • List the dedicated virtual machine hosts using the following steps.

    1. Open the navigation menu.
    2. Select Compute, under Compute, select Dedicated Virtual Machine Hosts.
    3. To view the resources in a different compartment, use the Compartment filter to switch compartments.

      Note

      You must have permission to work in a compartment to see the resources in it. If you're not sure which compartment to use, contact an administrator. For more information, see Understanding Compartments.
    4. Select a dedicated virtual machine host to display the details page.

    To View Hosted Instances

    To see the virtual machines on a host, follow these steps.

    1. Select a dedicated virtual machine host. The Details page is displayed.
    2. Select the option you see:
      • Under Resources, select Hosted Instances.
    3. The virtual machines hosted on this dedicated virtual machine host are listed.
  • To list the available dedicated virtual machine hosts, use the dedicated-vm-host list command:

    oci compute dedicated-vm-host list --compartment-id <compartment_OCID> --dedicated-vm-host-id <dedicatedVMhost_OCID>

    To list the instances running on a dedicated virtual machine host, use the dedicated-vm-host-instance list command:

    oci compute dedicated-vm-host-instance list --compartment-id <compartment_OCID> --dedicated-vm-host-id <dedicatedVMhost_OCID>

    Or use a JSON file.

    oci compute dedicated-vm-host-instance list --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 create a capacity reservation: ListDedicatedVmHostInstances.