Get-ContentLibraryItem

This cmdlet retrieves catalog items from the content library and returns a set of catalog items that correspond to the filter criteria defined by the cmdlet parameters.

Syntax

[-ContentLibrary  <ContentLibrary[]>]
[-ItemType  <String[]>]
[-Name  <String[]>]
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional
ContentLibrary
ContentLibrary[] named Filters items by ContentLibrary.
optional
ItemType
String[] named
  • wildcards
  • Filters the catalog items by type.
    optional
    Name
    String[] named
  • wildcards
  • Specifies the names of the catalog items you want to retrieve.
    optional
    Server
    VIServer[] named
  • wildcards
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.

    -Id  <String[]>
    [-Server  <VIServer[]>]
    [CommonParameters]

    Parameters

    Required Parameter Name Type Position Features Description
    required
    Id
    String[] named Specifies the IDs of the catalog items you want to retrieve.
    optional
    Server
    VIServer[] named
  • wildcards
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.

    Output

    VMware.VimAutomation.ViCore.Types.V1.ContentLibrary.ContentLibraryItem

    Examples


    Example 1

    PS C:\> Get-ContentLibraryItem -Type "OVF" -Name "Windows*"

    Retrieves content library templates of the specified type that match the specified name.

    Related Commands

    Feedback

    Was this page helpful?