import * as pulumi from "@pulumi/pulumi"; /** * 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.getHaresources({}); * // ...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.getHaresource({ * resourceId: __value, * }) }), {})); * export const proxmoxHaresourcesFull = example; * ``` */ export declare function getHaresource(args: GetHaresourceArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getHaresource. */ export interface GetHaresourceArgs { /** * The identifier of the Proxmox HA resource to read. */ resourceId: string; } /** * A collection of values returned by getHaresource. */ export interface GetHaresourceResult { /** * 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; } /** * 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.getHaresources({}); * // ...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.getHaresource({ * resourceId: __value, * }) }), {})); * export const proxmoxHaresourcesFull = example; * ``` */ export declare function getHaresourceOutput(args: GetHaresourceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getHaresource. */ export interface GetHaresourceOutputArgs { /** * The identifier of the Proxmox HA resource to read. */ resourceId: pulumi.Input; } //# sourceMappingURL=getHaresource.d.ts.map