Stay organized with collections Save and categorize content based on your preferences.
Resource: FirewallRuleA single firewall rule that is evaluated against incoming traffic and provides an action to take on matched requests.
JSON representation{
"priority": integer,
"action": enum (Action
),
"sourceRange": string,
"description": string
}
Fields priority
integer
A positive integer between [1, Int32.MaxValue-1] that defines the order of rule evaluation. Rules with the lowest priority are evaluated first.
A default rule at priority Int32.MaxValue matches all IPv4 and IPv6 traffic when no previous rule matches. Only the action of this rule can be modified by the user.
action
enum (
Action
)
The action to take on matched requests.
sourceRange
string
IP address or range, defined using CIDR notation, of requests that this rule applies to. You can use the wildcard character "*" to match all IPs equivalent to "0/0" and "::/0" together. Examples: 192.168.1.1
or 192.168.0.0/16
or 2001:db8::/32
or 2001:0db8:0000:0042:0000:8a2e:0370:7334
.
Truncation will be silently performed on addresses which are not properly truncated. For example, 1.2.3.4/24
is accepted as the same address as 1.2.3.0/24
. Similarly, for IPv6, 2001:db8::1/32
is accepted as the same address as 2001:db8::/32
.
description
string
An optional string description of this rule. This field has a maximum length of 400 characters.
ActionAvailable actions to take on matching requests.
EnumsUNSPECIFIED_ACTION
ALLOW
Matching requests are allowed. DENY
Matching requests are denied. Methods batchUpdate
Replaces the entire firewall ruleset in one bulk operation. create
Creates a firewall rule for the application. delete
Deletes the specified firewall rule. get
Gets the specified firewall rule. list
Lists the firewall rules of an application. patch
Updates the specified firewall rule.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[[["Firewall rules are evaluated based on priority, with lower priority numbers being evaluated first, and a default rule at the highest priority matches all unmatched traffic."],["Each firewall rule specifies an `action` (either `ALLOW` or `DENY`) to be taken on matched requests, which is determined by the `sourceRange`, and the `action` can be modified by the user on the highest priority rule."],["The `sourceRange` field defines the IP addresses or ranges, using CIDR notation, to which the rule applies, and can use \"\\*\" to match all IPs."],["Firewall rules can be managed through various methods, including creating, deleting, getting, listing, updating individual rules or updating all the ruleset, and replacing the entire set of rules in a single bulk operation."],["The rules can have an optional description of a maximum of 400 characters."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4