Proxmox Virtual Environment (Proxmox VE)

v2.0.0 published on Friday, Jul 15, 2022 by Daniel Muehlbachler-Pietrzykowski

getHosts

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(args: GetHostsArgs, opts?: InvokeOptions): Promise<GetHostsResult>
function getHostsOutput(args: GetHostsOutputArgs, opts?: InvokeOptions): Output<GetHostsResult>
def get_hosts(node_name: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetHostsResult
def get_hosts_output(node_name: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetHostsResult]
func LookupHosts(ctx *Context, args *LookupHostsArgs, opts ...InvokeOption) (*LookupHostsResult, error)
func LookupHostsOutput(ctx *Context, args *LookupHostsOutputArgs, opts ...InvokeOption) LookupHostsResultOutput

> Note: This function is named LookupHosts in the Go SDK.

public static class GetHosts 
{
    public static Task<GetHostsResult> InvokeAsync(GetHostsArgs args, InvokeOptions? opts = null)
    public static Output<GetHostsResult> Invoke(GetHostsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetHostsResult> getHosts(GetHostsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: proxmoxve:index/getHosts:getHosts
  arguments:
    # arguments dictionary

The following arguments are supported:

NodeName string
NodeName string
nodeName String
nodeName string
nodeName String

getHosts Result

The following output properties are available:

Addresses List<string>
Digest string
Entries List<Pulumi.ProxmoxVE.Outputs.GetHostsEntry>
Hostnames List<ImmutableArray<string>>
Id string

The provider-assigned unique ID for this managed resource.

NodeName string
Addresses []string
Digest string
Entries []GetHostsEntry
Hostnames [][]string
Id string

The provider-assigned unique ID for this managed resource.

NodeName string
addresses List<String>
digest String
entries List<GetHostsEntry>
hostnames List<List<String>>
id String

The provider-assigned unique ID for this managed resource.

nodeName String
addresses string[]
digest string
entries GetHostsEntry[]
hostnames string[][]
id string

The provider-assigned unique ID for this managed resource.

nodeName string
addresses Sequence[str]
digest str
entries Sequence[GetHostsEntry]
hostnames Sequence[Sequence[str]]
id str

The provider-assigned unique ID for this managed resource.

node_name str
addresses List<String>
digest String
entries List<Property Map>
hostnames List<List<String>>
id String

The provider-assigned unique ID for this managed resource.

nodeName String

Supporting Types

GetHostsEntry

Address string
Hostnames List<string>
Address string
Hostnames []string
address String
hostnames List<String>
address string
hostnames string[]
address str
hostnames Sequence[str]
address String
hostnames List<String>

Package Details

Repository
https://github.com/muhlba91/pulumi-proxmoxve
License
Apache-2.0
Notes

This Pulumi package is based on the proxmoxve Terraform Provider.