@muhlba91/pulumi-proxmoxve
Version:
A Pulumi package for creating and managing Proxmox Virtual Environment cloud resources.
74 lines • 2.46 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.getMappingsOutput = exports.getMappings = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Retrieves a list of hardware mapping resources.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
*
* const example_dir = proxmoxve.Hardware.getMappings({
* checkNode: "pve",
* type: "dir",
* });
* const example_pci = proxmoxve.Hardware.getMappings({
* checkNode: "pve",
* type: "pci",
* });
* const example_usb = proxmoxve.Hardware.getMappings({
* checkNode: "pve",
* type: "usb",
* });
* export const dataProxmoxVirtualEnvironmentHardwareMappingsPci = example_pci;
* export const dataProxmoxVirtualEnvironmentHardwareMappingsUsb = example_usb;
* ```
*/
function getMappings(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("proxmoxve:Hardware/getMappings:getMappings", {
"checkNode": args.checkNode,
"type": args.type,
}, opts);
}
exports.getMappings = getMappings;
/**
* Retrieves a list of hardware mapping resources.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
*
* const example_dir = proxmoxve.Hardware.getMappings({
* checkNode: "pve",
* type: "dir",
* });
* const example_pci = proxmoxve.Hardware.getMappings({
* checkNode: "pve",
* type: "pci",
* });
* const example_usb = proxmoxve.Hardware.getMappings({
* checkNode: "pve",
* type: "usb",
* });
* export const dataProxmoxVirtualEnvironmentHardwareMappingsPci = example_pci;
* export const dataProxmoxVirtualEnvironmentHardwareMappingsUsb = example_usb;
* ```
*/
function getMappingsOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("proxmoxve:Hardware/getMappings:getMappings", {
"checkNode": args.checkNode,
"type": args.type,
}, opts);
}
exports.getMappingsOutput = getMappingsOutput;
//# sourceMappingURL=getMappings.js.map