@muhlba91/pulumi-proxmoxve
Version:
A Pulumi package for creating and managing Proxmox Virtual Environment cloud resources.
77 lines (76 loc) • 2.45 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";
*
* const exampleAll = proxmoxve.HA.getHAResources({});
* const exampleVm = proxmoxve.HA.getHAResources({
* type: "vm",
* });
* export const dataProxmoxVirtualEnvironmentHaresources = {
* 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";
*
* const exampleAll = proxmoxve.HA.getHAResources({});
* const exampleVm = proxmoxve.HA.getHAResources({
* type: "vm",
* });
* export const dataProxmoxVirtualEnvironmentHaresources = {
* 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>;
}