GetSecurityPolicyRule

data class GetSecurityPolicyRule(val action: String, val description: String, val headerActions: List<GetSecurityPolicyRuleHeaderAction>, val matches: List<GetSecurityPolicyRuleMatch>, val preconfiguredWafConfigs: List<GetSecurityPolicyRulePreconfiguredWafConfig>, val preview: Boolean, val priority: Int, val rateLimitOptions: List<GetSecurityPolicyRuleRateLimitOption>, val redirectOptions: List<GetSecurityPolicyRuleRedirectOption>)

Constructors

Link copied to clipboard
constructor(action: String, description: String, headerActions: List<GetSecurityPolicyRuleHeaderAction>, matches: List<GetSecurityPolicyRuleMatch>, preconfiguredWafConfigs: List<GetSecurityPolicyRulePreconfiguredWafConfig>, preview: Boolean, priority: Int, rateLimitOptions: List<GetSecurityPolicyRuleRateLimitOption>, redirectOptions: List<GetSecurityPolicyRuleRedirectOption>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Action to take when match matches the request.

Link copied to clipboard

An optional description of this rule. Max size is 64.

Link copied to clipboard

Additional actions that are performed on headers.

Link copied to clipboard

A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding action is enforced.

Link copied to clipboard

Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.

Link copied to clipboard

When set to true, the action specified above is not enforced. Stackdriver logs for requests that trigger a preview action are annotated as such.

Link copied to clipboard

An unique positive integer indicating the priority of evaluation for a rule. Rules are evaluated from highest priority (lowest numerically) to lowest priority (highest numerically) in order.

Link copied to clipboard

Rate limit threshold for this security policy. Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions.

Link copied to clipboard

Parameters defining the redirect action. Cannot be specified for any other actions.