UNPKG

@pulumi/vsphere

Version:

A Pulumi package for creating vsphere resources

66 lines 2.4 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.getVappContainerOutput = exports.getVappContainer = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * The `vsphere.VappContainer` data source can be used to discover the ID of a * vApp container in vSphere. This is useful to return the ID of a vApp container * that you want to use to create virtual machines in using the * `vsphere.VirtualMachine` resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; * * const datacenter = vsphere.getDatacenter({ * name: "dc-01", * }); * const pool = datacenter.then(datacenter => vsphere.getVappContainer({ * name: "vapp-container-01", * datacenterId: datacenter.id, * })); * ``` */ function getVappContainer(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getVappContainer:getVappContainer", { "datacenterId": args.datacenterId, "name": args.name, }, opts); } exports.getVappContainer = getVappContainer; /** * The `vsphere.VappContainer` data source can be used to discover the ID of a * vApp container in vSphere. This is useful to return the ID of a vApp container * that you want to use to create virtual machines in using the * `vsphere.VirtualMachine` resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; * * const datacenter = vsphere.getDatacenter({ * name: "dc-01", * }); * const pool = datacenter.then(datacenter => vsphere.getVappContainer({ * name: "vapp-container-01", * datacenterId: datacenter.id, * })); * ``` */ function getVappContainerOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("vsphere:index/getVappContainer:getVappContainer", { "datacenterId": args.datacenterId, "name": args.name, }, opts); } exports.getVappContainerOutput = getVappContainerOutput; //# sourceMappingURL=getVappContainer.js.map