UNPKG

@pulumi/vsphere

Version:

A Pulumi package for creating vsphere resources

52 lines 1.75 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.getLicenseOutput = exports.getLicense = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * The `vsphere.License` data source can be used to get the general attributes of * a license keys from a vCenter Server instance. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; * * const license = vsphere.getLicense({ * licenseKey: "00000-00000-00000-00000-00000", * }); * ``` */ function getLicense(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getLicense:getLicense", { "licenseKey": args.licenseKey, }, opts); } exports.getLicense = getLicense; /** * The `vsphere.License` data source can be used to get the general attributes of * a license keys from a vCenter Server instance. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; * * const license = vsphere.getLicense({ * licenseKey: "00000-00000-00000-00000-00000", * }); * ``` */ function getLicenseOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("vsphere:index/getLicense:getLicense", { "licenseKey": args.licenseKey, }, opts); } exports.getLicenseOutput = getLicenseOutput; //# sourceMappingURL=getLicense.js.map