Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

getContentLibraryItem

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.

Using getContentLibraryItem

function getContentLibraryItem(args: GetContentLibraryItemArgs, opts?: InvokeOptions): Promise<GetContentLibraryItemResult>
def get_content_library_item(library_id: Optional[str] = None, name: Optional[str] = None, type: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetContentLibraryItemResult
func LookupContentLibraryItem(ctx *Context, args *LookupContentLibraryItemArgs, opts ...InvokeOption) (*LookupContentLibraryItemResult, error)

Note: This function is named LookupContentLibraryItem in the Go SDK.

public static class GetContentLibraryItem {
    public static Task<GetContentLibraryItemResult> InvokeAsync(GetContentLibraryItemArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

LibraryId string

The ID of the Content Library the item exists in.

Name string

The name of the Content Library.

Type string

The Content Library type. Can be ovf, iso, or vm-template.

LibraryId string

The ID of the Content Library the item exists in.

Name string

The name of the Content Library.

Type string

The Content Library type. Can be ovf, iso, or vm-template.

libraryId string

The ID of the Content Library the item exists in.

name string

The name of the Content Library.

type string

The Content Library type. Can be ovf, iso, or vm-template.

library_id str

The ID of the Content Library the item exists in.

name str

The name of the Content Library.

type str

The Content Library type. Can be ovf, iso, or vm-template.

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

The Content Library type. Can be ovf, iso, or vm-template.

Id string

The provider-assigned unique ID for this managed resource.

LibraryId string
Name string
Type string

The Content Library type. Can be ovf, iso, or vm-template.

id string

The provider-assigned unique ID for this managed resource.

libraryId string
name string
type string

The Content Library type. Can be ovf, iso, or vm-template.

id str

The provider-assigned unique ID for this managed resource.

library_id str
name str
type str

The Content Library type. Can be ovf, iso, or vm-template.

Package Details

Repository
https://github.com/pulumi/pulumi-vsphere
License
Apache-2.0
Notes
This Pulumi package is based on the vsphere Terraform Provider.