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 dictionary
getHosts Result
The following output properties are available:
- Api
Version string - The API version.
- Entities
List<Piers
Karsenbarg. Nutanix. Outputs. Get Hosts Entity> - List of Hosts
- Id string
- The provider-assigned unique ID for this managed resource.
- Api
Version string - The API version.
- Entities
[]Get
Hosts Entity - List of Hosts
- Id string
- The provider-assigned unique ID for this managed resource.
- api
Version String - The API version.
- entities
List<Get
Hosts Entity> - List of Hosts
- id String
- The provider-assigned unique ID for this managed resource.
- api
Version string - The API version.
- entities
Get
Hosts Entity[] - List of Hosts
- id string
- The provider-assigned unique ID for this managed resource.
- api_
version str - The API version.
- entities
Sequence[Get
Hosts Entity] - List of Hosts
- id str
- The provider-assigned unique ID for this managed resource.
- api
Version 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
- Api
Version This property is required. string - The API version.
- Block
This property is required. Dictionary<string, string> - Host block config info.
- Categories
This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Hosts Entity Category> - Categories for the image.
- Cluster
Reference This property is required. Dictionary<string, string> - Reference to a kind. Either one of (kind, uuid) or url needs to be specified.
- Controller
Vm This property is required. Dictionary<string, string> - Host controller vm information.
- Cpu
Capacity Hz This property is required. int - Host CPU capacity.
- Cpu
Model This property is required. string - Host CPU model.
- Failover
Cluster This property is required. Dictionary<string, string> - Hyper-V failover cluster.
- Gpu
Driver Version This property is required. string - Host GPU driver version.
- Gpu
Lists This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Hosts Entity Gpu List> - List of GPUs on the host.
- Host
Disks Reference Lists This property is required. List<PiersKarsenbarg. Nutanix. Inputs. Get Hosts Entity Host Disks Reference List> - The reference to a disk.
- Host
Nics Id Lists This property is required. List<string> - Host NICs.
- Host
Type This property is required. string - Host type.
- Hypervisor
This property is required. Dictionary<string, string> - Host Hypervisor information.
- Ipmi
This property is required. Dictionary<string, string> - Host IPMI info.
- Memory
Capacity Mib This property is required. int - Host memory capacity in MiB.
- Metadata
This property is required. Dictionary<string, string> - Monitoring
State This property is required. string - Host monitoring status.
- Name
This property is required. string - the name.
- Num
Cpu Cores This property is required. int - Number of CPU cores on Host.
- Num
Cpu Sockets This property is required. int - Number of CPU sockets.
- Owner
Reference This property is required. Dictionary<string, string> - The reference to a user.
- Project
Reference This property is required. Dictionary<string, string> - The reference to a project.
- Rackable
Unit Reference This property is required. Dictionary<string, string> - The reference to a rackable_unit.
- Serial
Number This property is required. string - Node serial number.
- Windows
Domain This property is required. 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.
- Api
Version This property is required. string - The API version.
- Block
This property is required. map[string]string - Host block config info.
- Categories
This property is required. []GetHosts Entity Category - Categories for the image.
- Cluster
Reference This property is required. map[string]string - Reference to a kind. Either one of (kind, uuid) or url needs to be specified.
- Controller
Vm This property is required. map[string]string - Host controller vm information.
- Cpu
Capacity Hz This property is required. int - Host CPU capacity.
- Cpu
Model This property is required. string - Host CPU model.
- Failover
Cluster This property is required. map[string]string - Hyper-V failover cluster.
- Gpu
Driver Version This property is required. string - Host GPU driver version.
- Gpu
Lists This property is required. []GetHosts Entity Gpu List - List of GPUs on the host.
- Host
Disks Reference Lists This property is required. []GetHosts Entity Host Disks Reference List - The reference to a disk.
- Host
Nics Id Lists This property is required. []string - Host NICs.
- Host
Type This property is required. string - Host type.
- Hypervisor
This property is required. map[string]string - Host Hypervisor information.
- Ipmi
This property is required. map[string]string - Host IPMI info.
- Memory
Capacity Mib This property is required. int - Host memory capacity in MiB.
- Metadata
This property is required. map[string]string - Monitoring
State This property is required. string - Host monitoring status.
- Name
This property is required. string - the name.
- Num
Cpu Cores This property is required. int - Number of CPU cores on Host.
- Num
Cpu Sockets This property is required. int - Number of CPU sockets.
- Owner
Reference This property is required. map[string]string - The reference to a user.
- Project
Reference This property is required. map[string]string - The reference to a project.
- Rackable
Unit Reference This property is required. map[string]string - The reference to a rackable_unit.
- Serial
Number This property is required. string - Node serial number.
- Windows
Domain This property is required. 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.
- api
Version This property is required. String - The API version.
- block
This property is required. Map<String,String> - Host block config info.
- categories
This property is required. List<GetHosts Entity Category> - Categories for the image.
- cluster
Reference This property is required. Map<String,String> - Reference to a kind. Either one of (kind, uuid) or url needs to be specified.
- controller
Vm This property is required. Map<String,String> - Host controller vm information.
- cpu
Capacity Hz This property is required. Integer - Host CPU capacity.
- cpu
Model This property is required. String - Host CPU model.
- failover
Cluster This property is required. Map<String,String> - Hyper-V failover cluster.
- gpu
Driver Version This property is required. String - Host GPU driver version.
- gpu
Lists This property is required. List<GetHosts Entity Gpu List> - List of GPUs on the host.
- host
Disks Reference Lists This property is required. List<GetHosts Entity Host Disks Reference List> - The reference to a disk.
- host
Nics Id Lists This property is required. List<String> - Host NICs.
- host
Type This property is required. String - Host type.
- hypervisor
This property is required. Map<String,String> - Host Hypervisor information.
- ipmi
This property is required. Map<String,String> - Host IPMI info.
- memory
Capacity Mib This property is required. Integer - Host memory capacity in MiB.
- metadata
This property is required. Map<String,String> - monitoring
State This property is required. String - Host monitoring status.
- name
This property is required. String - the name.
- num
Cpu Cores This property is required. Integer - Number of CPU cores on Host.
- num
Cpu Sockets This property is required. Integer - Number of CPU sockets.
- owner
Reference This property is required. Map<String,String> - The reference to a user.
- project
Reference This property is required. Map<String,String> - The reference to a project.
- rackable
Unit Reference This property is required. Map<String,String> - The reference to a rackable_unit.
- serial
Number This property is required. String - Node serial number.
- windows
Domain This property is required. 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.
- api
Version This property is required. string - The API version.
- block
This property is required. {[key: string]: string} - Host block config info.
- categories
This property is required. GetHosts Entity Category[] - Categories for the image.
- cluster
Reference This property is required. {[key: string]: string} - Reference to a kind. Either one of (kind, uuid) or url needs to be specified.
- controller
Vm This property is required. {[key: string]: string} - Host controller vm information.
- cpu
Capacity Hz This property is required. number - Host CPU capacity.
- cpu
Model This property is required. string - Host CPU model.
- failover
Cluster This property is required. {[key: string]: string} - Hyper-V failover cluster.
- gpu
Driver Version This property is required. string - Host GPU driver version.
- gpu
Lists This property is required. GetHosts Entity Gpu List[] - List of GPUs on the host.
- host
Disks Reference Lists This property is required. GetHosts Entity Host Disks Reference List[] - The reference to a disk.
- host
Nics Id Lists This property is required. string[] - Host NICs.
- host
Type This property is required. string - Host type.
- hypervisor
This property is required. {[key: string]: string} - Host Hypervisor information.
- ipmi
This property is required. {[key: string]: string} - Host IPMI info.
- memory
Capacity Mib This property is required. number - Host memory capacity in MiB.
- metadata
This property is required. {[key: string]: string} - monitoring
State This property is required. string - Host monitoring status.
- name
This property is required. string - the name.
- num
Cpu Cores This property is required. number - Number of CPU cores on Host.
- num
Cpu Sockets This property is required. number - Number of CPU sockets.
- owner
Reference This property is required. {[key: string]: string} - The reference to a user.
- project
Reference This property is required. {[key: string]: string} - The reference to a project.
- rackable
Unit Reference This property is required. {[key: string]: string} - The reference to a rackable_unit.
- serial
Number This property is required. string - Node serial number.
- windows
Domain This property is required. {[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 This property is required. str - The API version.
- block
This property is required. Mapping[str, str] - Host block config info.
- categories
This property is required. Sequence[GetHosts Entity Category] - Categories for the image.
- cluster_
reference This property is required. Mapping[str, str] - Reference to a kind. Either one of (kind, uuid) or url needs to be specified.
- controller_
vm This property is required. Mapping[str, str] - Host controller vm information.
- cpu_
capacity_ hz This property is required. int - Host CPU capacity.
- cpu_
model This property is required. str - Host CPU model.
- failover_
cluster This property is required. Mapping[str, str] - Hyper-V failover cluster.
- gpu_
driver_ version This property is required. str - Host GPU driver version.
- gpu_
lists This property is required. Sequence[GetHosts Entity Gpu List] - List of GPUs on the host.
- host_
disks_ reference_ lists This property is required. Sequence[GetHosts Entity Host Disks Reference List] - The reference to a disk.
- host_
nics_ id_ lists This property is required. Sequence[str] - Host NICs.
- host_
type This property is required. str - Host type.
- hypervisor
This property is required. Mapping[str, str] - Host Hypervisor information.
- ipmi
This property is required. Mapping[str, str] - Host IPMI info.
- memory_
capacity_ mib This property is required. int - Host memory capacity in MiB.
- metadata
This property is required. Mapping[str, str] - monitoring_
state This property is required. str - Host monitoring status.
- name
This property is required. str - the name.
- num_
cpu_ cores This property is required. int - Number of CPU cores on Host.
- num_
cpu_ sockets This property is required. int - Number of CPU sockets.
- owner_
reference This property is required. Mapping[str, str] - The reference to a user.
- project_
reference This property is required. Mapping[str, str] - The reference to a project.
- rackable_
unit_ reference This property is required. Mapping[str, str] - The reference to a rackable_unit.
- serial_
number This property is required. str - Node serial number.
- windows_
domain This property is required. 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.
- api
Version This property is required. String - The API version.
- block
This property is required. Map<String> - Host block config info.
- categories
This property is required. List<Property Map> - Categories for the image.
- cluster
Reference This property is required. Map<String> - Reference to a kind. Either one of (kind, uuid) or url needs to be specified.
- controller
Vm This property is required. Map<String> - Host controller vm information.
- cpu
Capacity Hz This property is required. Number - Host CPU capacity.
- cpu
Model This property is required. String - Host CPU model.
- failover
Cluster This property is required. Map<String> - Hyper-V failover cluster.
- gpu
Driver Version This property is required. String - Host GPU driver version.
- gpu
Lists This property is required. List<Property Map> - List of GPUs on the host.
- host
Disks Reference Lists This property is required. List<Property Map> - The reference to a disk.
- host
Nics Id Lists This property is required. List<String> - Host NICs.
- host
Type This property is required. String - Host type.
- hypervisor
This property is required. Map<String> - Host Hypervisor information.
- ipmi
This property is required. Map<String> - Host IPMI info.
- memory
Capacity Mib This property is required. Number - Host memory capacity in MiB.
- metadata
This property is required. Map<String> - monitoring
State This property is required. String - Host monitoring status.
- name
This property is required. String - the name.
- num
Cpu Cores This property is required. Number - Number of CPU cores on Host.
- num
Cpu Sockets This property is required. Number - Number of CPU sockets.
- owner
Reference This property is required. Map<String> - The reference to a user.
- project
Reference This property is required. Map<String> - The reference to a project.
- rackable
Unit Reference This property is required. Map<String> - The reference to a rackable_unit.
- serial
Number This property is required. String - Node serial number.
- windows
Domain This property is required. 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
This property is required. bool - Consumer
Reference This property is required. Dictionary<string, string> - Device
Id This property is required. int - Fraction
This property is required. int - Frame
Buffer Size Mib This property is required. int - Guest
Driver Version This property is required. string - Index
This property is required. int - License
Lists This property is required. List<string> - Max
Resolution This property is required. string - Mode
This property is required. string - Name
This property is required. string - the name.
- Num
Vgpus Allocated This property is required. int - Num
Virtual Display Heads This property is required. int - Numa
Node This property is required. int - Pci
Address This property is required. string - Status
This property is required. string - Uuid
This property is required. string - the uuid.
- Vendor
This property is required. string
- Assignable
This property is required. bool - Consumer
Reference This property is required. map[string]string - Device
Id This property is required. int - Fraction
This property is required. int - Frame
Buffer Size Mib This property is required. int - Guest
Driver Version This property is required. string - Index
This property is required. int - License
Lists This property is required. []string - Max
Resolution This property is required. string - Mode
This property is required. string - Name
This property is required. string - the name.
- Num
Vgpus Allocated This property is required. int - Num
Virtual Display Heads This property is required. int - Numa
Node This property is required. int - Pci
Address This property is required. string - Status
This property is required. string - Uuid
This property is required. string - the uuid.
- Vendor
This property is required. string
- assignable
This property is required. Boolean - consumer
Reference This property is required. Map<String,String> - device
Id This property is required. Integer - fraction
This property is required. Integer - frame
Buffer Size Mib This property is required. Integer - guest
Driver Version This property is required. String - index
This property is required. Integer - license
Lists This property is required. List<String> - max
Resolution This property is required. String - mode
This property is required. String - name
This property is required. String - the name.
- num
Vgpus Allocated This property is required. Integer - num
Virtual Display Heads This property is required. Integer - numa
Node This property is required. Integer - pci
Address This property is required. String - status
This property is required. String - uuid
This property is required. String - the uuid.
- vendor
This property is required. String
- assignable
This property is required. boolean - consumer
Reference This property is required. {[key: string]: string} - device
Id This property is required. number - fraction
This property is required. number - frame
Buffer Size Mib This property is required. number - guest
Driver Version This property is required. string - index
This property is required. number - license
Lists This property is required. string[] - max
Resolution This property is required. string - mode
This property is required. string - name
This property is required. string - the name.
- num
Vgpus Allocated This property is required. number - num
Virtual Display Heads This property is required. number - numa
Node This property is required. number - pci
Address This property is required. string - status
This property is required. string - uuid
This property is required. string - the uuid.
- vendor
This property is required. string
- assignable
This property is required. bool - consumer_
reference This property is required. Mapping[str, str] - device_
id This property is required. int - fraction
This property is required. int - frame_
buffer_ size_ mib This property is required. int - guest_
driver_ version This property is required. str - index
This property is required. int - license_
lists This property is required. Sequence[str] - max_
resolution This property is required. str - mode
This property is required. str - name
This property is required. str - the name.
- num_
vgpus_ allocated This property is required. int - num_
virtual_ display_ heads This property is required. int - numa_
node This property is required. int - pci_
address This property is required. str - status
This property is required. str - uuid
This property is required. str - the uuid.
- vendor
This property is required. str
- assignable
This property is required. Boolean - consumer
Reference This property is required. Map<String> - device
Id This property is required. Number - fraction
This property is required. Number - frame
Buffer Size Mib This property is required. Number - guest
Driver Version This property is required. String - index
This property is required. Number - license
Lists This property is required. List<String> - max
Resolution This property is required. String - mode
This property is required. String - name
This property is required. String - the name.
- num
Vgpus Allocated This property is required. Number - num
Virtual Display Heads This property is required. Number - numa
Node This property is required. Number - pci
Address This property is required. String - status
This property is required. String - uuid
This property is required. String - the uuid.
- vendor
This property is required. String
GetHostsEntityHostDisksReferenceList
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanix
Terraform Provider.