import * as pulumi from "@pulumi/pulumi"; /** * > **Deprecated:** Use `proxmoxve.Haresource` instead. This data source will be removed in v1.0. * * Retrieves information about a specific High Availability resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as proxmoxve from "@muhlba91/pulumi-proxmoxve"; * * // This will fetch the set of all HA resource identifiers... * const all = proxmoxve.getHaresourcesLegacy({}); * // ...which we will go through in order to fetch the whole record for each resource. * const example = all.then(all => .reduce((__obj, [__key, __value]) => ({ ...__obj, [String(__key)]: proxmoxve.getHaresourceLegacy({ * resourceId: __value, * }) }), {})); * export const proxmoxVirtualEnvironmentHaresourcesFull = example; * ``` */ export declare function getHaresourceLegacy(args: GetHaresourceLegacyArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getHaresourceLegacy. */ export interface GetHaresourceLegacyArgs { /** * The identifier of the Proxmox HA resource to read. */ resourceId: string; } /** * A collection of values returned by getHaresourceLegacy. */ export interface GetHaresourceLegacyResult { /** * The comment associated with this resource. */ readonly comment: string; /** * The identifier of the High Availability group this resource is a member of. */ readonly group: string; /** * The unique identifier of this resource. */ readonly id: string; /** * The maximal number of relocation attempts. */ readonly maxRelocate: number; /** * The maximal number of restart attempts. */ readonly maxRestart: number; /** * The identifier of the Proxmox HA resource to read. */ readonly resourceId: string; /** * The desired state of the resource. */ readonly state: string; /** * The type of High Availability resource (`vm` or `ct`). */ readonly type: string; } /** * > **Deprecated:** Use `proxmoxve.Haresource` instead. This data source will be removed in v1.0. * * Retrieves information about a specific High Availability resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as proxmoxve from "@muhlba91/pulumi-proxmoxve"; * * // This will fetch the set of all HA resource identifiers... * const all = proxmoxve.getHaresourcesLegacy({}); * // ...which we will go through in order to fetch the whole record for each resource. * const example = all.then(all => .reduce((__obj, [__key, __value]) => ({ ...__obj, [String(__key)]: proxmoxve.getHaresourceLegacy({ * resourceId: __value, * }) }), {})); * export const proxmoxVirtualEnvironmentHaresourcesFull = example; * ``` */ export declare function getHaresourceLegacyOutput(args: GetHaresourceLegacyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getHaresourceLegacy. */ export interface GetHaresourceLegacyOutputArgs { /** * The identifier of the Proxmox HA resource to read. */ resourceId: pulumi.Input; } //# sourceMappingURL=getHaresourceLegacy.d.ts.map