< Back

Get-GceTargetProxy

Mon Jan 13, 2020 11:15 pm

NAME Get-GceTargetProxy



SYNOPSIS

Gets Google Compute Engine target proxies.





SYNTAX

Get-GceTargetProxy [-Project <string>] [-Http <SwitchParameter>] [-Https <SwitchParameter>] [<CommonParameters>]



Get-GceTargetProxy [-Project <string>] [-Name] <string> [-Http <SwitchParameter>] [-Https <SwitchParameter>]

[<CommonParameters>]





DESCRIPTION

Lists target proxies of a project, or gets a specific one.





PARAMETERS

-Project <string>

The project the target proxies belong to. Defaults to the project in the Cloud SDK config.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Name <string>

The name of the target proxy to get.



Required? true

Position? 0

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Http <SwitchParameter>

If set, will get target http proxies. If neither this nor Https is set, will get both http and https proxies.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Https <SwitchParameter>

If set, will get target https proxies. If neither this nor Https is set, will get both http and https proxies.



Required? false

Position? named

Default value False

Accept pipeline input? false

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



OUTPUTS

Google.Apis.Compute.v1.Data.TargetHttpProxy



Google.Apis.Compute.v1.Data.TargetHttpsProxy





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



PS C:\\> Get-GceTargetProxy



This command lists all target proxies for the default project.

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



PS C:\\> Get-GceTargetProxy -Region us-central1



This command lists all target proxies in region "us-central1" for the default project.

---------- EXAMPLE 3 ----------



PS C:\\> Get-GceTargetProxy "my-target-proxy"



This command gets the target proxy named "my-target-proxy" in the default project and zone



RELATED LINKS

[Target Proxy resource definition]

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