@pulumi/vsphere
Version:
A Pulumi package for creating vsphere resources
66 lines • 2.26 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPolicyOutput = exports.getPolicy = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* The `vsphere.getPolicy` data source can be used to discover the UUID of a
* storage policy. This can then be used with other resources or data sources that
* use a storage policy.
*
* > **NOTE:** Storage policies are not supported on direct ESXi hosts and
* requires vCenter Server.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vsphere from "@pulumi/vsphere";
*
* const prodPlatinumReplicated = vsphere.getPolicy({
* name: "prod_platinum_replicated",
* });
* const devSilverNonreplicated = vsphere.getPolicy({
* name: "dev_silver_nonreplicated",
* });
* ```
*/
function getPolicy(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("vsphere:index/getPolicy:getPolicy", {
"name": args.name,
}, opts);
}
exports.getPolicy = getPolicy;
/**
* The `vsphere.getPolicy` data source can be used to discover the UUID of a
* storage policy. This can then be used with other resources or data sources that
* use a storage policy.
*
* > **NOTE:** Storage policies are not supported on direct ESXi hosts and
* requires vCenter Server.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vsphere from "@pulumi/vsphere";
*
* const prodPlatinumReplicated = vsphere.getPolicy({
* name: "prod_platinum_replicated",
* });
* const devSilverNonreplicated = vsphere.getPolicy({
* name: "dev_silver_nonreplicated",
* });
* ```
*/
function getPolicyOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("vsphere:index/getPolicy:getPolicy", {
"name": args.name,
}, opts);
}
exports.getPolicyOutput = getPolicyOutput;
//# sourceMappingURL=getPolicy.js.map