@muhlba91/pulumi-proxmoxve
Version:
A Pulumi package for creating and managing Proxmox Virtual Environment cloud resources.
91 lines (90 loc) • 2.58 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 all = proxmoxve.HA.getHAResources({});
* const example = all.then(all => .map(([__key, __value]) => (proxmoxve.HA.getHAResource({
* resourceId: __value,
* }))));
* export const proxmoxVirtualEnvironmentHaresourcesFull = example;
* ```
*/
export declare function getHAResource(args: GetHAResourceArgs, opts?: pulumi.InvokeOptions): Promise<GetHAResourceResult>;
/**
* 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 the list of High Availability resources.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
*
* const all = proxmoxve.HA.getHAResources({});
* const example = all.then(all => .map(([__key, __value]) => (proxmoxve.HA.getHAResource({
* resourceId: __value,
* }))));
* export const proxmoxVirtualEnvironmentHaresourcesFull = example;
* ```
*/
export declare function getHAResourceOutput(args: GetHAResourceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetHAResourceResult>;
/**
* A collection of arguments for invoking getHAResource.
*/
export interface GetHAResourceOutputArgs {
/**
* The identifier of the Proxmox HA resource to read.
*/
resourceId: pulumi.Input<string>;
}