UNPKG

@muhlba91/pulumi-proxmoxve

Version:

A Pulumi package for creating and managing Proxmox Virtual Environment cloud resources.

78 lines (77 loc) 1.94 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Retrieves all the host entries from a specific node. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as proxmoxve from "@muhlba91/pulumi-proxmoxve"; * * const firstNodeHostEntries = proxmoxve.Network.getHosts({ * nodeName: "first-node", * }); * ``` */ export declare function getHosts(args: GetHostsArgs, opts?: pulumi.InvokeOptions): Promise<GetHostsResult>; /** * A collection of arguments for invoking getHosts. */ export interface GetHostsArgs { /** * A node name. */ nodeName: string; } /** * A collection of values returned by getHosts. */ export interface GetHostsResult { /** * The IP addresses. */ readonly addresses: string[]; /** * The SHA1 digest. */ readonly digest: string; /** * The host entries (conversion of `addresses` and `hostnames` into * objects). */ readonly entries: outputs.Network.GetHostsEntry[]; /** * The hostnames associated with each of the IP addresses. */ readonly hostnames: string[][]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly nodeName: string; } /** * Retrieves all the host entries from a specific node. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as proxmoxve from "@muhlba91/pulumi-proxmoxve"; * * const firstNodeHostEntries = proxmoxve.Network.getHosts({ * nodeName: "first-node", * }); * ``` */ export declare function getHostsOutput(args: GetHostsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetHostsResult>; /** * A collection of arguments for invoking getHosts. */ export interface GetHostsOutputArgs { /** * A node name. */ nodeName: pulumi.Input<string>; }