UNPKG

@muhlba91/pulumi-proxmoxve

Version:

A Pulumi package for creating and managing Proxmox Virtual Environment cloud resources.

114 lines 3.17 kB
"use strict"; // *** 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.getContainersOutput = exports.getContainers = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Retrieves information about all containers in the Proxmox cluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as proxmoxve from "@muhlba91/pulumi-proxmoxve"; * * const ubuntuContainers = proxmoxve.getContainers({ * tags: ["ubuntu"], * }); * const ubuntuTemplates = proxmoxve.getContainers({ * filters: [ * { * name: "template", * values: ["true"], * }, * { * name: "status", * values: ["stopped"], * }, * { * name: "name", * regex: true, * values: ["^ubuntu-20.*$"], * }, * { * name: "node_name", * regex: true, * values: [ * "node_us_[1-3]", * "node_eu_[1-3]", * ], * }, * ], * tags: [ * "template", * "latest", * ], * }); * ``` */ function getContainers(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("proxmoxve:index/getContainers:getContainers", { "filters": args.filters, "nodeName": args.nodeName, "tags": args.tags, }, opts); } exports.getContainers = getContainers; /** * Retrieves information about all containers in the Proxmox cluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as proxmoxve from "@muhlba91/pulumi-proxmoxve"; * * const ubuntuContainers = proxmoxve.getContainers({ * tags: ["ubuntu"], * }); * const ubuntuTemplates = proxmoxve.getContainers({ * filters: [ * { * name: "template", * values: ["true"], * }, * { * name: "status", * values: ["stopped"], * }, * { * name: "name", * regex: true, * values: ["^ubuntu-20.*$"], * }, * { * name: "node_name", * regex: true, * values: [ * "node_us_[1-3]", * "node_eu_[1-3]", * ], * }, * ], * tags: [ * "template", * "latest", * ], * }); * ``` */ function getContainersOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("proxmoxve:index/getContainers:getContainers", { "filters": args.filters, "nodeName": args.nodeName, "tags": args.tags, }, opts); } exports.getContainersOutput = getContainersOutput; //# sourceMappingURL=getContainers.js.map