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]
[-ItemType <String[]>]
[-Name <String[]>]
[-Server <VIServer[]>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
optional |
|
ContentLibrary[] | named |
|
Filters items by ContentLibrary. | optional |
|
String[] | named |
|
Filters the catalog items by type. | optional |
|
String[] | named |
|
Specifies the names of the catalog items you want to retrieve. | optional |
|
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. |
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
String[] | named |
|
Specifies the IDs of the catalog items you want to retrieve. Note: When a list of values is specified for the Id parameter, the returned objects have an ID that matches exactly one of the string values in that list. | optional |
|
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.ContentLibraryItem
Examples
Example 1
Get-ContentLibraryItem -Type "OVF" -Name "Windows*"
Retrieves content library templates of the specified type that match the specified name.
Related Commands
ContentLibrary
This cmdlet creates a new local or subscribed content library.
This cmdlet modifies content library's properties.
This cmdlet removes the specified content libraries.
Creates a new local or subscribed content library that uses Datastore1 as a repository for its items.
ContentLibraryItem
This cmdlet retrieves catalog items from the content library.
This cmdlet copies content library items to a local content library.
This cmdlet exports content library item's files to the local machine.
This cmdlet modifies content library item's properties.
This cmdlet removes the specified content library items.
This cmdlet creates a new content library item in the specified content library.