» Data Source: oci_ocvp_esxi_hosts

This data source provides the list of Esxi Hosts in Oracle Cloud Infrastructure Ocvp service.

Lists the ESXi hosts in the specified SDDC. The list can be filtered by Compute instance OCID or ESXi display name.

Remember that in terms of implementation, an ESXi host is a Compute instance that is configured with the chosen bundle of VMware software. Each EsxiHost object has its own OCID (id), and a separate attribute for the OCID of the Compute instance (computeInstanceId). When filtering the list of ESXi hosts, you can specify the OCID of the Compute instance, not the ESXi host OCID.

» Example Usage

data "oci_ocvp_esxi_hosts" "test_esxi_hosts" {

    #Optional
    compute_instance_id = "${oci_core_instance.test_instance.id}"
    display_name = "${var.esxi_host_display_name}"
    sddc_id = "${oci_ocvp_sddc.test_sddc.id}"
    state = "${var.esxi_host_state}"
}

» Argument Reference

The following arguments are supported:

  • compute_instance_id - (Optional) The OCID of the Compute instance.
  • display_name - (Optional) A filter to return only resources that match the given display name exactly.
  • sddc_id - (Optional) The OCID of the SDDC.
  • state - (Optional) The lifecycle state of the resource.

» Attributes Reference

The following attributes are exported:

» EsxiHost Reference

The following attributes are exported:

  • compartment_id - The OCID of the compartment that contains the SDDC.
  • compute_instance_id - In terms of implementation, an ESXi host is a Compute instance that is configured with the chosen bundle of VMware software. The computeInstanceId is the OCID of that Compute instance.
  • defined_tags - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
  • display_name - A descriptive name for the ESXi host. Does not have to be unique, and it's changeable. Avoid entering confidential information.
  • freeform_tags - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
  • id - The OCID of the ESXi host.
  • sddc_id - The OCID of the SDDC that the ESXi host belongs to.
  • state - The current state of the ESXi host.
  • time_created - The date and time the ESXi host was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
  • time_updated - The date and time the ESXi host was updated, in the format defined by RFC3339.