UNPKG

@pulumi/vsphere

Version:

A Pulumi package for creating vsphere resources

66 lines 2.52 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.getConfigurationProfileOutput = exports.getConfigurationProfile = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * The `vsphere.ConfigurationProfile` data source can be used to export the configuration and schema * of a cluster that is already managed via configuration profiles. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; * * const datacenter = vsphere.getDatacenter({ * name: "dc-01", * }); * const computeCluster = datacenter.then(datacenter => vsphere.getComputeCluster({ * name: "cluster-01", * datacenterId: datacenter.id, * })); * const profile = computeCluster.then(computeCluster => vsphere.getConfigurationProfile({ * clusterId: computeCluster.id, * })); * ``` */ function getConfigurationProfile(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getConfigurationProfile:getConfigurationProfile", { "clusterId": args.clusterId, }, opts); } exports.getConfigurationProfile = getConfigurationProfile; /** * The `vsphere.ConfigurationProfile` data source can be used to export the configuration and schema * of a cluster that is already managed via configuration profiles. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; * * const datacenter = vsphere.getDatacenter({ * name: "dc-01", * }); * const computeCluster = datacenter.then(datacenter => vsphere.getComputeCluster({ * name: "cluster-01", * datacenterId: datacenter.id, * })); * const profile = computeCluster.then(computeCluster => vsphere.getConfigurationProfile({ * clusterId: computeCluster.id, * })); * ``` */ function getConfigurationProfileOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("vsphere:index/getConfigurationProfile:getConfigurationProfile", { "clusterId": args.clusterId, }, opts); } exports.getConfigurationProfileOutput = getConfigurationProfileOutput; //# sourceMappingURL=getConfigurationProfile.js.map