v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13188889.6 KB
projects

Updates the specified firewall policy.

patch/v1/{+name}

Path parameters

namestring required

Identifier. The resource name for the FirewallPolicy in the format projects/{project}/firewallpolicies/{firewallpolicy}.

Query parameters

updateMaskstring

Optional. The mask to control which fields of the policy get updated. If the mask is not present, all fields are updated.

Request body

descriptionstring

Optional. A description of what this policy aims to achieve, for convenience purposes. The description can at most include 256 UTF-8 characters.

namestring

Identifier. The resource name for the FirewallPolicy in the format projects/{project}/firewallpolicies/{firewallpolicy}.

conditionstring

Optional. A CEL (Common Expression Language) conditional expression that specifies if this policy applies to an incoming user request. If this condition evaluates to true and the requested path matched the path pattern, the associated actions should be executed by the caller. The condition string is checked for CEL syntax correctness on creation. For more information, see the CEL spec and its language definition. A condition has a max length of 500 characters.

pathstring

Optional. The path for which this policy applies, specified as a glob pattern. For more information on glob, see the manual page. A path has a max length of 200 characters.

Response

Successful response