UNPKG

@muhlba91/pulumi-proxmoxve

Version:

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

85 lines 3.12 kB
import * as pulumi from "@pulumi/pulumi"; /** * > **Deprecated:** Use `proxmoxve.getHaresources` instead. This data source will be removed in v1.0. * * Retrieves the list of High Availability resources. * * ## 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 exampleAll = proxmoxve.getHaresourcesLegacy({}); * // This will fetch the set of HA resource identifiers that correspond to virtual machines. * const exampleVm = proxmoxve.getHaresourcesLegacy({ * type: "vm", * }); * export const dataProxmoxVirtualEnvironmentHaresources = { * all: exampleAll.then(exampleAll => exampleAll.resourceIds), * vms: exampleVm.then(exampleVm => exampleVm.resourceIds), * }; * ``` */ export declare function getHaresourcesLegacy(args?: GetHaresourcesLegacyArgs, opts?: pulumi.InvokeOptions): Promise<GetHaresourcesLegacyResult>; /** * A collection of arguments for invoking getHaresourcesLegacy. */ export interface GetHaresourcesLegacyArgs { /** * The type of High Availability resources to fetch (`vm` or `ct`). All resources will be fetched if this option is unset. */ type?: string; } /** * A collection of values returned by getHaresourcesLegacy. */ export interface GetHaresourcesLegacyResult { /** * The unique identifier of this resource. */ readonly id: string; /** * The identifiers of the High Availability resources. */ readonly resourceIds: string[]; /** * The type of High Availability resources to fetch (`vm` or `ct`). All resources will be fetched if this option is unset. */ readonly type?: string; } /** * > **Deprecated:** Use `proxmoxve.getHaresources` instead. This data source will be removed in v1.0. * * Retrieves the list of High Availability resources. * * ## 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 exampleAll = proxmoxve.getHaresourcesLegacy({}); * // This will fetch the set of HA resource identifiers that correspond to virtual machines. * const exampleVm = proxmoxve.getHaresourcesLegacy({ * type: "vm", * }); * export const dataProxmoxVirtualEnvironmentHaresources = { * all: exampleAll.then(exampleAll => exampleAll.resourceIds), * vms: exampleVm.then(exampleVm => exampleVm.resourceIds), * }; * ``` */ export declare function getHaresourcesLegacyOutput(args?: GetHaresourcesLegacyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetHaresourcesLegacyResult>; /** * A collection of arguments for invoking getHaresourcesLegacy. */ export interface GetHaresourcesLegacyOutputArgs { /** * The type of High Availability resources to fetch (`vm` or `ct`). All resources will be fetched if this option is unset. */ type?: pulumi.Input<string | undefined>; } //# sourceMappingURL=getHaresourcesLegacy.d.ts.map