@pulumi/vsphere
Version:
A Pulumi package for creating vsphere resources
58 lines • 1.97 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.getContentLibraryOutput = exports.getContentLibrary = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* The `vsphere.ContentLibrary` data source can be used to discover the ID of a
* content library.
*
* > **NOTE:** This resource requires vCenter and is not available on direct ESXi
* host connections.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vsphere from "@pulumi/vsphere";
*
* const contentLibrary = vsphere.getContentLibrary({
* name: "Content Library",
* });
* ```
*/
function getContentLibrary(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("vsphere:index/getContentLibrary:getContentLibrary", {
"name": args.name,
}, opts);
}
exports.getContentLibrary = getContentLibrary;
/**
* The `vsphere.ContentLibrary` data source can be used to discover the ID of a
* content library.
*
* > **NOTE:** This resource requires vCenter and is not available on direct ESXi
* host connections.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vsphere from "@pulumi/vsphere";
*
* const contentLibrary = vsphere.getContentLibrary({
* name: "Content Library",
* });
* ```
*/
function getContentLibraryOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("vsphere:index/getContentLibrary:getContentLibrary", {
"name": args.name,
}, opts);
}
exports.getContentLibraryOutput = getContentLibraryOutput;
//# sourceMappingURL=getContentLibrary.js.map