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 connections.
Example Usage
using Pulumi;
using VSphere = Pulumi.VSphere;
class MyStack : Stack
{
public MyStack()
{
var library = Output.Create(VSphere.GetContentLibrary.InvokeAsync(new VSphere.GetContentLibraryArgs
{
Name = "Content Library Test",
}));
}
}
Coming soon!
import pulumi
import pulumi_vsphere as vsphere
library = vsphere.get_content_library(name="Content Library Test")import * as pulumi from "@pulumi/pulumi";
import * as vsphere from "@pulumi/vsphere";
const library = pulumi.output(vsphere.getContentLibrary({
name: "Content Library Test",
}, { async: true }));Using GetContentLibrary
function getContentLibrary(args: GetContentLibraryArgs, opts?: InvokeOptions): Promise<GetContentLibraryResult>function get_content_library(name=None, opts=None)func LookupContentLibrary(ctx *Context, args *LookupContentLibraryArgs, opts ...InvokeOption) (*LookupContentLibraryResult, error)Note: This function is named
LookupContentLibraryin the Go SDK.
public static class GetContentLibrary {
public static Task<GetContentLibraryResult> InvokeAsync(GetContentLibraryArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetContentLibrary Result
The following output properties are available:
Package Details
- Repository
- https://github.com/pulumi/pulumi-vsphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vsphereTerraform Provider.