Class GetContentLibraryItem
Inheritance
System.Object
GetContentLibraryItem
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.VSphere
Assembly: Pulumi.VSphere.dll
Syntax
public static class GetContentLibraryItem
Methods
View SourceInvokeAsync(GetContentLibraryItemArgs, InvokeOptions)
The vsphere..ContentLibraryItem data source can be used to discover the ID of a Content Library item.
NOTE: This resource requires vCenter and is not available on direct ESXi connections.
{{% examples %}}
Example Usage
{{% example %}}
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",
}));
var item = library.Apply(library => Output.Create(VSphere.GetContentLibraryItem.InvokeAsync(new VSphere.GetContentLibraryItemArgs
{
Name = "Ubuntu Bionic 18.04",
LibraryId = library.Id,
})));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetContentLibraryItemResult> InvokeAsync(GetContentLibraryItemArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetContentLibraryItemArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetContentLibraryItemResult> |