Use this data source to get information about hypervisors by hostname.
data "openstack_compute_hypervisor_v2" "host01" {
hostname = "host01"
}
hostname
- The hostname of the hypervisorid
is set to the ID of the found Hypervisor. In addition, the
following attributes are exported:
hostname
- See Argument Reference above.host_ip
- The IP address of the Hypervisorstate
- The state of the hypervisor (up
or down
)status
- The status of the hypervisor (enabled
or disabled
)type
- The type of the hypervisor (example: QEMU
)vcpus
- The number of virtual CPUs the hypervisor can providememory
- The number in MegaBytes of memory the hypervisor can providedisk
- The amount in GigaBytes of local storage the hypervisor can provide