PowerCLI Reference

Get-ContentLibraryItem

Synopsis

This cmdlet retrieves catalog items from the content library.

Syntax

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

Get-ContentLibraryItem [[-Name] <String[]>] [-ItemType <String[]>] [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

Online Version

Detailed Description

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

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
NameString[]Specifies the names of the catalog items you want to retrieve.falseFalse
IdString[]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 would have an ID that matches exactly one of the string values in that list.
trueFalse
ItemTypeString[]Filters the catalog items by type.falseFalse
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.falseFalse

Return Type

Zero or more ContentLibraryItem objects

Notes

Examples

-------------------------- Example 1 --------------------------

Get-ContentLibraryItem -Type "OVF" -Name "Windows*"

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


Copyright © VMware, Inc. All rights reserved.