< Back

Get-GceFirewall

Mon Jan 13, 2020 11:10 pm

NAME Get-GceFirewall



SYNOPSIS

Gets firewall rules for a project.





SYNTAX

Get-GceFirewall [-Project <string>] [[-FirewallName] <string>] [<CommonParameters>]





DESCRIPTION

Gets firewall rules for a project.





PARAMETERS

-Project <string>

The Project to get the firewall rule of.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-FirewallName <string>

The name of the firewall rule to get. -Name and -Firewall are aliases of this parameter.



Required? false

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Name <string>

The name of the firewall rule to get. -Name and -Firewall are aliases of this parameter.



This is an alias of the FirewallName parameter.



Required? false

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Firewall <string>

The name of the firewall rule to get. -Name and -Firewall are aliases of this parameter.



This is an alias of the FirewallName parameter.



Required? false

Position? 1

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 firewall rule to get. -Name and -Firewall are aliases of this parameter.





OUTPUTS

Google.Apis.Compute.v1.Data.Firewall





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



PS C:\\> Get-GceFirewall



Lists all firewall rules in the default project.

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



PS C:\\> Get-GceFirewall "my-firewall"



Gets the information of the firewall rule in the default project named "my-firewall".



RELATED LINKS

[Firewall resource definition] (https://cloud.google.com/compute/docs/r ... s#resource)