Get-ContentLibrary

This cmdlet retrieves content libraries and returns a set of content libraries that correspond to the filter criteria defined by the cmdlet parameters.

Syntax

[-Local]
[-Name  <String[]>]
[-Server  <VIServer[]>]
[-Subscribed]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional
Local
SwitchParameter named Specifies that you want to retrieve only the local content libraries.
optional
Name
String[] named
  • wildcards
  • Specifies the names of the content libraries you want to retrieve.
    optional
    Server
    VIServer[] named 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.
    optional
    Subscribed
    SwitchParameter named Specifies that you want to retrieve only the subscribed content libraries.

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

    Parameters

    Required Parameter Name Type Position Features Description
    required
    Id
    String[] named Specifies the IDs of the content libraries you want to retrieve.
    optional
    Server
    VIServer[] named 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.ContentLibrary

    Examples


    Example 1

    PS C:\> Get-ContentLibrary

    Retrieves all content libraries from the default connected servers.

    Example 2

    PS C:\> Get-ContentLibrary -Local

    Returns all local content libraries from the default connected servers.

    Example 3

    PS C:\> Get-ContentLibrary -Name 'Local*'

    Retrieves all content libraries whose name starts with 'Local' from the default connected servers.

    Related Commands

    Feedback

    Was this page helpful?