Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg
nutanix.getHosts
Explore with Pulumi AI
Describes a list of hosts
Using getHosts
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getHosts(opts?: InvokeOptions): Promise<GetHostsResult>
function getHostsOutput(opts?: InvokeOptions): Output<GetHostsResult>def get_hosts(opts: Optional[InvokeOptions] = None) -> GetHostsResult
def get_hosts_output(opts: Optional[InvokeOptions] = None) -> Output[GetHostsResult]func GetHosts(ctx *Context, opts ...InvokeOption) (*GetHostsResult, error)
func GetHostsOutput(ctx *Context, opts ...InvokeOption) GetHostsResultOutput> Note: This function is named GetHosts in the Go SDK.
public static class GetHosts 
{
    public static Task<GetHostsResult> InvokeAsync(InvokeOptions? opts = null)
    public static Output<GetHostsResult> Invoke(InvokeOptions? opts = null)
}public static CompletableFuture<GetHostsResult> getHosts(InvokeOptions options)
public static Output<GetHostsResult> getHosts(InvokeOptions options)
fn::invoke:
  function: nutanix:index/getHosts:getHosts
  arguments:
    # arguments dictionarygetHosts Result
The following output properties are available:
- ApiVersion string
- The API version.
- Entities
List<PiersKarsenbarg. Nutanix. Outputs. Get Hosts Entity> 
- List of Hosts
- Id string
- The provider-assigned unique ID for this managed resource.
- ApiVersion string
- The API version.
- Entities
[]GetHosts Entity 
- List of Hosts
- Id string
- The provider-assigned unique ID for this managed resource.
- apiVersion String
- The API version.
- entities
List<GetHosts Entity> 
- List of Hosts
- id String
- The provider-assigned unique ID for this managed resource.
- apiVersion string
- The API version.
- entities
GetHosts Entity[] 
- List of Hosts
- id string
- The provider-assigned unique ID for this managed resource.
- api_version str
- The API version.
- entities
Sequence[GetHosts Entity] 
- List of Hosts
- id str
- The provider-assigned unique ID for this managed resource.
- apiVersion String
- The API version.
- entities List<Property Map>
- List of Hosts
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
GetHostsEntity  
- ApiVersion string
- The API version.
- Block Dictionary<string, string>
- Host block config info.
 
- Categories
List<PiersKarsenbarg. Nutanix. Inputs. Get Hosts Entity Category> 
- Categories for the image.
 
- ClusterReference Dictionary<string, string>
- Reference to a kind. Either one of (kind, uuid) or url needs to be specified.
 
- ControllerVm Dictionary<string, string>
- Host controller vm information.
 
- CpuCapacity intHz 
- Host CPU capacity.
 
- CpuModel string
- Host CPU model.
 
- FailoverCluster Dictionary<string, string>
- Hyper-V failover cluster.
 
- GpuDriver stringVersion 
- Host GPU driver version.
 
- GpuLists List<PiersKarsenbarg. Nutanix. Inputs. Get Hosts Entity Gpu List> 
- List of GPUs on the host.
 
- HostDisks List<PiersReference Lists Karsenbarg. Nutanix. Inputs. Get Hosts Entity Host Disks Reference List> 
- The reference to a disk.
 
- HostNics List<string>Id Lists 
- Host NICs.
 
- HostType string
- Host type.
 
- Hypervisor Dictionary<string, string>
- Host Hypervisor information.
 
- Ipmi Dictionary<string, string>
- Host IPMI info.
 
- MemoryCapacity intMib 
- Host memory capacity in MiB.
 
- Metadata Dictionary<string, string>
- MonitoringState string
- Host monitoring status.
 
- Name string
- the name.
 
- NumCpu intCores 
- Number of CPU cores on Host.
 
- NumCpu intSockets 
- Number of CPU sockets.
 
- OwnerReference Dictionary<string, string>
- The reference to a user.
 
- ProjectReference Dictionary<string, string>
- The reference to a project.
 
- RackableUnit Dictionary<string, string>Reference 
- The reference to a rackable_unit.
 
- SerialNumber string
- Node serial number.
 
- WindowsDomain Dictionary<string, string>
- The name of the node to be renamed to during domain-join. If not given,a new name will be automatically assigned.
 
- ApiVersion string
- The API version.
- Block map[string]string
- Host block config info.
 
- Categories
[]GetHosts Entity Category 
- Categories for the image.
 
- ClusterReference map[string]string
- Reference to a kind. Either one of (kind, uuid) or url needs to be specified.
 
- ControllerVm map[string]string
- Host controller vm information.
 
- CpuCapacity intHz 
- Host CPU capacity.
 
- CpuModel string
- Host CPU model.
 
- FailoverCluster map[string]string
- Hyper-V failover cluster.
 
- GpuDriver stringVersion 
- Host GPU driver version.
 
- GpuLists []GetHosts Entity Gpu List 
- List of GPUs on the host.
 
- HostDisks []GetReference Lists Hosts Entity Host Disks Reference List 
- The reference to a disk.
 
- HostNics []stringId Lists 
- Host NICs.
 
- HostType string
- Host type.
 
- Hypervisor map[string]string
- Host Hypervisor information.
 
- Ipmi map[string]string
- Host IPMI info.
 
- MemoryCapacity intMib 
- Host memory capacity in MiB.
 
- Metadata map[string]string
- MonitoringState string
- Host monitoring status.
 
- Name string
- the name.
 
- NumCpu intCores 
- Number of CPU cores on Host.
 
- NumCpu intSockets 
- Number of CPU sockets.
 
- OwnerReference map[string]string
- The reference to a user.
 
- ProjectReference map[string]string
- The reference to a project.
 
- RackableUnit map[string]stringReference 
- The reference to a rackable_unit.
 
- SerialNumber string
- Node serial number.
 
- WindowsDomain map[string]string
- The name of the node to be renamed to during domain-join. If not given,a new name will be automatically assigned.
 
- apiVersion String
- The API version.
- block Map<String,String>
- Host block config info.
 
- categories
List<GetHosts Entity Category> 
- Categories for the image.
 
- clusterReference Map<String,String>
- Reference to a kind. Either one of (kind, uuid) or url needs to be specified.
 
- controllerVm Map<String,String>
- Host controller vm information.
 
- cpuCapacity IntegerHz 
- Host CPU capacity.
 
- cpuModel String
- Host CPU model.
 
- failoverCluster Map<String,String>
- Hyper-V failover cluster.
 
- gpuDriver StringVersion 
- Host GPU driver version.
 
- gpuLists List<GetHosts Entity Gpu List> 
- List of GPUs on the host.
 
- hostDisks List<GetReference Lists Hosts Entity Host Disks Reference List> 
- The reference to a disk.
 
- hostNics List<String>Id Lists 
- Host NICs.
 
- hostType String
- Host type.
 
- hypervisor Map<String,String>
- Host Hypervisor information.
 
- ipmi Map<String,String>
- Host IPMI info.
 
- memoryCapacity IntegerMib 
- Host memory capacity in MiB.
 
- metadata Map<String,String>
- monitoringState String
- Host monitoring status.
 
- name String
- the name.
 
- numCpu IntegerCores 
- Number of CPU cores on Host.
 
- numCpu IntegerSockets 
- Number of CPU sockets.
 
- ownerReference Map<String,String>
- The reference to a user.
 
- projectReference Map<String,String>
- The reference to a project.
 
- rackableUnit Map<String,String>Reference 
- The reference to a rackable_unit.
 
- serialNumber String
- Node serial number.
 
- windowsDomain Map<String,String>
- The name of the node to be renamed to during domain-join. If not given,a new name will be automatically assigned.
 
- apiVersion string
- The API version.
- block {[key: string]: string}
- Host block config info.
 
- categories
GetHosts Entity Category[] 
- Categories for the image.
 
- clusterReference {[key: string]: string}
- Reference to a kind. Either one of (kind, uuid) or url needs to be specified.
 
- controllerVm {[key: string]: string}
- Host controller vm information.
 
- cpuCapacity numberHz 
- Host CPU capacity.
 
- cpuModel string
- Host CPU model.
 
- failoverCluster {[key: string]: string}
- Hyper-V failover cluster.
 
- gpuDriver stringVersion 
- Host GPU driver version.
 
- gpuLists GetHosts Entity Gpu List[] 
- List of GPUs on the host.
 
- hostDisks GetReference Lists Hosts Entity Host Disks Reference List[] 
- The reference to a disk.
 
- hostNics string[]Id Lists 
- Host NICs.
 
- hostType string
- Host type.
 
- hypervisor {[key: string]: string}
- Host Hypervisor information.
 
- ipmi {[key: string]: string}
- Host IPMI info.
 
- memoryCapacity numberMib 
- Host memory capacity in MiB.
 
- metadata {[key: string]: string}
- monitoringState string
- Host monitoring status.
 
- name string
- the name.
 
- numCpu numberCores 
- Number of CPU cores on Host.
 
- numCpu numberSockets 
- Number of CPU sockets.
 
- ownerReference {[key: string]: string}
- The reference to a user.
 
- projectReference {[key: string]: string}
- The reference to a project.
 
- rackableUnit {[key: string]: string}Reference 
- The reference to a rackable_unit.
 
- serialNumber string
- Node serial number.
 
- windowsDomain {[key: string]: string}
- The name of the node to be renamed to during domain-join. If not given,a new name will be automatically assigned.
 
- api_version str
- The API version.
- block Mapping[str, str]
- Host block config info.
 
- categories
Sequence[GetHosts Entity Category] 
- Categories for the image.
 
- cluster_reference Mapping[str, str]
- Reference to a kind. Either one of (kind, uuid) or url needs to be specified.
 
- controller_vm Mapping[str, str]
- Host controller vm information.
 
- cpu_capacity_ inthz 
- Host CPU capacity.
 
- cpu_model str
- Host CPU model.
 
- failover_cluster Mapping[str, str]
- Hyper-V failover cluster.
 
- gpu_driver_ strversion 
- Host GPU driver version.
 
- gpu_lists Sequence[GetHosts Entity Gpu List] 
- List of GPUs on the host.
 
- host_disks_ Sequence[Getreference_ lists Hosts Entity Host Disks Reference List] 
- The reference to a disk.
 
- host_nics_ Sequence[str]id_ lists 
- Host NICs.
 
- host_type str
- Host type.
 
- hypervisor Mapping[str, str]
- Host Hypervisor information.
 
- ipmi Mapping[str, str]
- Host IPMI info.
 
- memory_capacity_ intmib 
- Host memory capacity in MiB.
 
- metadata Mapping[str, str]
- monitoring_state str
- Host monitoring status.
 
- name str
- the name.
 
- num_cpu_ intcores 
- Number of CPU cores on Host.
 
- num_cpu_ intsockets 
- Number of CPU sockets.
 
- owner_reference Mapping[str, str]
- The reference to a user.
 
- project_reference Mapping[str, str]
- The reference to a project.
 
- rackable_unit_ Mapping[str, str]reference 
- The reference to a rackable_unit.
 
- serial_number str
- Node serial number.
 
- windows_domain Mapping[str, str]
- The name of the node to be renamed to during domain-join. If not given,a new name will be automatically assigned.
 
- apiVersion String
- The API version.
- block Map<String>
- Host block config info.
 
- categories List<Property Map>
- Categories for the image.
 
- clusterReference Map<String>
- Reference to a kind. Either one of (kind, uuid) or url needs to be specified.
 
- controllerVm Map<String>
- Host controller vm information.
 
- cpuCapacity NumberHz 
- Host CPU capacity.
 
- cpuModel String
- Host CPU model.
 
- failoverCluster Map<String>
- Hyper-V failover cluster.
 
- gpuDriver StringVersion 
- Host GPU driver version.
 
- gpuLists List<Property Map>
- List of GPUs on the host.
 
- hostDisks List<Property Map>Reference Lists 
- The reference to a disk.
 
- hostNics List<String>Id Lists 
- Host NICs.
 
- hostType String
- Host type.
 
- hypervisor Map<String>
- Host Hypervisor information.
 
- ipmi Map<String>
- Host IPMI info.
 
- memoryCapacity NumberMib 
- Host memory capacity in MiB.
 
- metadata Map<String>
- monitoringState String
- Host monitoring status.
 
- name String
- the name.
 
- numCpu NumberCores 
- Number of CPU cores on Host.
 
- numCpu NumberSockets 
- Number of CPU sockets.
 
- ownerReference Map<String>
- The reference to a user.
 
- projectReference Map<String>
- The reference to a project.
 
- rackableUnit Map<String>Reference 
- The reference to a rackable_unit.
 
- serialNumber String
- Node serial number.
 
- windowsDomain Map<String>
- The name of the node to be renamed to during domain-join. If not given,a new name will be automatically assigned.
 
GetHostsEntityCategory   
GetHostsEntityGpuList    
- Assignable bool
- ConsumerReference Dictionary<string, string>
- DeviceId int
- Fraction int
- FrameBuffer intSize Mib 
- GuestDriver stringVersion 
- Index int
- LicenseLists List<string>
- MaxResolution string
- Mode string
- Name string
- the name.
 
- NumVgpus intAllocated 
- NumVirtual intDisplay Heads 
- NumaNode int
- PciAddress string
- Status string
- Uuid string
- the uuid.
 
- Vendor string
- Assignable bool
- ConsumerReference map[string]string
- DeviceId int
- Fraction int
- FrameBuffer intSize Mib 
- GuestDriver stringVersion 
- Index int
- LicenseLists []string
- MaxResolution string
- Mode string
- Name string
- the name.
 
- NumVgpus intAllocated 
- NumVirtual intDisplay Heads 
- NumaNode int
- PciAddress string
- Status string
- Uuid string
- the uuid.
 
- Vendor string
- assignable Boolean
- consumerReference Map<String,String>
- deviceId Integer
- fraction Integer
- frameBuffer IntegerSize Mib 
- guestDriver StringVersion 
- index Integer
- licenseLists List<String>
- maxResolution String
- mode String
- name String
- the name.
 
- numVgpus IntegerAllocated 
- numVirtual IntegerDisplay Heads 
- numaNode Integer
- pciAddress String
- status String
- uuid String
- the uuid.
 
- vendor String
- assignable boolean
- consumerReference {[key: string]: string}
- deviceId number
- fraction number
- frameBuffer numberSize Mib 
- guestDriver stringVersion 
- index number
- licenseLists string[]
- maxResolution string
- mode string
- name string
- the name.
 
- numVgpus numberAllocated 
- numVirtual numberDisplay Heads 
- numaNode number
- pciAddress string
- status string
- uuid string
- the uuid.
 
- vendor string
- assignable bool
- consumer_reference Mapping[str, str]
- device_id int
- fraction int
- frame_buffer_ intsize_ mib 
- guest_driver_ strversion 
- index int
- license_lists Sequence[str]
- max_resolution str
- mode str
- name str
- the name.
 
- num_vgpus_ intallocated 
- num_virtual_ intdisplay_ heads 
- numa_node int
- pci_address str
- status str
- uuid str
- the uuid.
 
- vendor str
- assignable Boolean
- consumerReference Map<String>
- deviceId Number
- fraction Number
- frameBuffer NumberSize Mib 
- guestDriver StringVersion 
- index Number
- licenseLists List<String>
- maxResolution String
- mode String
- name String
- the name.
 
- numVgpus NumberAllocated 
- numVirtual NumberDisplay Heads 
- numaNode Number
- pciAddress String
- status String
- uuid String
- the uuid.
 
- vendor String
GetHostsEntityHostDisksReferenceList      
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the nutanixTerraform Provider.
