UNPKG

@pulumi/vsphere

Version:

A Pulumi package for creating vsphere resources

78 lines 2.79 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.getGuestOsCustomizationOutput = exports.getGuestOsCustomization = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * The `vsphere.GuestOsCustomization` data source can be used to discover the * details about a customization specification for a guest operating system. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; * * const datacenter = vsphere.getDatacenter({ * name: "dc-01", * }); * const template = datacenter.then(datacenter => vsphere.getVirtualMachine({ * name: "windows-template", * datacenterId: datacenter.id, * })); * const windows = vsphere.getGuestOsCustomization({ * name: "windows", * }); * const vm = new vsphere.VirtualMachine("vm", { * templateUuid: template.then(template => template.id), * customizationSpec: [{ * id: windows.then(windows => windows.id), * }], * }); * ``` */ function getGuestOsCustomization(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getGuestOsCustomization:getGuestOsCustomization", { "name": args.name, }, opts); } exports.getGuestOsCustomization = getGuestOsCustomization; /** * The `vsphere.GuestOsCustomization` data source can be used to discover the * details about a customization specification for a guest operating system. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; * * const datacenter = vsphere.getDatacenter({ * name: "dc-01", * }); * const template = datacenter.then(datacenter => vsphere.getVirtualMachine({ * name: "windows-template", * datacenterId: datacenter.id, * })); * const windows = vsphere.getGuestOsCustomization({ * name: "windows", * }); * const vm = new vsphere.VirtualMachine("vm", { * templateUuid: template.then(template => template.id), * customizationSpec: [{ * id: windows.then(windows => windows.id), * }], * }); * ``` */ function getGuestOsCustomizationOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("vsphere:index/getGuestOsCustomization:getGuestOsCustomization", { "name": args.name, }, opts); } exports.getGuestOsCustomizationOutput = getGuestOsCustomizationOutput; //# sourceMappingURL=getGuestOsCustomization.js.map