< Back

Remove-GceFirewall

Mon Jan 13, 2020 11:36 pm

NAME Remove-GceFirewall



SYNOPSIS

Removes a firewall rule from a project.





SYNTAX

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



Remove-GceFirewall -InputObject <Firewall> [<CommonParameters>]





DESCRIPTION

Removes a firewall rule from a project.





PARAMETERS

-Project <string>

The name of the project from which to remove the firewall.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-FirewallName <string>

The name of the firewall rule to remove.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Name <string>

The name of the firewall rule to remove.



This is an alias of the FirewallName parameter.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Firewall <string>

The name of the firewall rule to remove.



This is an alias of the FirewallName parameter.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-InputObject <Firewall>

The firewall object to be removed.



Required? true

Position? named

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 remove.



Google.Apis.Compute.v1.Data.Firewall

The firewall object to be removed.





OUTPUTS



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



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



Removes the firewall named "my-firewall" in the default project.



RELATED LINKS

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