v1

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

Creates a new GatewaySecurityPolicy in a given project and location.

post/v1/{+parent}/rules

Path parameters

parentstring required

Required. The parent where this rule will be created. Format : projects/{project}/location/{location}/gatewaySecurityPolicies/*

Query parameters

gatewaySecurityPolicyRuleIdstring

The ID to use for the rule, which will become the final component of the rule's resource name. This value should be 4-63 characters, and valid characters are /a-z-/.

Request body

enabledboolean

Required. Whether the rule is enforced.

applicationMatcherstring

Optional. CEL expression for matching on L7/application level criteria.

updateTimestring google-datetime

Output only. Time when the rule was updated.

priorityinteger

Required. Priority of the rule. Lower number corresponds to higher precedence.

namestring

Required. Immutable. Name of the resource. ame is the full resource name so projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule} rule should match the pattern: (^a-z?$).

tlsInspectionEnabledboolean

Optional. Flag to enable TLS inspection of traffic matching on , can only be true if the parent GatewaySecurityPolicy references a TLSInspectionConfig.

descriptionstring

Optional. Free-text description of the resource.

createTimestring google-datetime

Output only. Time when the rule was created.

sessionMatcherstring

Required. CEL expression for matching on session criteria.

basicProfile'BASIC_PROFILE_UNSPECIFIED' | 'ALLOW' | 'DENY'

Required. Profile which tells what the primitive action should be.

Response

Successful response