Resource: FirewallRule
A single firewall rule that is evaluated against incoming traffic and provides an action to take on matched requests.
JSON representation |
---|
{
"priority": integer,
"action": enum ( |
Fields | |
---|---|
priority |
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 |
The action to take on matched requests. |
sourceRange |
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: Truncation will be silently performed on addresses which are not properly truncated. For example, |
description |
An optional string description of this rule. This field has a maximum length of 400 characters. |
Action
Available actions to take on matching requests.
Enums | |
---|---|
UNSPECIFIED_ACTION |
|
ALLOW |
Matching requests are allowed. |
DENY |
Matching requests are denied. |
Methods |
|
---|---|
|
Replaces the entire firewall ruleset in one bulk operation. |
|
Creates a firewall rule for the application. |
|
Deletes the specified firewall rule. |
|
Gets the specified firewall rule. |
|
Lists the firewall rules of an application. |
|
Updates the specified firewall rule. |