vSphere PowerCLI Reference

Get-VApp

Synopsis

Retrieves vApps.

Syntax

Get-VApp [-Location <VIContainer[]>] [[-Name] <String[]>] [-NoRecursion] [-Server <VIServer[]>] [<CommonParameters>]
Get-VApp -Id <String[]> [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

Online version
Export-VApp
Import-VApp
New-VApp
Remove-VApp
Set-VApp
Start-VApp
Stop-VApp
Move-VApp

Detailed Description

Retrieves vApps.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
NameString[]Specify the names of the vApps that you want to retrieve.falsefalse
IdString[]Specify the IDs of the vApps that you want to retrieve.truefalse
LocationVIContainer[]Specify Folder, Cluster, Datacenter, VMHost, and ResourcePool objects you want to search for vApps.falsetrue (ByValue)
NoRecursionSwitchParameterIndicate that you want to disable the recursive behavior of the command.falsefalse
ServerVIServer[]Specify the vCenter Server systems on which you want to run the cmdlet. If no value is given 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

VApp

Notes

Examples

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

Get-ResourcePool MyResourcePool1 | Get-VApp -NoRecursion

Retrieves all the vApps in the ResourcePool resource pool with no recursion.


Copyright © 1998 - 2012 VMware, Inc. All rights reserved.