Skip to main content

network_firewall_policies

Creates, updates, deletes, gets or lists a network_firewall_policies resource.

Overview​

Namenetwork_firewall_policies
TypeResource
Idgoogle.compute.network_firewall_policies

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
aggregated_listselectprojectfilter, includeAllScopes, maxResults, orderBy, pageToken, returnPartialSuccess, serviceProjectNumberRetrieves an aggregated list of network firewall policies, listing network
firewall policies from all applicable scopes (global and regional) and
grouping the results per scope.

To prevent failure, it is recommended that you set the
returnPartialSuccess parameter to true.

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
projectstring
filterstring
includeAllScopesboolean
maxResultsinteger (uint32)
orderBystring
pageTokenstring
returnPartialSuccessboolean
serviceProjectNumberstring (int64)

SELECT examples​

Retrieves an aggregated list of network firewall policies, listing network
firewall policies from all applicable scopes (global and regional) and
grouping the results per scope.

To prevent failure, it is recommended that you set the
returnPartialSuccess parameter to true.

SELECT
*
FROM google.compute.network_firewall_policies
WHERE project = '{{ project }}' -- required
AND filter = '{{ filter }}'
AND includeAllScopes = '{{ includeAllScopes }}'
AND maxResults = '{{ maxResults }}'
AND orderBy = '{{ orderBy }}'
AND pageToken = '{{ pageToken }}'
AND returnPartialSuccess = '{{ returnPartialSuccess }}'
AND serviceProjectNumber = '{{ serviceProjectNumber }}'
;