## PowerCLI Reference

# Get-CIVAppTemplate

## Synopsis

This cmdlet retrieves vApp templates.

Syntax

Get-CIVAppTemplate [[-Name] <String[]>] [-Catalog <Catalog[]>] [-Owner <CIUser[]>] [-Server <CIServer[]>] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [<CommonParameters>]
Get-CIVAppTemplate -Id <String[]> [-Server <CIServer[]>] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [<CommonParameters>]

Related Commands

Online version
Get-CIVApp
Import-CIVApp
Import-CIVAppTempate

Detailed Description

This cmdlet retrieves vApp templates. You can filter the list of the returned templates by name, ID, catalog, and owner.

Parameters

Name | Type | Description | Required? | Pipeline Input | Default Value
--- | --- | --- | --- | --- | ---
Name | String[] | Specifies the names of the vApp templates you want to retrieve. | false | false
Catalog | Catalog[] | Specifies the catalog from which you want to retrieve vApp templates. | false | true (ByValue)
Id | String[] | Specifies the IDs of the virtual appliance templates 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. | true | false
InformationAction | ActionPreference |  | false | false
InformationVariable | String |  | false | false
Owner | CIUser[] | Specifies the owners of the vApp templates you want to retrieve. | false | true (ByValue)
PipelineVariable | String |  | false | false
Server | CIServer[] | Specifies the cloud servers 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-CIServer. | false | false

Return Type

Zero or more CIVAppTemplate objects

Notes

Examples

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

    Get-CIVAppTemplate

Gets a list of all virtual appliance templates visible to you.

-------------- Example 2 --------------

    Get-CIVAppTemplate -Name VAppTemplate

Gets the virtual appliance template named VAppTemplate.

-------------- Example 3 --------------

    Get-CIVAppTemplate -ID vAppTempalteId

Get a vAppTemplate by Id.

-------------- Example 4 --------------

    Get-Catalog Catalog1 | Get-CIVAppTemplate

Gets all virtual appliance templates in the catalog named Catalog1.

Copyright © VMware, Inc. All rights reserved.