vSphere v4.10.1 published on Friday, May 10, 2024 by Pulumi
vsphere.getContentLibraryItem
Explore with Pulumi AI
The vsphere.ContentLibraryItem
data source can be used to discover the ID
of a content library item.
NOTE: This resource requires vCenter Server and is not available on direct ESXi host connections.
Using getContentLibraryItem
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getContentLibraryItem(args: GetContentLibraryItemArgs, opts?: InvokeOptions): Promise<GetContentLibraryItemResult>
function getContentLibraryItemOutput(args: GetContentLibraryItemOutputArgs, opts?: InvokeOptions): Output<GetContentLibraryItemResult>
def get_content_library_item(library_id: Optional[str] = None,
name: Optional[str] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetContentLibraryItemResult
def get_content_library_item_output(library_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetContentLibraryItemResult]
func LookupContentLibraryItem(ctx *Context, args *LookupContentLibraryItemArgs, opts ...InvokeOption) (*LookupContentLibraryItemResult, error)
func LookupContentLibraryItemOutput(ctx *Context, args *LookupContentLibraryItemOutputArgs, opts ...InvokeOption) LookupContentLibraryItemResultOutput
> Note: This function is named LookupContentLibraryItem
in the Go SDK.
public static class GetContentLibraryItem
{
public static Task<GetContentLibraryItemResult> InvokeAsync(GetContentLibraryItemArgs args, InvokeOptions? opts = null)
public static Output<GetContentLibraryItemResult> Invoke(GetContentLibraryItemInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetContentLibraryItemResult> getContentLibraryItem(GetContentLibraryItemArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: vsphere:index/getContentLibraryItem:getContentLibraryItem
arguments:
# arguments dictionary
The following arguments are supported:
- library_
id str - The ID of the content library in which the item exists.
- name str
- The name of the content library item.
- type str
- The type for the content library item. One of
ovf
,vm-template
, oriso
getContentLibraryItem Result
The following output properties are available:
- id str
- The provider-assigned unique ID for this managed resource.
- library_
id str - name str
- type str
Package Details
- Repository
- vSphere pulumi/pulumi-vsphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vsphere
Terraform Provider.