Proxmox Virtual Environment (Proxmox VE) v6.14.0 published on Monday, Sep 9, 2024 by Daniel Muehlbachler-Pietrzykowski
proxmoxve.Network.getHosts
Explore with Pulumi AI
Proxmox Virtual Environment (Proxmox VE) v6.14.0 published on Monday, Sep 9, 2024 by Daniel Muehlbachler-Pietrzykowski
Retrieves all the host entries from a specific node.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as proxmoxve from "@pulumi/proxmoxve";
const firstNodeHostEntries = proxmoxve.Network.getHosts({
nodeName: "first-node",
});
import pulumi
import pulumi_proxmoxve as proxmoxve
first_node_host_entries = proxmoxve.Network.get_hosts(node_name="first-node")
package main
import (
"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/Network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Network.GetHosts(ctx, &network.GetHostsArgs{
NodeName: "first-node",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ProxmoxVE = Pulumi.ProxmoxVE;
return await Deployment.RunAsync(() =>
{
var firstNodeHostEntries = ProxmoxVE.Network.GetHosts.Invoke(new()
{
NodeName = "first-node",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.proxmoxve.Network.NetworkFunctions;
import com.pulumi.proxmoxve.Network.inputs.GetHostsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var firstNodeHostEntries = NetworkFunctions.getHosts(GetHostsArgs.builder()
.nodeName("first-node")
.build());
}
}
variables:
firstNodeHostEntries:
fn::invoke:
Function: proxmoxve:Network:getHosts
Arguments:
nodeName: first-node
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 GetHosts(ctx *Context, args *GetHostsArgs, opts ...InvokeOption) (*GetHostsResult, error)
func GetHostsOutput(ctx *Context, args *GetHostsOutputArgs, opts ...InvokeOption) GetHostsResultOutput
> Note: This function is named GetHosts
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:Network/getHosts:getHosts
arguments:
# arguments dictionary
The following arguments are supported:
- Node
Name string - A node name.
- Node
Name string - A node name.
- node
Name String - A node name.
- node
Name string - A node name.
- node_
name str - A node name.
- node
Name String - A node name.
getHosts Result
The following output properties are available:
- Addresses List<string>
- The IP addresses.
- Digest string
- The SHA1 digest.
- Entries
List<Pulumi.
Proxmox VE. Network. Outputs. Get Hosts Entry> - The host entries (conversion of
addresses
andhostnames
into objects). - Hostnames
List<Immutable
Array<string>> - The hostnames associated with each of the IP addresses.
- Id string
- The provider-assigned unique ID for this managed resource.
- Node
Name string
- Addresses []string
- The IP addresses.
- Digest string
- The SHA1 digest.
- Entries
[]Get
Hosts Entry - The host entries (conversion of
addresses
andhostnames
into objects). - Hostnames [][]string
- The hostnames associated with each of the IP addresses.
- Id string
- The provider-assigned unique ID for this managed resource.
- Node
Name string
- addresses List<String>
- The IP addresses.
- digest String
- The SHA1 digest.
- entries
List<Get
Hosts Entry> - The host entries (conversion of
addresses
andhostnames
into objects). - hostnames List<List<String>>
- The hostnames associated with each of the IP addresses.
- id String
- The provider-assigned unique ID for this managed resource.
- node
Name String
- addresses string[]
- The IP addresses.
- digest string
- The SHA1 digest.
- entries
Get
Hosts Entry[] - The host entries (conversion of
addresses
andhostnames
into objects). - hostnames string[][]
- The hostnames associated with each of the IP addresses.
- id string
- The provider-assigned unique ID for this managed resource.
- node
Name string
- addresses Sequence[str]
- The IP addresses.
- digest str
- The SHA1 digest.
- entries
Sequence[network.
Get Hosts Entry] - The host entries (conversion of
addresses
andhostnames
into objects). - hostnames Sequence[Sequence[str]]
- The hostnames associated with each of the IP addresses.
- id str
- The provider-assigned unique ID for this managed resource.
- node_
name str
- addresses List<String>
- The IP addresses.
- digest String
- The SHA1 digest.
- entries List<Property Map>
- The host entries (conversion of
addresses
andhostnames
into objects). - hostnames List<List<String>>
- The hostnames associated with each of the IP addresses.
- id String
- The provider-assigned unique ID for this managed resource.
- node
Name String
Supporting Types
GetHostsEntry
Package Details
- Repository
- proxmoxve muhlba91/pulumi-proxmoxve
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
proxmox
Terraform Provider.
Proxmox Virtual Environment (Proxmox VE) v6.14.0 published on Monday, Sep 9, 2024 by Daniel Muehlbachler-Pietrzykowski