< Back

Get-GceInstanceTemplate

Mon Jan 13, 2020 11:12 pm

NAME Get-GceInstanceTemplate



SYNOPSIS

Gets Google Compute Engine instance templates.





SYNTAX

Get-GceInstanceTemplate [-Project <string>] [<CommonParameters>]



Get-GceInstanceTemplate [-Project <string>] [-Name] <string> [<CommonParameters>]



Get-GceInstanceTemplate [-Object] <InstanceTemplate> [<CommonParameters>]





DESCRIPTION

Gets Google Compute Engine instance templates.





PARAMETERS

-Project <string>

The project that owns the template.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Name <string>

The name of the tempate to get.



Required? true

Position? 0

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Object <InstanceTemplate>

A template object. It must have valid SelfLink and Name attributes.



Required? true

Position? 0

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String

The name of the tempate to get.



Google.Apis.Compute.v1.Data.InstanceTemplate

A template object. It must have valid SelfLink and Name attributes.





OUTPUTS

Google.Apis.Compute.v1.Data.InstanceTemplate





---------- EXAMPLE 1 ----------



PS C:\\> Get-GceInstanceTemplate



Lists all instance templates in the default project.

---------- EXAMPLE 2 ----------



PS C:\\> Get-GceInstanceTemplate "my-template"



Gets the instance template naemd "my-template" in the default project.



RELATED LINKS

[Instance Template resource definition]

(https://cloud.google.com/compute/docs/r ... s#resource)