effective_firewalls
Creates, updates, deletes, gets or lists an effective_firewalls resource.
Overview
| Name | effective_firewalls |
| Type | Resource |
| Id | google.compute.effective_firewalls |
Fields
The following fields are returned by SELECT queries:
- get_effective_firewalls
| Name | Datatype | Description |
|---|---|---|
firewallPolicys | array | [Output Only] Effective firewalls from firewall policies. |
firewalls | array | Effective firewalls on the instance. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_effective_firewalls | select | project, zone, instance, networkInterface | Returns 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.
| Name | Datatype | Description |
|---|---|---|
instance | string | |
networkInterface | string | |
project | string | |
zone | string |
SELECT examples
- get_effective_firewalls
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
;