UNPKG

@muhlba91/pulumi-proxmoxve

Version:

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

89 lines 2.97 kB
import * as pulumi from "@pulumi/pulumi"; /** * Retrieves information about a specific High Availability group. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as proxmoxve from "@muhlba91/pulumi-proxmoxve"; * * // This will fetch the set of HA group identifiers... * const all = proxmoxve.getHagroups({}); * // ...which we will go through in order to fetch the whole data on each group. * const example = all.then(all => .reduce((__obj, [__key, __value]) => ({ ...__obj, [String(__key)]: proxmoxve.getHagroup({ * group: __value, * }) }), {})); * export const proxmoxHagroupsFull = example; * ``` */ export declare function getHagroup(args: GetHagroupArgs, opts?: pulumi.InvokeOptions): Promise<GetHagroupResult>; /** * A collection of arguments for invoking getHagroup. */ export interface GetHagroupArgs { /** * The identifier of the High Availability group to read. */ group: string; } /** * A collection of values returned by getHagroup. */ export interface GetHagroupResult { /** * The comment associated with this group */ readonly comment: string; /** * The identifier of the High Availability group to read. */ readonly group: string; /** * The unique identifier of this resource. */ readonly id: string; /** * A flag that indicates that failing back to a higher priority node is disabled for this HA group. */ readonly noFailback: boolean; /** * The member nodes for this group. They are provided as a map, where the keys are the node names and the values represent their priority: integers for known priorities or `null` for unset priorities. */ readonly nodes: { [key: string]: number; }; /** * A flag that indicates that other nodes may not be used to run resources associated to this HA group. */ readonly restricted: boolean; } /** * Retrieves information about a specific High Availability group. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as proxmoxve from "@muhlba91/pulumi-proxmoxve"; * * // This will fetch the set of HA group identifiers... * const all = proxmoxve.getHagroups({}); * // ...which we will go through in order to fetch the whole data on each group. * const example = all.then(all => .reduce((__obj, [__key, __value]) => ({ ...__obj, [String(__key)]: proxmoxve.getHagroup({ * group: __value, * }) }), {})); * export const proxmoxHagroupsFull = example; * ``` */ export declare function getHagroupOutput(args: GetHagroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetHagroupResult>; /** * A collection of arguments for invoking getHagroup. */ export interface GetHagroupOutputArgs { /** * The identifier of the High Availability group to read. */ group: pulumi.Input<string>; } //# sourceMappingURL=getHagroup.d.ts.map