1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. compute
  5. getSecurityPolicy
Google Cloud v8.25.0 published on Thursday, Apr 3, 2025 by Pulumi

gcp.compute.getSecurityPolicy

Explore with Pulumi AI

Google Cloud v8.25.0 published on Thursday, Apr 3, 2025 by Pulumi

To get more information about Google Compute Security Policy, see:

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const sp1 = gcp.compute.getSecurityPolicy({
    name: "my-policy",
    project: "my-project",
});
const sp2 = gcp.compute.getSecurityPolicy({
    selfLink: "https://www.googleapis.com/compute/v1/projects/my-project/global/securityPolicies/my-policy",
});
Copy
import pulumi
import pulumi_gcp as gcp

sp1 = gcp.compute.get_security_policy(name="my-policy",
    project="my-project")
sp2 = gcp.compute.get_security_policy(self_link="https://www.googleapis.com/compute/v1/projects/my-project/global/securityPolicies/my-policy")
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := compute.LookupSecurityPolicy(ctx, &compute.LookupSecurityPolicyArgs{
			Name:    pulumi.StringRef("my-policy"),
			Project: pulumi.StringRef("my-project"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = compute.LookupSecurityPolicy(ctx, &compute.LookupSecurityPolicyArgs{
			SelfLink: pulumi.StringRef("https://www.googleapis.com/compute/v1/projects/my-project/global/securityPolicies/my-policy"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var sp1 = Gcp.Compute.GetSecurityPolicy.Invoke(new()
    {
        Name = "my-policy",
        Project = "my-project",
    });

    var sp2 = Gcp.Compute.GetSecurityPolicy.Invoke(new()
    {
        SelfLink = "https://www.googleapis.com/compute/v1/projects/my-project/global/securityPolicies/my-policy",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.ComputeFunctions;
import com.pulumi.gcp.compute.inputs.GetSecurityPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var sp1 = ComputeFunctions.getSecurityPolicy(GetSecurityPolicyArgs.builder()
            .name("my-policy")
            .project("my-project")
            .build());

        final var sp2 = ComputeFunctions.getSecurityPolicy(GetSecurityPolicyArgs.builder()
            .selfLink("https://www.googleapis.com/compute/v1/projects/my-project/global/securityPolicies/my-policy")
            .build());

    }
}
Copy
variables:
  sp1:
    fn::invoke:
      function: gcp:compute:getSecurityPolicy
      arguments:
        name: my-policy
        project: my-project
  sp2:
    fn::invoke:
      function: gcp:compute:getSecurityPolicy
      arguments:
        selfLink: https://www.googleapis.com/compute/v1/projects/my-project/global/securityPolicies/my-policy
Copy

Using getSecurityPolicy

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getSecurityPolicy(args: GetSecurityPolicyArgs, opts?: InvokeOptions): Promise<GetSecurityPolicyResult>
function getSecurityPolicyOutput(args: GetSecurityPolicyOutputArgs, opts?: InvokeOptions): Output<GetSecurityPolicyResult>
Copy
def get_security_policy(name: Optional[str] = None,
                        project: Optional[str] = None,
                        self_link: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetSecurityPolicyResult
def get_security_policy_output(name: Optional[pulumi.Input[str]] = None,
                        project: Optional[pulumi.Input[str]] = None,
                        self_link: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetSecurityPolicyResult]
Copy
func LookupSecurityPolicy(ctx *Context, args *LookupSecurityPolicyArgs, opts ...InvokeOption) (*LookupSecurityPolicyResult, error)
func LookupSecurityPolicyOutput(ctx *Context, args *LookupSecurityPolicyOutputArgs, opts ...InvokeOption) LookupSecurityPolicyResultOutput
Copy

> Note: This function is named LookupSecurityPolicy in the Go SDK.

public static class GetSecurityPolicy 
{
    public static Task<GetSecurityPolicyResult> InvokeAsync(GetSecurityPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetSecurityPolicyResult> Invoke(GetSecurityPolicyInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSecurityPolicyResult> getSecurityPolicy(GetSecurityPolicyArgs args, InvokeOptions options)
public static Output<GetSecurityPolicyResult> getSecurityPolicy(GetSecurityPolicyArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: gcp:compute/getSecurityPolicy:getSecurityPolicy
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name string
The name of the security policy. Provide either this or a self_link.
Project string
The project in which the resource belongs. If it is not provided, the provider project is used.
SelfLink string
The self_link of the security policy. Provide either this or a name
Name string
The name of the security policy. Provide either this or a self_link.
Project string
The project in which the resource belongs. If it is not provided, the provider project is used.
SelfLink string
The self_link of the security policy. Provide either this or a name
name String
The name of the security policy. Provide either this or a self_link.
project String
The project in which the resource belongs. If it is not provided, the provider project is used.
selfLink String
The self_link of the security policy. Provide either this or a name
name string
The name of the security policy. Provide either this or a self_link.
project string
The project in which the resource belongs. If it is not provided, the provider project is used.
selfLink string
The self_link of the security policy. Provide either this or a name
name str
The name of the security policy. Provide either this or a self_link.
project str
The project in which the resource belongs. If it is not provided, the provider project is used.
self_link str
The self_link of the security policy. Provide either this or a name
name String
The name of the security policy. Provide either this or a self_link.
project String
The project in which the resource belongs. If it is not provided, the provider project is used.
selfLink String
The self_link of the security policy. Provide either this or a name

getSecurityPolicy Result

The following output properties are available:

Supporting Types

GetSecurityPolicyAdaptiveProtectionConfig

AutoDeployConfigs This property is required. List<GetSecurityPolicyAdaptiveProtectionConfigAutoDeployConfig>
Auto Deploy Config of this security policy
Layer7DdosDefenseConfigs This property is required. List<GetSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig>
Layer 7 DDoS Defense Config of this security policy
AutoDeployConfigs This property is required. []GetSecurityPolicyAdaptiveProtectionConfigAutoDeployConfig
Auto Deploy Config of this security policy
Layer7DdosDefenseConfigs This property is required. []GetSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig
Layer 7 DDoS Defense Config of this security policy
autoDeployConfigs This property is required. List<GetSecurityPolicyAdaptiveProtectionConfigAutoDeployConfig>
Auto Deploy Config of this security policy
layer7DdosDefenseConfigs This property is required. List<GetSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig>
Layer 7 DDoS Defense Config of this security policy
autoDeployConfigs This property is required. GetSecurityPolicyAdaptiveProtectionConfigAutoDeployConfig[]
Auto Deploy Config of this security policy
layer7DdosDefenseConfigs This property is required. GetSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig[]
Layer 7 DDoS Defense Config of this security policy
auto_deploy_configs This property is required. Sequence[GetSecurityPolicyAdaptiveProtectionConfigAutoDeployConfig]
Auto Deploy Config of this security policy
layer7_ddos_defense_configs This property is required. Sequence[GetSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig]
Layer 7 DDoS Defense Config of this security policy
autoDeployConfigs This property is required. List<Property Map>
Auto Deploy Config of this security policy
layer7DdosDefenseConfigs This property is required. List<Property Map>
Layer 7 DDoS Defense Config of this security policy

GetSecurityPolicyAdaptiveProtectionConfigAutoDeployConfig

ConfidenceThreshold This property is required. double
Rules are only automatically deployed for alerts on potential attacks with confidence scores greater than this threshold.
ExpirationSec This property is required. int
Google Cloud Armor stops applying the action in the automatically deployed rule to an identified attacker after this duration. The rule continues to operate against new requests.
ImpactedBaselineThreshold This property is required. double
Rules are only automatically deployed when the estimated impact to baseline traffic from the suggested mitigation is below this threshold.
LoadThreshold This property is required. double
Identifies new attackers only when the load to the backend service that is under attack exceeds this threshold.
ConfidenceThreshold This property is required. float64
Rules are only automatically deployed for alerts on potential attacks with confidence scores greater than this threshold.
ExpirationSec This property is required. int
Google Cloud Armor stops applying the action in the automatically deployed rule to an identified attacker after this duration. The rule continues to operate against new requests.
ImpactedBaselineThreshold This property is required. float64
Rules are only automatically deployed when the estimated impact to baseline traffic from the suggested mitigation is below this threshold.
LoadThreshold This property is required. float64
Identifies new attackers only when the load to the backend service that is under attack exceeds this threshold.
confidenceThreshold This property is required. Double
Rules are only automatically deployed for alerts on potential attacks with confidence scores greater than this threshold.
expirationSec This property is required. Integer
Google Cloud Armor stops applying the action in the automatically deployed rule to an identified attacker after this duration. The rule continues to operate against new requests.
impactedBaselineThreshold This property is required. Double
Rules are only automatically deployed when the estimated impact to baseline traffic from the suggested mitigation is below this threshold.
loadThreshold This property is required. Double
Identifies new attackers only when the load to the backend service that is under attack exceeds this threshold.
confidenceThreshold This property is required. number
Rules are only automatically deployed for alerts on potential attacks with confidence scores greater than this threshold.
expirationSec This property is required. number
Google Cloud Armor stops applying the action in the automatically deployed rule to an identified attacker after this duration. The rule continues to operate against new requests.
impactedBaselineThreshold This property is required. number
Rules are only automatically deployed when the estimated impact to baseline traffic from the suggested mitigation is below this threshold.
loadThreshold This property is required. number
Identifies new attackers only when the load to the backend service that is under attack exceeds this threshold.
confidence_threshold This property is required. float
Rules are only automatically deployed for alerts on potential attacks with confidence scores greater than this threshold.
expiration_sec This property is required. int
Google Cloud Armor stops applying the action in the automatically deployed rule to an identified attacker after this duration. The rule continues to operate against new requests.
impacted_baseline_threshold This property is required. float
Rules are only automatically deployed when the estimated impact to baseline traffic from the suggested mitigation is below this threshold.
load_threshold This property is required. float
Identifies new attackers only when the load to the backend service that is under attack exceeds this threshold.
confidenceThreshold This property is required. Number
Rules are only automatically deployed for alerts on potential attacks with confidence scores greater than this threshold.
expirationSec This property is required. Number
Google Cloud Armor stops applying the action in the automatically deployed rule to an identified attacker after this duration. The rule continues to operate against new requests.
impactedBaselineThreshold This property is required. Number
Rules are only automatically deployed when the estimated impact to baseline traffic from the suggested mitigation is below this threshold.
loadThreshold This property is required. Number
Identifies new attackers only when the load to the backend service that is under attack exceeds this threshold.

GetSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig

Enable This property is required. bool
If set to true, enables CAAP for L7 DDoS detection.
RuleVisibility This property is required. string
Rule visibility. Supported values include: "STANDARD", "PREMIUM".
ThresholdConfigs This property is required. List<GetSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig>
Configuration options for layer7 adaptive protection for various customizable thresholds.
Enable This property is required. bool
If set to true, enables CAAP for L7 DDoS detection.
RuleVisibility This property is required. string
Rule visibility. Supported values include: "STANDARD", "PREMIUM".
ThresholdConfigs This property is required. []GetSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
Configuration options for layer7 adaptive protection for various customizable thresholds.
enable This property is required. Boolean
If set to true, enables CAAP for L7 DDoS detection.
ruleVisibility This property is required. String
Rule visibility. Supported values include: "STANDARD", "PREMIUM".
thresholdConfigs This property is required. List<GetSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig>
Configuration options for layer7 adaptive protection for various customizable thresholds.
enable This property is required. boolean
If set to true, enables CAAP for L7 DDoS detection.
ruleVisibility This property is required. string
Rule visibility. Supported values include: "STANDARD", "PREMIUM".
thresholdConfigs This property is required. GetSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig[]
Configuration options for layer7 adaptive protection for various customizable thresholds.
enable This property is required. bool
If set to true, enables CAAP for L7 DDoS detection.
rule_visibility This property is required. str
Rule visibility. Supported values include: "STANDARD", "PREMIUM".
threshold_configs This property is required. Sequence[GetSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig]
Configuration options for layer7 adaptive protection for various customizable thresholds.
enable This property is required. Boolean
If set to true, enables CAAP for L7 DDoS detection.
ruleVisibility This property is required. String
Rule visibility. Supported values include: "STANDARD", "PREMIUM".
thresholdConfigs This property is required. List<Property Map>
Configuration options for layer7 adaptive protection for various customizable thresholds.

GetSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig

AutoDeployConfidenceThreshold This property is required. double
AutoDeployExpirationSec This property is required. int
AutoDeployImpactedBaselineThreshold This property is required. double
AutoDeployLoadThreshold This property is required. double
DetectionAbsoluteQps This property is required. double
DetectionLoadThreshold This property is required. double
DetectionRelativeToBaselineQps This property is required. double
Name This property is required. string
The name of the security policy. Provide either this or a self_link.
TrafficGranularityConfigs This property is required. List<GetSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig>
AutoDeployConfidenceThreshold This property is required. float64
AutoDeployExpirationSec This property is required. int
AutoDeployImpactedBaselineThreshold This property is required. float64
AutoDeployLoadThreshold This property is required. float64
DetectionAbsoluteQps This property is required. float64
DetectionLoadThreshold This property is required. float64
DetectionRelativeToBaselineQps This property is required. float64
Name This property is required. string
The name of the security policy. Provide either this or a self_link.
TrafficGranularityConfigs This property is required. []GetSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig
autoDeployConfidenceThreshold This property is required. Double
autoDeployExpirationSec This property is required. Integer
autoDeployImpactedBaselineThreshold This property is required. Double
autoDeployLoadThreshold This property is required. Double
detectionAbsoluteQps This property is required. Double
detectionLoadThreshold This property is required. Double
detectionRelativeToBaselineQps This property is required. Double
name This property is required. String
The name of the security policy. Provide either this or a self_link.
trafficGranularityConfigs This property is required. List<GetSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig>
autoDeployConfidenceThreshold This property is required. number
autoDeployExpirationSec This property is required. number
autoDeployImpactedBaselineThreshold This property is required. number
autoDeployLoadThreshold This property is required. number
detectionAbsoluteQps This property is required. number
detectionLoadThreshold This property is required. number
detectionRelativeToBaselineQps This property is required. number
name This property is required. string
The name of the security policy. Provide either this or a self_link.
trafficGranularityConfigs This property is required. GetSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig[]
auto_deploy_confidence_threshold This property is required. float
auto_deploy_expiration_sec This property is required. int
auto_deploy_impacted_baseline_threshold This property is required. float
auto_deploy_load_threshold This property is required. float
detection_absolute_qps This property is required. float
detection_load_threshold This property is required. float
detection_relative_to_baseline_qps This property is required. float
name This property is required. str
The name of the security policy. Provide either this or a self_link.
traffic_granularity_configs This property is required. Sequence[GetSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig]
autoDeployConfidenceThreshold This property is required. Number
autoDeployExpirationSec This property is required. Number
autoDeployImpactedBaselineThreshold This property is required. Number
autoDeployLoadThreshold This property is required. Number
detectionAbsoluteQps This property is required. Number
detectionLoadThreshold This property is required. Number
detectionRelativeToBaselineQps This property is required. Number
name This property is required. String
The name of the security policy. Provide either this or a self_link.
trafficGranularityConfigs This property is required. List<Property Map>

GetSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig

EnableEachUniqueValue This property is required. bool
If enabled, traffic matching each unique value for the specified type constitutes a separate traffic unit. It can only be set to true if value is empty.
Type This property is required. string
Type of this configuration.
Value This property is required. string
Requests that match this value constitute a granular traffic unit.
EnableEachUniqueValue This property is required. bool
If enabled, traffic matching each unique value for the specified type constitutes a separate traffic unit. It can only be set to true if value is empty.
Type This property is required. string
Type of this configuration.
Value This property is required. string
Requests that match this value constitute a granular traffic unit.
enableEachUniqueValue This property is required. Boolean
If enabled, traffic matching each unique value for the specified type constitutes a separate traffic unit. It can only be set to true if value is empty.
type This property is required. String
Type of this configuration.
value This property is required. String
Requests that match this value constitute a granular traffic unit.
enableEachUniqueValue This property is required. boolean
If enabled, traffic matching each unique value for the specified type constitutes a separate traffic unit. It can only be set to true if value is empty.
type This property is required. string
Type of this configuration.
value This property is required. string
Requests that match this value constitute a granular traffic unit.
enable_each_unique_value This property is required. bool
If enabled, traffic matching each unique value for the specified type constitutes a separate traffic unit. It can only be set to true if value is empty.
type This property is required. str
Type of this configuration.
value This property is required. str
Requests that match this value constitute a granular traffic unit.
enableEachUniqueValue This property is required. Boolean
If enabled, traffic matching each unique value for the specified type constitutes a separate traffic unit. It can only be set to true if value is empty.
type This property is required. String
Type of this configuration.
value This property is required. String
Requests that match this value constitute a granular traffic unit.

GetSecurityPolicyAdvancedOptionsConfig

JsonCustomConfigs This property is required. List<GetSecurityPolicyAdvancedOptionsConfigJsonCustomConfig>
Custom configuration to apply the JSON parsing. Only applicable when JSON parsing is set to STANDARD.
JsonParsing This property is required. string
JSON body parsing. Supported values include: "DISABLED", "STANDARD".
LogLevel This property is required. string
Logging level. Supported values include: "NORMAL", "VERBOSE".
UserIpRequestHeaders This property is required. List<string>
An optional list of case-insensitive request header names to use for resolving the callers client IP address.
JsonCustomConfigs This property is required. []GetSecurityPolicyAdvancedOptionsConfigJsonCustomConfig
Custom configuration to apply the JSON parsing. Only applicable when JSON parsing is set to STANDARD.
JsonParsing This property is required. string
JSON body parsing. Supported values include: "DISABLED", "STANDARD".
LogLevel This property is required. string
Logging level. Supported values include: "NORMAL", "VERBOSE".
UserIpRequestHeaders This property is required. []string
An optional list of case-insensitive request header names to use for resolving the callers client IP address.
jsonCustomConfigs This property is required. List<GetSecurityPolicyAdvancedOptionsConfigJsonCustomConfig>
Custom configuration to apply the JSON parsing. Only applicable when JSON parsing is set to STANDARD.
jsonParsing This property is required. String
JSON body parsing. Supported values include: "DISABLED", "STANDARD".
logLevel This property is required. String
Logging level. Supported values include: "NORMAL", "VERBOSE".
userIpRequestHeaders This property is required. List<String>
An optional list of case-insensitive request header names to use for resolving the callers client IP address.
jsonCustomConfigs This property is required. GetSecurityPolicyAdvancedOptionsConfigJsonCustomConfig[]
Custom configuration to apply the JSON parsing. Only applicable when JSON parsing is set to STANDARD.
jsonParsing This property is required. string
JSON body parsing. Supported values include: "DISABLED", "STANDARD".
logLevel This property is required. string
Logging level. Supported values include: "NORMAL", "VERBOSE".
userIpRequestHeaders This property is required. string[]
An optional list of case-insensitive request header names to use for resolving the callers client IP address.
json_custom_configs This property is required. Sequence[GetSecurityPolicyAdvancedOptionsConfigJsonCustomConfig]
Custom configuration to apply the JSON parsing. Only applicable when JSON parsing is set to STANDARD.
json_parsing This property is required. str
JSON body parsing. Supported values include: "DISABLED", "STANDARD".
log_level This property is required. str
Logging level. Supported values include: "NORMAL", "VERBOSE".
user_ip_request_headers This property is required. Sequence[str]
An optional list of case-insensitive request header names to use for resolving the callers client IP address.
jsonCustomConfigs This property is required. List<Property Map>
Custom configuration to apply the JSON parsing. Only applicable when JSON parsing is set to STANDARD.
jsonParsing This property is required. String
JSON body parsing. Supported values include: "DISABLED", "STANDARD".
logLevel This property is required. String
Logging level. Supported values include: "NORMAL", "VERBOSE".
userIpRequestHeaders This property is required. List<String>
An optional list of case-insensitive request header names to use for resolving the callers client IP address.

GetSecurityPolicyAdvancedOptionsConfigJsonCustomConfig

ContentTypes This property is required. List<string>
A list of custom Content-Type header values to apply the JSON parsing.
ContentTypes This property is required. []string
A list of custom Content-Type header values to apply the JSON parsing.
contentTypes This property is required. List<String>
A list of custom Content-Type header values to apply the JSON parsing.
contentTypes This property is required. string[]
A list of custom Content-Type header values to apply the JSON parsing.
content_types This property is required. Sequence[str]
A list of custom Content-Type header values to apply the JSON parsing.
contentTypes This property is required. List<String>
A list of custom Content-Type header values to apply the JSON parsing.

GetSecurityPolicyRecaptchaOptionsConfig

RedirectSiteKey This property is required. string
A field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used.
RedirectSiteKey This property is required. string
A field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used.
redirectSiteKey This property is required. String
A field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used.
redirectSiteKey This property is required. string
A field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used.
redirect_site_key This property is required. str
A field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used.
redirectSiteKey This property is required. String
A field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used.

GetSecurityPolicyRule

Action This property is required. string
Action to take when match matches the request.
Description This property is required. string
An optional description of this rule. Max size is 64.
HeaderActions This property is required. List<GetSecurityPolicyRuleHeaderAction>
Additional actions that are performed on headers.
Matches This property is required. List<GetSecurityPolicyRuleMatch>
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding action is enforced.
PreconfiguredWafConfigs This property is required. List<GetSecurityPolicyRulePreconfiguredWafConfig>
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.
Preview This property is required. bool
When set to true, the action specified above is not enforced. Stackdriver logs for requests that trigger a preview action are annotated as such.
Priority This property is required. int
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.
RateLimitOptions This property is required. List<GetSecurityPolicyRuleRateLimitOption>
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.
RedirectOptions This property is required. List<GetSecurityPolicyRuleRedirectOption>
Parameters defining the redirect action. Cannot be specified for any other actions.
Action This property is required. string
Action to take when match matches the request.
Description This property is required. string
An optional description of this rule. Max size is 64.
HeaderActions This property is required. []GetSecurityPolicyRuleHeaderAction
Additional actions that are performed on headers.
Matches This property is required. []GetSecurityPolicyRuleMatch
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding action is enforced.
PreconfiguredWafConfigs This property is required. []GetSecurityPolicyRulePreconfiguredWafConfig
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.
Preview This property is required. bool
When set to true, the action specified above is not enforced. Stackdriver logs for requests that trigger a preview action are annotated as such.
Priority This property is required. int
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.
RateLimitOptions This property is required. []GetSecurityPolicyRuleRateLimitOption
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.
RedirectOptions This property is required. []GetSecurityPolicyRuleRedirectOption
Parameters defining the redirect action. Cannot be specified for any other actions.
action This property is required. String
Action to take when match matches the request.
description This property is required. String
An optional description of this rule. Max size is 64.
headerActions This property is required. List<GetSecurityPolicyRuleHeaderAction>
Additional actions that are performed on headers.
matches This property is required. List<GetSecurityPolicyRuleMatch>
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding action is enforced.
preconfiguredWafConfigs This property is required. List<GetSecurityPolicyRulePreconfiguredWafConfig>
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.
preview This property is required. Boolean
When set to true, the action specified above is not enforced. Stackdriver logs for requests that trigger a preview action are annotated as such.
priority This property is required. Integer
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.
rateLimitOptions This property is required. List<GetSecurityPolicyRuleRateLimitOption>
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.
redirectOptions This property is required. List<GetSecurityPolicyRuleRedirectOption>
Parameters defining the redirect action. Cannot be specified for any other actions.
action This property is required. string
Action to take when match matches the request.
description This property is required. string
An optional description of this rule. Max size is 64.
headerActions This property is required. GetSecurityPolicyRuleHeaderAction[]
Additional actions that are performed on headers.
matches This property is required. GetSecurityPolicyRuleMatch[]
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding action is enforced.
preconfiguredWafConfigs This property is required. GetSecurityPolicyRulePreconfiguredWafConfig[]
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.
preview This property is required. boolean
When set to true, the action specified above is not enforced. Stackdriver logs for requests that trigger a preview action are annotated as such.
priority This property is required. number
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.
rateLimitOptions This property is required. GetSecurityPolicyRuleRateLimitOption[]
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.
redirectOptions This property is required. GetSecurityPolicyRuleRedirectOption[]
Parameters defining the redirect action. Cannot be specified for any other actions.
action This property is required. str
Action to take when match matches the request.
description This property is required. str
An optional description of this rule. Max size is 64.
header_actions This property is required. Sequence[GetSecurityPolicyRuleHeaderAction]
Additional actions that are performed on headers.
matches This property is required. Sequence[GetSecurityPolicyRuleMatch]
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding action is enforced.
preconfigured_waf_configs This property is required. Sequence[GetSecurityPolicyRulePreconfiguredWafConfig]
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.
preview This property is required. bool
When set to true, the action specified above is not enforced. Stackdriver logs for requests that trigger a preview action are annotated as such.
priority This property is required. int
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.
rate_limit_options This property is required. Sequence[GetSecurityPolicyRuleRateLimitOption]
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.
redirect_options This property is required. Sequence[GetSecurityPolicyRuleRedirectOption]
Parameters defining the redirect action. Cannot be specified for any other actions.
action This property is required. String
Action to take when match matches the request.
description This property is required. String
An optional description of this rule. Max size is 64.
headerActions This property is required. List<Property Map>
Additional actions that are performed on headers.
matches This property is required. List<Property Map>
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding action is enforced.
preconfiguredWafConfigs This property is required. List<Property Map>
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.
preview This property is required. Boolean
When set to true, the action specified above is not enforced. Stackdriver logs for requests that trigger a preview action are annotated as such.
priority This property is required. Number
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.
rateLimitOptions This property is required. List<Property Map>
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.
redirectOptions This property is required. List<Property Map>
Parameters defining the redirect action. Cannot be specified for any other actions.

GetSecurityPolicyRuleHeaderAction

RequestHeadersToAdds This property is required. List<GetSecurityPolicyRuleHeaderActionRequestHeadersToAdd>
The list of request headers to add or overwrite if they're already present.
RequestHeadersToAdds This property is required. []GetSecurityPolicyRuleHeaderActionRequestHeadersToAdd
The list of request headers to add or overwrite if they're already present.
requestHeadersToAdds This property is required. List<GetSecurityPolicyRuleHeaderActionRequestHeadersToAdd>
The list of request headers to add or overwrite if they're already present.
requestHeadersToAdds This property is required. GetSecurityPolicyRuleHeaderActionRequestHeadersToAdd[]
The list of request headers to add or overwrite if they're already present.
request_headers_to_adds This property is required. Sequence[GetSecurityPolicyRuleHeaderActionRequestHeadersToAdd]
The list of request headers to add or overwrite if they're already present.
requestHeadersToAdds This property is required. List<Property Map>
The list of request headers to add or overwrite if they're already present.

GetSecurityPolicyRuleHeaderActionRequestHeadersToAdd

HeaderName This property is required. string
The name of the header to set.
HeaderValue This property is required. string
The value to set the named header to.
HeaderName This property is required. string
The name of the header to set.
HeaderValue This property is required. string
The value to set the named header to.
headerName This property is required. String
The name of the header to set.
headerValue This property is required. String
The value to set the named header to.
headerName This property is required. string
The name of the header to set.
headerValue This property is required. string
The value to set the named header to.
header_name This property is required. str
The name of the header to set.
header_value This property is required. str
The value to set the named header to.
headerName This property is required. String
The name of the header to set.
headerValue This property is required. String
The value to set the named header to.

GetSecurityPolicyRuleMatch

Configs This property is required. List<GetSecurityPolicyRuleMatchConfig>
The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.
ExprOptions This property is required. List<GetSecurityPolicyRuleMatchExprOption>
The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr').
Exprs This property is required. List<GetSecurityPolicyRuleMatchExpr>
User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header.
VersionedExpr This property is required. string
Predefined rule expression. If this field is specified, config must also be specified. Available options: SRC_IPS_V1: Must specify the corresponding src_ip_ranges field in config.
Configs This property is required. []GetSecurityPolicyRuleMatchConfig
The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.
ExprOptions This property is required. []GetSecurityPolicyRuleMatchExprOption
The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr').
Exprs This property is required. []GetSecurityPolicyRuleMatchExpr
User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header.
VersionedExpr This property is required. string
Predefined rule expression. If this field is specified, config must also be specified. Available options: SRC_IPS_V1: Must specify the corresponding src_ip_ranges field in config.
configs This property is required. List<GetSecurityPolicyRuleMatchConfig>
The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.
exprOptions This property is required. List<GetSecurityPolicyRuleMatchExprOption>
The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr').
exprs This property is required. List<GetSecurityPolicyRuleMatchExpr>
User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header.
versionedExpr This property is required. String
Predefined rule expression. If this field is specified, config must also be specified. Available options: SRC_IPS_V1: Must specify the corresponding src_ip_ranges field in config.
configs This property is required. GetSecurityPolicyRuleMatchConfig[]
The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.
exprOptions This property is required. GetSecurityPolicyRuleMatchExprOption[]
The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr').
exprs This property is required. GetSecurityPolicyRuleMatchExpr[]
User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header.
versionedExpr This property is required. string
Predefined rule expression. If this field is specified, config must also be specified. Available options: SRC_IPS_V1: Must specify the corresponding src_ip_ranges field in config.
configs This property is required. Sequence[GetSecurityPolicyRuleMatchConfig]
The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.
expr_options This property is required. Sequence[GetSecurityPolicyRuleMatchExprOption]
The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr').
exprs This property is required. Sequence[GetSecurityPolicyRuleMatchExpr]
User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header.
versioned_expr This property is required. str
Predefined rule expression. If this field is specified, config must also be specified. Available options: SRC_IPS_V1: Must specify the corresponding src_ip_ranges field in config.
configs This property is required. List<Property Map>
The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.
exprOptions This property is required. List<Property Map>
The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr').
exprs This property is required. List<Property Map>
User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header.
versionedExpr This property is required. String
Predefined rule expression. If this field is specified, config must also be specified. Available options: SRC_IPS_V1: Must specify the corresponding src_ip_ranges field in config.

GetSecurityPolicyRuleMatchConfig

SrcIpRanges This property is required. List<string>
Set of IP addresses or ranges (IPV4 or IPV6) in CIDR notation to match against inbound traffic. There is a limit of 10 IP ranges per rule. A value of '*' matches all IPs (can be used to override the default behavior).
SrcIpRanges This property is required. []string
Set of IP addresses or ranges (IPV4 or IPV6) in CIDR notation to match against inbound traffic. There is a limit of 10 IP ranges per rule. A value of '*' matches all IPs (can be used to override the default behavior).
srcIpRanges This property is required. List<String>
Set of IP addresses or ranges (IPV4 or IPV6) in CIDR notation to match against inbound traffic. There is a limit of 10 IP ranges per rule. A value of '*' matches all IPs (can be used to override the default behavior).
srcIpRanges This property is required. string[]
Set of IP addresses or ranges (IPV4 or IPV6) in CIDR notation to match against inbound traffic. There is a limit of 10 IP ranges per rule. A value of '*' matches all IPs (can be used to override the default behavior).
src_ip_ranges This property is required. Sequence[str]
Set of IP addresses or ranges (IPV4 or IPV6) in CIDR notation to match against inbound traffic. There is a limit of 10 IP ranges per rule. A value of '*' matches all IPs (can be used to override the default behavior).
srcIpRanges This property is required. List<String>
Set of IP addresses or ranges (IPV4 or IPV6) in CIDR notation to match against inbound traffic. There is a limit of 10 IP ranges per rule. A value of '*' matches all IPs (can be used to override the default behavior).

GetSecurityPolicyRuleMatchExpr

Expression This property is required. string
Textual representation of an expression in Common Expression Language syntax. The application context of the containing message determines which well-known feature set of CEL is supported.
Expression This property is required. string
Textual representation of an expression in Common Expression Language syntax. The application context of the containing message determines which well-known feature set of CEL is supported.
expression This property is required. String
Textual representation of an expression in Common Expression Language syntax. The application context of the containing message determines which well-known feature set of CEL is supported.
expression This property is required. string
Textual representation of an expression in Common Expression Language syntax. The application context of the containing message determines which well-known feature set of CEL is supported.
expression This property is required. str
Textual representation of an expression in Common Expression Language syntax. The application context of the containing message determines which well-known feature set of CEL is supported.
expression This property is required. String
Textual representation of an expression in Common Expression Language syntax. The application context of the containing message determines which well-known feature set of CEL is supported.

GetSecurityPolicyRuleMatchExprOption

RecaptchaOptions This property is required. List<GetSecurityPolicyRuleMatchExprOptionRecaptchaOption>
reCAPTCHA configuration options to be applied for the rule. If the rule does not evaluate reCAPTCHA tokens, this field has no effect.
RecaptchaOptions This property is required. []GetSecurityPolicyRuleMatchExprOptionRecaptchaOption
reCAPTCHA configuration options to be applied for the rule. If the rule does not evaluate reCAPTCHA tokens, this field has no effect.
recaptchaOptions This property is required. List<GetSecurityPolicyRuleMatchExprOptionRecaptchaOption>
reCAPTCHA configuration options to be applied for the rule. If the rule does not evaluate reCAPTCHA tokens, this field has no effect.
recaptchaOptions This property is required. GetSecurityPolicyRuleMatchExprOptionRecaptchaOption[]
reCAPTCHA configuration options to be applied for the rule. If the rule does not evaluate reCAPTCHA tokens, this field has no effect.
recaptcha_options This property is required. Sequence[GetSecurityPolicyRuleMatchExprOptionRecaptchaOption]
reCAPTCHA configuration options to be applied for the rule. If the rule does not evaluate reCAPTCHA tokens, this field has no effect.
recaptchaOptions This property is required. List<Property Map>
reCAPTCHA configuration options to be applied for the rule. If the rule does not evaluate reCAPTCHA tokens, this field has no effect.

GetSecurityPolicyRuleMatchExprOptionRecaptchaOption

ActionTokenSiteKeys This property is required. List<string>
A list of site keys to be used during the validation of reCAPTCHA action-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created
SessionTokenSiteKeys This property is required. List<string>
A list of site keys to be used during the validation of reCAPTCHA session-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created.
ActionTokenSiteKeys This property is required. []string
A list of site keys to be used during the validation of reCAPTCHA action-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created
SessionTokenSiteKeys This property is required. []string
A list of site keys to be used during the validation of reCAPTCHA session-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created.
actionTokenSiteKeys This property is required. List<String>
A list of site keys to be used during the validation of reCAPTCHA action-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created
sessionTokenSiteKeys This property is required. List<String>
A list of site keys to be used during the validation of reCAPTCHA session-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created.
actionTokenSiteKeys This property is required. string[]
A list of site keys to be used during the validation of reCAPTCHA action-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created
sessionTokenSiteKeys This property is required. string[]
A list of site keys to be used during the validation of reCAPTCHA session-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created.
action_token_site_keys This property is required. Sequence[str]
A list of site keys to be used during the validation of reCAPTCHA action-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created
session_token_site_keys This property is required. Sequence[str]
A list of site keys to be used during the validation of reCAPTCHA session-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created.
actionTokenSiteKeys This property is required. List<String>
A list of site keys to be used during the validation of reCAPTCHA action-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created
sessionTokenSiteKeys This property is required. List<String>
A list of site keys to be used during the validation of reCAPTCHA session-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created.

GetSecurityPolicyRulePreconfiguredWafConfig

Exclusions This property is required. List<GetSecurityPolicyRulePreconfiguredWafConfigExclusion>
An exclusion to apply during preconfigured WAF evaluation.
Exclusions This property is required. []GetSecurityPolicyRulePreconfiguredWafConfigExclusion
An exclusion to apply during preconfigured WAF evaluation.
exclusions This property is required. List<GetSecurityPolicyRulePreconfiguredWafConfigExclusion>
An exclusion to apply during preconfigured WAF evaluation.
exclusions This property is required. GetSecurityPolicyRulePreconfiguredWafConfigExclusion[]
An exclusion to apply during preconfigured WAF evaluation.
exclusions This property is required. Sequence[GetSecurityPolicyRulePreconfiguredWafConfigExclusion]
An exclusion to apply during preconfigured WAF evaluation.
exclusions This property is required. List<Property Map>
An exclusion to apply during preconfigured WAF evaluation.

GetSecurityPolicyRulePreconfiguredWafConfigExclusion

RequestCookies This property is required. List<GetSecurityPolicyRulePreconfiguredWafConfigExclusionRequestCooky>
Request cookie whose value will be excluded from inspection during preconfigured WAF evaluation.
RequestHeaders This property is required. List<GetSecurityPolicyRulePreconfiguredWafConfigExclusionRequestHeader>
Request header whose value will be excluded from inspection during preconfigured WAF evaluation.
RequestQueryParams This property is required. List<GetSecurityPolicyRulePreconfiguredWafConfigExclusionRequestQueryParam>
Request query parameter whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
RequestUris This property is required. List<GetSecurityPolicyRulePreconfiguredWafConfigExclusionRequestUri>
Request URI from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
TargetRuleIds This property is required. List<string>
A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
TargetRuleSet This property is required. string
Target WAF rule set to apply the preconfigured WAF exclusion.
RequestCookies This property is required. []GetSecurityPolicyRulePreconfiguredWafConfigExclusionRequestCooky
Request cookie whose value will be excluded from inspection during preconfigured WAF evaluation.
RequestHeaders This property is required. []GetSecurityPolicyRulePreconfiguredWafConfigExclusionRequestHeader
Request header whose value will be excluded from inspection during preconfigured WAF evaluation.
RequestQueryParams This property is required. []GetSecurityPolicyRulePreconfiguredWafConfigExclusionRequestQueryParam
Request query parameter whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
RequestUris This property is required. []GetSecurityPolicyRulePreconfiguredWafConfigExclusionRequestUri
Request URI from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
TargetRuleIds This property is required. []string
A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
TargetRuleSet This property is required. string
Target WAF rule set to apply the preconfigured WAF exclusion.
requestCookies This property is required. List<GetSecurityPolicyRulePreconfiguredWafConfigExclusionRequestCooky>
Request cookie whose value will be excluded from inspection during preconfigured WAF evaluation.
requestHeaders This property is required. List<GetSecurityPolicyRulePreconfiguredWafConfigExclusionRequestHeader>
Request header whose value will be excluded from inspection during preconfigured WAF evaluation.
requestQueryParams This property is required. List<GetSecurityPolicyRulePreconfiguredWafConfigExclusionRequestQueryParam>
Request query parameter whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
requestUris This property is required. List<GetSecurityPolicyRulePreconfiguredWafConfigExclusionRequestUri>
Request URI from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
targetRuleIds This property is required. List<String>
A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
targetRuleSet This property is required. String
Target WAF rule set to apply the preconfigured WAF exclusion.
requestCookies This property is required. GetSecurityPolicyRulePreconfiguredWafConfigExclusionRequestCooky[]
Request cookie whose value will be excluded from inspection during preconfigured WAF evaluation.
requestHeaders This property is required. GetSecurityPolicyRulePreconfiguredWafConfigExclusionRequestHeader[]
Request header whose value will be excluded from inspection during preconfigured WAF evaluation.
requestQueryParams This property is required. GetSecurityPolicyRulePreconfiguredWafConfigExclusionRequestQueryParam[]
Request query parameter whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
requestUris This property is required. GetSecurityPolicyRulePreconfiguredWafConfigExclusionRequestUri[]
Request URI from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
targetRuleIds This property is required. string[]
A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
targetRuleSet This property is required. string
Target WAF rule set to apply the preconfigured WAF exclusion.
request_cookies This property is required. Sequence[GetSecurityPolicyRulePreconfiguredWafConfigExclusionRequestCooky]
Request cookie whose value will be excluded from inspection during preconfigured WAF evaluation.
request_headers This property is required. Sequence[GetSecurityPolicyRulePreconfiguredWafConfigExclusionRequestHeader]
Request header whose value will be excluded from inspection during preconfigured WAF evaluation.
request_query_params This property is required. Sequence[GetSecurityPolicyRulePreconfiguredWafConfigExclusionRequestQueryParam]
Request query parameter whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
request_uris This property is required. Sequence[GetSecurityPolicyRulePreconfiguredWafConfigExclusionRequestUri]
Request URI from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
target_rule_ids This property is required. Sequence[str]
A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
target_rule_set This property is required. str
Target WAF rule set to apply the preconfigured WAF exclusion.
requestCookies This property is required. List<Property Map>
Request cookie whose value will be excluded from inspection during preconfigured WAF evaluation.
requestHeaders This property is required. List<Property Map>
Request header whose value will be excluded from inspection during preconfigured WAF evaluation.
requestQueryParams This property is required. List<Property Map>
Request query parameter whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
requestUris This property is required. List<Property Map>
Request URI from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
targetRuleIds This property is required. List<String>
A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
targetRuleSet This property is required. String
Target WAF rule set to apply the preconfigured WAF exclusion.

GetSecurityPolicyRulePreconfiguredWafConfigExclusionRequestCooky

Operator This property is required. string
You can specify an exact match or a partial match by using a field operator and a field value. Available options: EQUALS: The operator matches if the field value equals the specified value. STARTS_WITH: The operator matches if the field value starts with the specified value. ENDS_WITH: The operator matches if the field value ends with the specified value. CONTAINS: The operator matches if the field value contains the specified value. EQUALS_ANY: The operator matches if the field value is any value.
Value This property is required. string
A request field matching the specified value will be excluded from inspection during preconfigured WAF evaluation. The field value must be given if the field operator is not EQUALS_ANY, and cannot be given if the field operator is EQUALS_ANY.
Operator This property is required. string
You can specify an exact match or a partial match by using a field operator and a field value. Available options: EQUALS: The operator matches if the field value equals the specified value. STARTS_WITH: The operator matches if the field value starts with the specified value. ENDS_WITH: The operator matches if the field value ends with the specified value. CONTAINS: The operator matches if the field value contains the specified value. EQUALS_ANY: The operator matches if the field value is any value.
Value This property is required. string
A request field matching the specified value will be excluded from inspection during preconfigured WAF evaluation. The field value must be given if the field operator is not EQUALS_ANY, and cannot be given if the field operator is EQUALS_ANY.
operator This property is required. String
You can specify an exact match or a partial match by using a field operator and a field value. Available options: EQUALS: The operator matches if the field value equals the specified value. STARTS_WITH: The operator matches if the field value starts with the specified value. ENDS_WITH: The operator matches if the field value ends with the specified value. CONTAINS: The operator matches if the field value contains the specified value. EQUALS_ANY: The operator matches if the field value is any value.
value This property is required. String
A request field matching the specified value will be excluded from inspection during preconfigured WAF evaluation. The field value must be given if the field operator is not EQUALS_ANY, and cannot be given if the field operator is EQUALS_ANY.
operator This property is required. string
You can specify an exact match or a partial match by using a field operator and a field value. Available options: EQUALS: The operator matches if the field value equals the specified value. STARTS_WITH: The operator matches if the field value starts with the specified value. ENDS_WITH: The operator matches if the field value ends with the specified value. CONTAINS: The operator matches if the field value contains the specified value. EQUALS_ANY: The operator matches if the field value is any value.
value This property is required. string
A request field matching the specified value will be excluded from inspection during preconfigured WAF evaluation. The field value must be given if the field operator is not EQUALS_ANY, and cannot be given if the field operator is EQUALS_ANY.
operator This property is required. str
You can specify an exact match or a partial match by using a field operator and a field value. Available options: EQUALS: The operator matches if the field value equals the specified value. STARTS_WITH: The operator matches if the field value starts with the specified value. ENDS_WITH: The operator matches if the field value ends with the specified value. CONTAINS: The operator matches if the field value contains the specified value. EQUALS_ANY: The operator matches if the field value is any value.
value This property is required. str
A request field matching the specified value will be excluded from inspection during preconfigured WAF evaluation. The field value must be given if the field operator is not EQUALS_ANY, and cannot be given if the field operator is EQUALS_ANY.
operator This property is required. String
You can specify an exact match or a partial match by using a field operator and a field value. Available options: EQUALS: The operator matches if the field value equals the specified value. STARTS_WITH: The operator matches if the field value starts with the specified value. ENDS_WITH: The operator matches if the field value ends with the specified value. CONTAINS: The operator matches if the field value contains the specified value. EQUALS_ANY: The operator matches if the field value is any value.
value This property is required. String
A request field matching the specified value will be excluded from inspection during preconfigured WAF evaluation. The field value must be given if the field operator is not EQUALS_ANY, and cannot be given if the field operator is EQUALS_ANY.

GetSecurityPolicyRulePreconfiguredWafConfigExclusionRequestHeader

Operator This property is required. string
You can specify an exact match or a partial match by using a field operator and a field value. Available options: EQUALS: The operator matches if the field value equals the specified value. STARTS_WITH: The operator matches if the field value starts with the specified value. ENDS_WITH: The operator matches if the field value ends with the specified value. CONTAINS: The operator matches if the field value contains the specified value. EQUALS_ANY: The operator matches if the field value is any value.
Value This property is required. string
A request field matching the specified value will be excluded from inspection during preconfigured WAF evaluation. The field value must be given if the field operator is not EQUALS_ANY, and cannot be given if the field operator is EQUALS_ANY.
Operator This property is required. string
You can specify an exact match or a partial match by using a field operator and a field value. Available options: EQUALS: The operator matches if the field value equals the specified value. STARTS_WITH: The operator matches if the field value starts with the specified value. ENDS_WITH: The operator matches if the field value ends with the specified value. CONTAINS: The operator matches if the field value contains the specified value. EQUALS_ANY: The operator matches if the field value is any value.
Value This property is required. string
A request field matching the specified value will be excluded from inspection during preconfigured WAF evaluation. The field value must be given if the field operator is not EQUALS_ANY, and cannot be given if the field operator is EQUALS_ANY.
operator This property is required. String
You can specify an exact match or a partial match by using a field operator and a field value. Available options: EQUALS: The operator matches if the field value equals the specified value. STARTS_WITH: The operator matches if the field value starts with the specified value. ENDS_WITH: The operator matches if the field value ends with the specified value. CONTAINS: The operator matches if the field value contains the specified value. EQUALS_ANY: The operator matches if the field value is any value.
value This property is required. String
A request field matching the specified value will be excluded from inspection during preconfigured WAF evaluation. The field value must be given if the field operator is not EQUALS_ANY, and cannot be given if the field operator is EQUALS_ANY.
operator This property is required. string
You can specify an exact match or a partial match by using a field operator and a field value. Available options: EQUALS: The operator matches if the field value equals the specified value. STARTS_WITH: The operator matches if the field value starts with the specified value. ENDS_WITH: The operator matches if the field value ends with the specified value. CONTAINS: The operator matches if the field value contains the specified value. EQUALS_ANY: The operator matches if the field value is any value.
value This property is required. string
A request field matching the specified value will be excluded from inspection during preconfigured WAF evaluation. The field value must be given if the field operator is not EQUALS_ANY, and cannot be given if the field operator is EQUALS_ANY.
operator This property is required. str
You can specify an exact match or a partial match by using a field operator and a field value. Available options: EQUALS: The operator matches if the field value equals the specified value. STARTS_WITH: The operator matches if the field value starts with the specified value. ENDS_WITH: The operator matches if the field value ends with the specified value. CONTAINS: The operator matches if the field value contains the specified value. EQUALS_ANY: The operator matches if the field value is any value.
value This property is required. str
A request field matching the specified value will be excluded from inspection during preconfigured WAF evaluation. The field value must be given if the field operator is not EQUALS_ANY, and cannot be given if the field operator is EQUALS_ANY.
operator This property is required. String
You can specify an exact match or a partial match by using a field operator and a field value. Available options: EQUALS: The operator matches if the field value equals the specified value. STARTS_WITH: The operator matches if the field value starts with the specified value. ENDS_WITH: The operator matches if the field value ends with the specified value. CONTAINS: The operator matches if the field value contains the specified value. EQUALS_ANY: The operator matches if the field value is any value.
value This property is required. String
A request field matching the specified value will be excluded from inspection during preconfigured WAF evaluation. The field value must be given if the field operator is not EQUALS_ANY, and cannot be given if the field operator is EQUALS_ANY.

GetSecurityPolicyRulePreconfiguredWafConfigExclusionRequestQueryParam

Operator This property is required. string
You can specify an exact match or a partial match by using a field operator and a field value. Available options: EQUALS: The operator matches if the field value equals the specified value. STARTS_WITH: The operator matches if the field value starts with the specified value. ENDS_WITH: The operator matches if the field value ends with the specified value. CONTAINS: The operator matches if the field value contains the specified value. EQUALS_ANY: The operator matches if the field value is any value.
Value This property is required. string
A request field matching the specified value will be excluded from inspection during preconfigured WAF evaluation. The field value must be given if the field operator is not EQUALS_ANY, and cannot be given if the field operator is EQUALS_ANY.
Operator This property is required. string
You can specify an exact match or a partial match by using a field operator and a field value. Available options: EQUALS: The operator matches if the field value equals the specified value. STARTS_WITH: The operator matches if the field value starts with the specified value. ENDS_WITH: The operator matches if the field value ends with the specified value. CONTAINS: The operator matches if the field value contains the specified value. EQUALS_ANY: The operator matches if the field value is any value.
Value This property is required. string
A request field matching the specified value will be excluded from inspection during preconfigured WAF evaluation. The field value must be given if the field operator is not EQUALS_ANY, and cannot be given if the field operator is EQUALS_ANY.
operator This property is required. String
You can specify an exact match or a partial match by using a field operator and a field value. Available options: EQUALS: The operator matches if the field value equals the specified value. STARTS_WITH: The operator matches if the field value starts with the specified value. ENDS_WITH: The operator matches if the field value ends with the specified value. CONTAINS: The operator matches if the field value contains the specified value. EQUALS_ANY: The operator matches if the field value is any value.
value This property is required. String
A request field matching the specified value will be excluded from inspection during preconfigured WAF evaluation. The field value must be given if the field operator is not EQUALS_ANY, and cannot be given if the field operator is EQUALS_ANY.
operator This property is required. string
You can specify an exact match or a partial match by using a field operator and a field value. Available options: EQUALS: The operator matches if the field value equals the specified value. STARTS_WITH: The operator matches if the field value starts with the specified value. ENDS_WITH: The operator matches if the field value ends with the specified value. CONTAINS: The operator matches if the field value contains the specified value. EQUALS_ANY: The operator matches if the field value is any value.
value This property is required. string
A request field matching the specified value will be excluded from inspection during preconfigured WAF evaluation. The field value must be given if the field operator is not EQUALS_ANY, and cannot be given if the field operator is EQUALS_ANY.
operator This property is required. str
You can specify an exact match or a partial match by using a field operator and a field value. Available options: EQUALS: The operator matches if the field value equals the specified value. STARTS_WITH: The operator matches if the field value starts with the specified value. ENDS_WITH: The operator matches if the field value ends with the specified value. CONTAINS: The operator matches if the field value contains the specified value. EQUALS_ANY: The operator matches if the field value is any value.
value This property is required. str
A request field matching the specified value will be excluded from inspection during preconfigured WAF evaluation. The field value must be given if the field operator is not EQUALS_ANY, and cannot be given if the field operator is EQUALS_ANY.
operator This property is required. String
You can specify an exact match or a partial match by using a field operator and a field value. Available options: EQUALS: The operator matches if the field value equals the specified value. STARTS_WITH: The operator matches if the field value starts with the specified value. ENDS_WITH: The operator matches if the field value ends with the specified value. CONTAINS: The operator matches if the field value contains the specified value. EQUALS_ANY: The operator matches if the field value is any value.
value This property is required. String
A request field matching the specified value will be excluded from inspection during preconfigured WAF evaluation. The field value must be given if the field operator is not EQUALS_ANY, and cannot be given if the field operator is EQUALS_ANY.

GetSecurityPolicyRulePreconfiguredWafConfigExclusionRequestUri

Operator This property is required. string
You can specify an exact match or a partial match by using a field operator and a field value. Available options: EQUALS: The operator matches if the field value equals the specified value. STARTS_WITH: The operator matches if the field value starts with the specified value. ENDS_WITH: The operator matches if the field value ends with the specified value. CONTAINS: The operator matches if the field value contains the specified value. EQUALS_ANY: The operator matches if the field value is any value.
Value This property is required. string
A request field matching the specified value will be excluded from inspection during preconfigured WAF evaluation. The field value must be given if the field operator is not EQUALS_ANY, and cannot be given if the field operator is EQUALS_ANY.
Operator This property is required. string
You can specify an exact match or a partial match by using a field operator and a field value. Available options: EQUALS: The operator matches if the field value equals the specified value. STARTS_WITH: The operator matches if the field value starts with the specified value. ENDS_WITH: The operator matches if the field value ends with the specified value. CONTAINS: The operator matches if the field value contains the specified value. EQUALS_ANY: The operator matches if the field value is any value.
Value This property is required. string
A request field matching the specified value will be excluded from inspection during preconfigured WAF evaluation. The field value must be given if the field operator is not EQUALS_ANY, and cannot be given if the field operator is EQUALS_ANY.
operator This property is required. String
You can specify an exact match or a partial match by using a field operator and a field value. Available options: EQUALS: The operator matches if the field value equals the specified value. STARTS_WITH: The operator matches if the field value starts with the specified value. ENDS_WITH: The operator matches if the field value ends with the specified value. CONTAINS: The operator matches if the field value contains the specified value. EQUALS_ANY: The operator matches if the field value is any value.
value This property is required. String
A request field matching the specified value will be excluded from inspection during preconfigured WAF evaluation. The field value must be given if the field operator is not EQUALS_ANY, and cannot be given if the field operator is EQUALS_ANY.
operator This property is required. string
You can specify an exact match or a partial match by using a field operator and a field value. Available options: EQUALS: The operator matches if the field value equals the specified value. STARTS_WITH: The operator matches if the field value starts with the specified value. ENDS_WITH: The operator matches if the field value ends with the specified value. CONTAINS: The operator matches if the field value contains the specified value. EQUALS_ANY: The operator matches if the field value is any value.
value This property is required. string
A request field matching the specified value will be excluded from inspection during preconfigured WAF evaluation. The field value must be given if the field operator is not EQUALS_ANY, and cannot be given if the field operator is EQUALS_ANY.
operator This property is required. str
You can specify an exact match or a partial match by using a field operator and a field value. Available options: EQUALS: The operator matches if the field value equals the specified value. STARTS_WITH: The operator matches if the field value starts with the specified value. ENDS_WITH: The operator matches if the field value ends with the specified value. CONTAINS: The operator matches if the field value contains the specified value. EQUALS_ANY: The operator matches if the field value is any value.
value This property is required. str
A request field matching the specified value will be excluded from inspection during preconfigured WAF evaluation. The field value must be given if the field operator is not EQUALS_ANY, and cannot be given if the field operator is EQUALS_ANY.
operator This property is required. String
You can specify an exact match or a partial match by using a field operator and a field value. Available options: EQUALS: The operator matches if the field value equals the specified value. STARTS_WITH: The operator matches if the field value starts with the specified value. ENDS_WITH: The operator matches if the field value ends with the specified value. CONTAINS: The operator matches if the field value contains the specified value. EQUALS_ANY: The operator matches if the field value is any value.
value This property is required. String
A request field matching the specified value will be excluded from inspection during preconfigured WAF evaluation. The field value must be given if the field operator is not EQUALS_ANY, and cannot be given if the field operator is EQUALS_ANY.

GetSecurityPolicyRuleRateLimitOption

BanDurationSec This property is required. int
Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
BanThresholds This property is required. List<GetSecurityPolicyRuleRateLimitOptionBanThreshold>
Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'banDurationSec' when the number of requests that exceed the 'rateLimitThreshold' also exceed this 'banThreshold'.
ConformAction This property is required. string
Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
EnforceOnKey This property is required. string
Determines the key to enforce the rateLimitThreshold on
EnforceOnKeyConfigs This property is required. List<GetSecurityPolicyRuleRateLimitOptionEnforceOnKeyConfig>
Enforce On Key Config of this security policy
EnforceOnKeyName This property is required. string
Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
ExceedAction This property is required. string
Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are "deny()" where valid values for status are 403, 404, 429, and 502, and "redirect" where the redirect parameters come from exceedRedirectOptions below.
ExceedRedirectOptions This property is required. List<GetSecurityPolicyRuleRateLimitOptionExceedRedirectOption>
Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect.
RateLimitThresholds This property is required. List<GetSecurityPolicyRuleRateLimitOptionRateLimitThreshold>
Threshold at which to begin ratelimiting.
BanDurationSec This property is required. int
Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
BanThresholds This property is required. []GetSecurityPolicyRuleRateLimitOptionBanThreshold
Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'banDurationSec' when the number of requests that exceed the 'rateLimitThreshold' also exceed this 'banThreshold'.
ConformAction This property is required. string
Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
EnforceOnKey This property is required. string
Determines the key to enforce the rateLimitThreshold on
EnforceOnKeyConfigs This property is required. []GetSecurityPolicyRuleRateLimitOptionEnforceOnKeyConfig
Enforce On Key Config of this security policy
EnforceOnKeyName This property is required. string
Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
ExceedAction This property is required. string
Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are "deny()" where valid values for status are 403, 404, 429, and 502, and "redirect" where the redirect parameters come from exceedRedirectOptions below.
ExceedRedirectOptions This property is required. []GetSecurityPolicyRuleRateLimitOptionExceedRedirectOption
Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect.
RateLimitThresholds This property is required. []GetSecurityPolicyRuleRateLimitOptionRateLimitThreshold
Threshold at which to begin ratelimiting.
banDurationSec This property is required. Integer
Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
banThresholds This property is required. List<GetSecurityPolicyRuleRateLimitOptionBanThreshold>
Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'banDurationSec' when the number of requests that exceed the 'rateLimitThreshold' also exceed this 'banThreshold'.
conformAction This property is required. String
Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
enforceOnKey This property is required. String
Determines the key to enforce the rateLimitThreshold on
enforceOnKeyConfigs This property is required. List<GetSecurityPolicyRuleRateLimitOptionEnforceOnKeyConfig>
Enforce On Key Config of this security policy
enforceOnKeyName This property is required. String
Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
exceedAction This property is required. String
Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are "deny()" where valid values for status are 403, 404, 429, and 502, and "redirect" where the redirect parameters come from exceedRedirectOptions below.
exceedRedirectOptions This property is required. List<GetSecurityPolicyRuleRateLimitOptionExceedRedirectOption>
Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect.
rateLimitThresholds This property is required. List<GetSecurityPolicyRuleRateLimitOptionRateLimitThreshold>
Threshold at which to begin ratelimiting.
banDurationSec This property is required. number
Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
banThresholds This property is required. GetSecurityPolicyRuleRateLimitOptionBanThreshold[]
Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'banDurationSec' when the number of requests that exceed the 'rateLimitThreshold' also exceed this 'banThreshold'.
conformAction This property is required. string
Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
enforceOnKey This property is required. string
Determines the key to enforce the rateLimitThreshold on
enforceOnKeyConfigs This property is required. GetSecurityPolicyRuleRateLimitOptionEnforceOnKeyConfig[]
Enforce On Key Config of this security policy
enforceOnKeyName This property is required. string
Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
exceedAction This property is required. string
Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are "deny()" where valid values for status are 403, 404, 429, and 502, and "redirect" where the redirect parameters come from exceedRedirectOptions below.
exceedRedirectOptions This property is required. GetSecurityPolicyRuleRateLimitOptionExceedRedirectOption[]
Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect.
rateLimitThresholds This property is required. GetSecurityPolicyRuleRateLimitOptionRateLimitThreshold[]
Threshold at which to begin ratelimiting.
ban_duration_sec This property is required. int
Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
ban_thresholds This property is required. Sequence[GetSecurityPolicyRuleRateLimitOptionBanThreshold]
Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'banDurationSec' when the number of requests that exceed the 'rateLimitThreshold' also exceed this 'banThreshold'.
conform_action This property is required. str
Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
enforce_on_key This property is required. str
Determines the key to enforce the rateLimitThreshold on
enforce_on_key_configs This property is required. Sequence[GetSecurityPolicyRuleRateLimitOptionEnforceOnKeyConfig]
Enforce On Key Config of this security policy
enforce_on_key_name This property is required. str
Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
exceed_action This property is required. str
Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are "deny()" where valid values for status are 403, 404, 429, and 502, and "redirect" where the redirect parameters come from exceedRedirectOptions below.
exceed_redirect_options This property is required. Sequence[GetSecurityPolicyRuleRateLimitOptionExceedRedirectOption]
Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect.
rate_limit_thresholds This property is required. Sequence[GetSecurityPolicyRuleRateLimitOptionRateLimitThreshold]
Threshold at which to begin ratelimiting.
banDurationSec This property is required. Number
Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
banThresholds This property is required. List<Property Map>
Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'banDurationSec' when the number of requests that exceed the 'rateLimitThreshold' also exceed this 'banThreshold'.
conformAction This property is required. String
Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
enforceOnKey This property is required. String
Determines the key to enforce the rateLimitThreshold on
enforceOnKeyConfigs This property is required. List<Property Map>
Enforce On Key Config of this security policy
enforceOnKeyName This property is required. String
Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
exceedAction This property is required. String
Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are "deny()" where valid values for status are 403, 404, 429, and 502, and "redirect" where the redirect parameters come from exceedRedirectOptions below.
exceedRedirectOptions This property is required. List<Property Map>
Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect.
rateLimitThresholds This property is required. List<Property Map>
Threshold at which to begin ratelimiting.

GetSecurityPolicyRuleRateLimitOptionBanThreshold

Count This property is required. int
Number of HTTP(S) requests for calculating the threshold.
IntervalSec This property is required. int
Interval over which the threshold is computed.
Count This property is required. int
Number of HTTP(S) requests for calculating the threshold.
IntervalSec This property is required. int
Interval over which the threshold is computed.
count This property is required. Integer
Number of HTTP(S) requests for calculating the threshold.
intervalSec This property is required. Integer
Interval over which the threshold is computed.
count This property is required. number
Number of HTTP(S) requests for calculating the threshold.
intervalSec This property is required. number
Interval over which the threshold is computed.
count This property is required. int
Number of HTTP(S) requests for calculating the threshold.
interval_sec This property is required. int
Interval over which the threshold is computed.
count This property is required. Number
Number of HTTP(S) requests for calculating the threshold.
intervalSec This property is required. Number
Interval over which the threshold is computed.

GetSecurityPolicyRuleRateLimitOptionEnforceOnKeyConfig

EnforceOnKeyName This property is required. string
Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
EnforceOnKeyType This property is required. string
Determines the key to enforce the rate_limit_threshold on
EnforceOnKeyName This property is required. string
Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
EnforceOnKeyType This property is required. string
Determines the key to enforce the rate_limit_threshold on
enforceOnKeyName This property is required. String
Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
enforceOnKeyType This property is required. String
Determines the key to enforce the rate_limit_threshold on
enforceOnKeyName This property is required. string
Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
enforceOnKeyType This property is required. string
Determines the key to enforce the rate_limit_threshold on
enforce_on_key_name This property is required. str
Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
enforce_on_key_type This property is required. str
Determines the key to enforce the rate_limit_threshold on
enforceOnKeyName This property is required. String
Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
enforceOnKeyType This property is required. String
Determines the key to enforce the rate_limit_threshold on

GetSecurityPolicyRuleRateLimitOptionExceedRedirectOption

Target This property is required. string
Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
Type This property is required. string
Type of the redirect action.
Target This property is required. string
Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
Type This property is required. string
Type of the redirect action.
target This property is required. String
Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
type This property is required. String
Type of the redirect action.
target This property is required. string
Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
type This property is required. string
Type of the redirect action.
target This property is required. str
Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
type This property is required. str
Type of the redirect action.
target This property is required. String
Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
type This property is required. String
Type of the redirect action.

GetSecurityPolicyRuleRateLimitOptionRateLimitThreshold

Count This property is required. int
Number of HTTP(S) requests for calculating the threshold.
IntervalSec This property is required. int
Interval over which the threshold is computed.
Count This property is required. int
Number of HTTP(S) requests for calculating the threshold.
IntervalSec This property is required. int
Interval over which the threshold is computed.
count This property is required. Integer
Number of HTTP(S) requests for calculating the threshold.
intervalSec This property is required. Integer
Interval over which the threshold is computed.
count This property is required. number
Number of HTTP(S) requests for calculating the threshold.
intervalSec This property is required. number
Interval over which the threshold is computed.
count This property is required. int
Number of HTTP(S) requests for calculating the threshold.
interval_sec This property is required. int
Interval over which the threshold is computed.
count This property is required. Number
Number of HTTP(S) requests for calculating the threshold.
intervalSec This property is required. Number
Interval over which the threshold is computed.

GetSecurityPolicyRuleRedirectOption

Target This property is required. string
Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
Type This property is required. string
Type of the redirect action. Available options: EXTERNAL_302: Must specify the corresponding target field in config. GOOGLE_RECAPTCHA: Cannot specify target field in config.
Target This property is required. string
Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
Type This property is required. string
Type of the redirect action. Available options: EXTERNAL_302: Must specify the corresponding target field in config. GOOGLE_RECAPTCHA: Cannot specify target field in config.
target This property is required. String
Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
type This property is required. String
Type of the redirect action. Available options: EXTERNAL_302: Must specify the corresponding target field in config. GOOGLE_RECAPTCHA: Cannot specify target field in config.
target This property is required. string
Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
type This property is required. string
Type of the redirect action. Available options: EXTERNAL_302: Must specify the corresponding target field in config. GOOGLE_RECAPTCHA: Cannot specify target field in config.
target This property is required. str
Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
type This property is required. str
Type of the redirect action. Available options: EXTERNAL_302: Must specify the corresponding target field in config. GOOGLE_RECAPTCHA: Cannot specify target field in config.
target This property is required. String
Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
type This property is required. String
Type of the redirect action. Available options: EXTERNAL_302: Must specify the corresponding target field in config. GOOGLE_RECAPTCHA: Cannot specify target field in config.

Package Details

Repository
Google Cloud (GCP) Classic pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.
Google Cloud v8.25.0 published on Thursday, Apr 3, 2025 by Pulumi