UNPKG

@muhlba91/pulumi-proxmoxve

Version:

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

93 lines 3.31 kB
import * as pulumi from "@pulumi/pulumi"; /** * > **Deprecated:** Use `proxmoxve.Hagroup` instead. This data source will be removed in v1.0. * * 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.getHagroupsLegacy({}); * // ...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.getHagroupLegacy({ * group: __value, * }) }), {})); * export const proxmoxVirtualEnvironmentHagroupsFull = example; * ``` */ export declare function getHagroupLegacy(args: GetHagroupLegacyArgs, opts?: pulumi.InvokeOptions): Promise<GetHagroupLegacyResult>; /** * A collection of arguments for invoking getHagroupLegacy. */ export interface GetHagroupLegacyArgs { /** * The identifier of the High Availability group to read. */ group: string; } /** * A collection of values returned by getHagroupLegacy. */ export interface GetHagroupLegacyResult { /** * 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; } /** * > **Deprecated:** Use `proxmoxve.Hagroup` instead. This data source will be removed in v1.0. * * 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.getHagroupsLegacy({}); * // ...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.getHagroupLegacy({ * group: __value, * }) }), {})); * export const proxmoxVirtualEnvironmentHagroupsFull = example; * ``` */ export declare function getHagroupLegacyOutput(args: GetHagroupLegacyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetHagroupLegacyResult>; /** * A collection of arguments for invoking getHagroupLegacy. */ export interface GetHagroupLegacyOutputArgs { /** * The identifier of the High Availability group to read. */ group: pulumi.Input<string>; } //# sourceMappingURL=getHagroupLegacy.d.ts.map