Skip to main content

effective_firewalls

Creates, updates, deletes, gets or lists an effective_firewalls resource.

Overview​

Nameeffective_firewalls
TypeResource
Idgoogle.compute.effective_firewalls

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
firewallPolicysarray[Output Only] Effective firewalls from firewall policies.
firewallsarrayEffective firewalls on the instance.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_effective_firewallsselectproject, zone, instance, networkInterfaceReturns effective firewalls applied to an interface of the instance.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
instancestring
networkInterfacestring
projectstring
zonestring

SELECT examples​

Returns effective firewalls applied to an interface of the instance.

SELECT
firewallPolicys,
firewalls
FROM google.compute.effective_firewalls
WHERE project = '{{ project }}' -- required
AND zone = '{{ zone }}' -- required
AND instance = '{{ instance }}' -- required
AND networkInterface = '{{ networkInterface }}' -- required
;