@muhlba91/pulumi-proxmoxve
Version:
A Pulumi package for creating and managing Proxmox Virtual Environment cloud resources.
62 lines • 2.15 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getHAResourcesOutput = exports.getHAResources = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* 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),
* };
* ```
*/
function getHAResources(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("proxmoxve:HA/getHAResources:getHAResources", {
"type": args.type,
}, opts);
}
exports.getHAResources = getHAResources;
/**
* 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),
* };
* ```
*/
function getHAResourcesOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("proxmoxve:HA/getHAResources:getHAResources", {
"type": args.type,
}, opts);
}
exports.getHAResourcesOutput = getHAResourcesOutput;
//# sourceMappingURL=getHAResources.js.map