@muhlba91/pulumi-proxmoxve
Version:
A Pulumi package for creating and managing Proxmox Virtual Environment cloud resources.
81 lines • 2.77 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* 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.getHaresources({});
* // This will fetch the set of HA resource identifiers that correspond to virtual machines.
* const exampleVm = proxmoxve.getHaresources({
* type: "vm",
* });
* export const dataProxmoxHaresources = {
* all: exampleAll.then(exampleAll => exampleAll.resourceIds),
* vms: exampleVm.then(exampleVm => exampleVm.resourceIds),
* };
* ```
*/
export declare function getHaresources(args?: GetHaresourcesArgs, opts?: pulumi.InvokeOptions): Promise<GetHaresourcesResult>;
/**
* A collection of arguments for invoking getHaresources.
*/
export interface GetHaresourcesArgs {
/**
* 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 getHaresources.
*/
export interface GetHaresourcesResult {
/**
* 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;
}
/**
* 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.getHaresources({});
* // This will fetch the set of HA resource identifiers that correspond to virtual machines.
* const exampleVm = proxmoxve.getHaresources({
* type: "vm",
* });
* export const dataProxmoxHaresources = {
* all: exampleAll.then(exampleAll => exampleAll.resourceIds),
* vms: exampleVm.then(exampleVm => exampleVm.resourceIds),
* };
* ```
*/
export declare function getHaresourcesOutput(args?: GetHaresourcesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetHaresourcesResult>;
/**
* A collection of arguments for invoking getHaresources.
*/
export interface GetHaresourcesOutputArgs {
/**
* 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=getHaresources.d.ts.map