Data Source: oci_ocvp_esxi_hosts

This data source provides the list of Esxi Hosts in Oracle Cloud Infrastructure Oracle Cloud VMware Solution 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
	cluster_id = oci_ocvp_cluster.test_cluster.id
	compartment_id = var.compartment_id
	compute_instance_id = oci_core_instance.test_instance.id
	display_name = var.esxi_host_display_name
	is_billing_donors_only = var.esxi_host_is_billing_donors_only
	is_swap_billing_only = var.esxi_host_is_swap_billing_only
	sddc_id = oci_ocvp_sddc.test_sddc.id
	state = var.esxi_host_state
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

EsxiHost Reference

The following attributes are exported: