1. Packages
  2. vSphere
  3. API Docs
  4. getContentLibraryItem
vSphere v4.10.1 published on Friday, May 10, 2024 by Pulumi

vsphere.getContentLibraryItem

Explore with Pulumi AI

vsphere logo
vSphere v4.10.1 published on Friday, May 10, 2024 by Pulumi

    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:

    LibraryId string
    The ID of the content library in which the item exists.
    Name string
    The name of the content library item.
    Type string
    The type for the content library item. One of ovf, vm-template, or iso
    LibraryId string
    The ID of the content library in which the item exists.
    Name string
    The name of the content library item.
    Type string
    The type for the content library item. One of ovf, vm-template, or iso
    libraryId String
    The ID of the content library in which the item exists.
    name String
    The name of the content library item.
    type String
    The type for the content library item. One of ovf, vm-template, or iso
    libraryId string
    The ID of the content library in which the item exists.
    name string
    The name of the content library item.
    type string
    The type for the content library item. One of ovf, vm-template, or iso
    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, or iso
    libraryId String
    The ID of the content library in which the item exists.
    name String
    The name of the content library item.
    type String
    The type for the content library item. One of ovf, vm-template, or iso

    getContentLibraryItem Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    LibraryId string
    Name string
    Type string
    Id string
    The provider-assigned unique ID for this managed resource.
    LibraryId string
    Name string
    Type string
    id String
    The provider-assigned unique ID for this managed resource.
    libraryId String
    name String
    type String
    id string
    The provider-assigned unique ID for this managed resource.
    libraryId string
    name string
    type string
    id str
    The provider-assigned unique ID for this managed resource.
    library_id str
    name str
    type str
    id String
    The provider-assigned unique ID for this managed resource.
    libraryId String
    name String
    type String

    Package Details

    Repository
    vSphere pulumi/pulumi-vsphere
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the vsphere Terraform Provider.
    vsphere logo
    vSphere v4.10.1 published on Friday, May 10, 2024 by Pulumi