Google Cloud v8.25.0 published on Thursday, Apr 3, 2025 by Pulumi
gcp.compute.getSecurityPolicy
Explore with Pulumi AI
To get more information about Google Compute Security Policy, see:
- API documentation
- How-to Guides
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",
});
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")
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
})
}
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",
});
});
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());
}
}
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
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>
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]
func LookupSecurityPolicy(ctx *Context, args *LookupSecurityPolicyArgs, opts ...InvokeOption) (*LookupSecurityPolicyResult, error)
func LookupSecurityPolicyOutput(ctx *Context, args *LookupSecurityPolicyOutputArgs, opts ...InvokeOption) LookupSecurityPolicyResultOutput
> 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)
}
public static CompletableFuture<GetSecurityPolicyResult> getSecurityPolicy(GetSecurityPolicyArgs args, InvokeOptions options)
public static Output<GetSecurityPolicyResult> getSecurityPolicy(GetSecurityPolicyArgs args, InvokeOptions options)
fn::invoke:
function: gcp:compute/getSecurityPolicy:getSecurityPolicy
arguments:
# arguments dictionary
The following arguments are supported:
getSecurityPolicy Result
The following output properties are available:
- Adaptive
Protection List<GetConfigs Security Policy Adaptive Protection Config> - Advanced
Options List<GetConfigs Security Policy Advanced Options Config> - Description string
- Fingerprint string
- Id string
- The provider-assigned unique ID for this managed resource.
- Recaptcha
Options List<GetConfigs Security Policy Recaptcha Options Config> - Rules
List<Get
Security Policy Rule> - Type string
- Name string
- Project string
- Self
Link string
- Adaptive
Protection []GetConfigs Security Policy Adaptive Protection Config - Advanced
Options []GetConfigs Security Policy Advanced Options Config - Description string
- Fingerprint string
- Id string
- The provider-assigned unique ID for this managed resource.
- Recaptcha
Options []GetConfigs Security Policy Recaptcha Options Config - Rules
[]Get
Security Policy Rule Type - Type string
- Name string
- Project string
- Self
Link string
- adaptive
Protection List<GetConfigs Security Policy Adaptive Protection Config> - advanced
Options List<GetConfigs Security Policy Advanced Options Config> - description String
- fingerprint String
- id String
- The provider-assigned unique ID for this managed resource.
- recaptcha
Options List<GetConfigs Security Policy Recaptcha Options Config> - rules
List<Get
Security Policy Rule> - type String
- name String
- project String
- self
Link String
- adaptive
Protection GetConfigs Security Policy Adaptive Protection Config[] - advanced
Options GetConfigs Security Policy Advanced Options Config[] - description string
- fingerprint string
- id string
- The provider-assigned unique ID for this managed resource.
- recaptcha
Options GetConfigs Security Policy Recaptcha Options Config[] - rules
Get
Security Policy Rule[] - type string
- name string
- project string
- self
Link string
- adaptive_
protection_ Sequence[Getconfigs Security Policy Adaptive Protection Config] - advanced_
options_ Sequence[Getconfigs Security Policy Advanced Options Config] - description str
- fingerprint str
- id str
- The provider-assigned unique ID for this managed resource.
- recaptcha_
options_ Sequence[Getconfigs Security Policy Recaptcha Options Config] - rules
Sequence[Get
Security Policy Rule] - type str
- name str
- project str
- self_
link str
- adaptive
Protection List<Property Map>Configs - advanced
Options List<Property Map>Configs - description String
- fingerprint String
- id String
- The provider-assigned unique ID for this managed resource.
- recaptcha
Options List<Property Map>Configs - rules List<Property Map>
- type String
- name String
- project String
- self
Link String
Supporting Types
GetSecurityPolicyAdaptiveProtectionConfig
- Auto
Deploy Configs This property is required. List<GetSecurity Policy Adaptive Protection Config Auto Deploy Config> - Auto Deploy Config of this security policy
- Layer7Ddos
Defense Configs This property is required. List<GetSecurity Policy Adaptive Protection Config Layer7Ddos Defense Config> - Layer 7 DDoS Defense Config of this security policy
- Auto
Deploy Configs This property is required. []GetSecurity Policy Adaptive Protection Config Auto Deploy Config - Auto Deploy Config of this security policy
- Layer7Ddos
Defense Configs This property is required. []GetSecurity Policy Adaptive Protection Config Layer7Ddos Defense Config - Layer 7 DDoS Defense Config of this security policy
- auto
Deploy Configs This property is required. List<GetSecurity Policy Adaptive Protection Config Auto Deploy Config> - Auto Deploy Config of this security policy
- layer7Ddos
Defense Configs This property is required. List<GetSecurity Policy Adaptive Protection Config Layer7Ddos Defense Config> - Layer 7 DDoS Defense Config of this security policy
- auto
Deploy Configs This property is required. GetSecurity Policy Adaptive Protection Config Auto Deploy Config[] - Auto Deploy Config of this security policy
- layer7Ddos
Defense Configs This property is required. GetSecurity Policy Adaptive Protection Config Layer7Ddos Defense Config[] - Layer 7 DDoS Defense Config of this security policy
- auto_
deploy_ configs This property is required. Sequence[GetSecurity Policy Adaptive Protection Config Auto Deploy Config] - Auto Deploy Config of this security policy
- layer7_
ddos_ defense_ configs This property is required. Sequence[GetSecurity Policy Adaptive Protection Config Layer7Ddos Defense Config] - Layer 7 DDoS Defense Config of this security policy
- auto
Deploy Configs This property is required. List<Property Map> - Auto Deploy Config of this security policy
- layer7Ddos
Defense Configs This property is required. List<Property Map> - Layer 7 DDoS Defense Config of this security policy
GetSecurityPolicyAdaptiveProtectionConfigAutoDeployConfig
- Confidence
Threshold This property is required. double - 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. double - 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. double - Identifies new attackers only when the load to the backend service that is under attack exceeds this threshold.
- Confidence
Threshold This property is required. float64 - 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. float64 - 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. float64 - Identifies new attackers only when the load to the backend service that is under attack exceeds this threshold.
- confidence
Threshold This property is required. Double - Rules are only automatically deployed for alerts on potential attacks with confidence scores greater than this threshold.
- expiration
Sec 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.
- impacted
Baseline Threshold 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.
- load
Threshold This property is required. Double - Identifies new attackers only when the load to the backend service that is under attack exceeds this threshold.
- confidence
Threshold This property is required. number - Rules are only automatically deployed for alerts on potential attacks with confidence scores greater than this threshold.
- expiration
Sec 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.
- impacted
Baseline Threshold 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.
- load
Threshold 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.
- confidence
Threshold This property is required. Number - Rules are only automatically deployed for alerts on potential attacks with confidence scores greater than this threshold.
- expiration
Sec 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.
- impacted
Baseline Threshold 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.
- load
Threshold 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.
- Rule
Visibility This property is required. string - Rule visibility. Supported values include: "STANDARD", "PREMIUM".
- Threshold
Configs This property is required. List<GetSecurity Policy Adaptive Protection Config Layer7Ddos Defense Config Threshold Config> - 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. string - Rule visibility. Supported values include: "STANDARD", "PREMIUM".
- Threshold
Configs This property is required. []GetSecurity Policy Adaptive Protection Config Layer7Ddos Defense Config Threshold Config - 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.
- rule
Visibility This property is required. String - Rule visibility. Supported values include: "STANDARD", "PREMIUM".
- threshold
Configs This property is required. List<GetSecurity Policy Adaptive Protection Config Layer7Ddos Defense Config Threshold Config> - 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.
- rule
Visibility This property is required. string - Rule visibility. Supported values include: "STANDARD", "PREMIUM".
- threshold
Configs This property is required. GetSecurity Policy Adaptive Protection Config Layer7Ddos Defense Config Threshold Config[] - 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[GetSecurity Policy Adaptive Protection Config Layer7Ddos Defense Config Threshold Config] - 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.
- rule
Visibility This property is required. String - Rule visibility. Supported values include: "STANDARD", "PREMIUM".
- threshold
Configs This property is required. List<Property Map> - Configuration options for layer7 adaptive protection for various customizable thresholds.
GetSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig
- Auto
Deploy Confidence Threshold This property is required. double - Auto
Deploy Expiration Sec This property is required. int - Auto
Deploy Impacted Baseline Threshold This property is required. double - Auto
Deploy Load Threshold This property is required. double - Detection
Absolute Qps This property is required. double - Detection
Load Threshold This property is required. double - Detection
Relative To Baseline Qps This property is required. double - Name
This property is required. string - The name of the security policy. Provide either this or a
self_link
. - Traffic
Granularity Configs This property is required. List<GetSecurity Policy Adaptive Protection Config Layer7Ddos Defense Config Threshold Config Traffic Granularity Config>
- Auto
Deploy Confidence Threshold This property is required. float64 - Auto
Deploy Expiration Sec This property is required. int - Auto
Deploy Impacted Baseline Threshold This property is required. float64 - Auto
Deploy Load Threshold This property is required. float64 - Detection
Absolute Qps This property is required. float64 - Detection
Load Threshold This property is required. float64 - Detection
Relative To Baseline Qps This property is required. float64 - Name
This property is required. string - The name of the security policy. Provide either this or a
self_link
. - Traffic
Granularity Configs This property is required. []GetSecurity Policy Adaptive Protection Config Layer7Ddos Defense Config Threshold Config Traffic Granularity Config
- auto
Deploy Confidence Threshold This property is required. Double - auto
Deploy Expiration Sec This property is required. Integer - auto
Deploy Impacted Baseline Threshold This property is required. Double - auto
Deploy Load Threshold This property is required. Double - detection
Absolute Qps This property is required. Double - detection
Load Threshold This property is required. Double - detection
Relative To Baseline Qps This property is required. Double - name
This property is required. String - The name of the security policy. Provide either this or a
self_link
. - traffic
Granularity Configs This property is required. List<GetSecurity Policy Adaptive Protection Config Layer7Ddos Defense Config Threshold Config Traffic Granularity Config>
- auto
Deploy Confidence Threshold This property is required. number - auto
Deploy Expiration Sec This property is required. number - auto
Deploy Impacted Baseline Threshold This property is required. number - auto
Deploy Load Threshold This property is required. number - detection
Absolute Qps This property is required. number - detection
Load Threshold This property is required. number - detection
Relative To Baseline Qps This property is required. number - name
This property is required. string - The name of the security policy. Provide either this or a
self_link
. - traffic
Granularity Configs This property is required. GetSecurity Policy Adaptive Protection Config Layer7Ddos Defense Config Threshold Config Traffic Granularity Config[]
- 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[GetSecurity Policy Adaptive Protection Config Layer7Ddos Defense Config Threshold Config Traffic Granularity Config]
- auto
Deploy Confidence Threshold This property is required. Number - auto
Deploy Expiration Sec This property is required. Number - auto
Deploy Impacted Baseline Threshold This property is required. Number - auto
Deploy Load Threshold This property is required. Number - detection
Absolute Qps This property is required. Number - detection
Load Threshold This property is required. Number - detection
Relative To Baseline Qps This property is required. Number - name
This property is required. String - The name of the security policy. Provide either this or a
self_link
. - traffic
Granularity Configs This property is required. List<Property Map>
GetSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig
- 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. 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. 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. 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. 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.
- enable
Each Unique Value 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
- Json
Custom Configs This property is required. List<GetSecurity Policy Advanced Options Config Json Custom Config> - Custom configuration to apply the JSON parsing. Only applicable when JSON parsing is set to STANDARD.
- Json
Parsing This property is required. string - JSON body parsing. Supported values include: "DISABLED", "STANDARD".
- Log
Level This property is required. string - Logging level. Supported values include: "NORMAL", "VERBOSE".
- User
Ip Request Headers This property is required. List<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. []GetSecurity Policy Advanced Options Config Json Custom Config - Custom configuration to apply the JSON parsing. Only applicable when JSON parsing is set to STANDARD.
- Json
Parsing This property is required. string - JSON body parsing. Supported values include: "DISABLED", "STANDARD".
- Log
Level This property is required. string - Logging level. Supported values include: "NORMAL", "VERBOSE".
- User
Ip Request Headers 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. List<GetSecurity Policy Advanced Options Config Json Custom Config> - Custom configuration to apply the JSON parsing. Only applicable when JSON parsing is set to STANDARD.
- json
Parsing This property is required. String - JSON body parsing. Supported values include: "DISABLED", "STANDARD".
- log
Level This property is required. String - Logging level. Supported values include: "NORMAL", "VERBOSE".
- user
Ip Request Headers This property is required. List<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. GetSecurity Policy Advanced Options Config Json Custom Config[] - Custom configuration to apply the JSON parsing. Only applicable when JSON parsing is set to STANDARD.
- json
Parsing This property is required. string - JSON body parsing. Supported values include: "DISABLED", "STANDARD".
- log
Level This property is required. string - Logging level. Supported values include: "NORMAL", "VERBOSE".
- user
Ip Request Headers 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[GetSecurity Policy Advanced Options Config Json Custom Config] - 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.
- json
Custom Configs This property is required. List<Property Map> - Custom configuration to apply the JSON parsing. Only applicable when JSON parsing is set to STANDARD.
- json
Parsing This property is required. String - JSON body parsing. Supported values include: "DISABLED", "STANDARD".
- log
Level This property is required. String - Logging level. Supported values include: "NORMAL", "VERBOSE".
- user
Ip Request Headers 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
- Content
Types This property is required. List<string> - A list of custom Content-Type header values to apply the JSON parsing.
- Content
Types This property is required. []string - A list of custom Content-Type header values to apply the JSON parsing.
- content
Types This property is required. List<String> - A list of custom Content-Type header values to apply the JSON parsing.
- content
Types 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.
- content
Types This property is required. List<String> - A list of custom Content-Type header values to apply the JSON parsing.
GetSecurityPolicyRecaptchaOptionsConfig
- Redirect
Site Key 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. 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. 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. 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.
- redirect
Site Key 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.
- Header
Actions This property is required. List<GetSecurity Policy Rule Header Action> - Additional actions that are performed on headers.
- Matches
This property is required. List<GetSecurity Policy Rule Match> - 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. List<GetSecurity Policy Rule Preconfigured Waf Config> - 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. List<GetSecurity Policy Rule Rate Limit Option> - 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. List<GetSecurity Policy Rule Redirect Option> - 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.
- Header
Actions This property is required. []GetSecurity Policy Rule Header Action - Additional actions that are performed on headers.
- Matches
This property is required. []GetSecurity Policy Rule Match - 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. []GetSecurity Policy Rule Preconfigured Waf Config - 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. []GetSecurity Policy Rule Rate Limit Option - 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. []GetSecurity Policy Rule Redirect Option - 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.
- header
Actions This property is required. List<GetSecurity Policy Rule Header Action> - Additional actions that are performed on headers.
- matches
This property is required. List<GetSecurity Policy Rule Match> - 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. List<GetSecurity Policy Rule Preconfigured Waf Config> - 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.
- rate
Limit Options This property is required. List<GetSecurity Policy Rule Rate Limit Option> - 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. List<GetSecurity Policy Rule Redirect Option> - 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.
- header
Actions This property is required. GetSecurity Policy Rule Header Action[] - Additional actions that are performed on headers.
- matches
This property is required. GetSecurity Policy Rule Match[] - 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. GetSecurity Policy Rule Preconfigured Waf Config[] - 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.
- rate
Limit Options This property is required. GetSecurity Policy Rule Rate Limit Option[] - 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. GetSecurity Policy Rule Redirect Option[] - 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[GetSecurity Policy Rule Header Action] - Additional actions that are performed on headers.
- matches
This property is required. Sequence[GetSecurity Policy Rule Match] - 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[GetSecurity Policy Rule Preconfigured Waf Config] - 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[GetSecurity Policy Rule Rate Limit Option] - 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[GetSecurity Policy Rule Redirect Option] - 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.
- header
Actions 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.
- preconfigured
Waf Configs 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.
- rate
Limit Options 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.
- redirect
Options This property is required. List<Property Map> - Parameters defining the redirect action. Cannot be specified for any other actions.
GetSecurityPolicyRuleHeaderAction
- Request
Headers To Adds This property is required. List<GetSecurity Policy Rule Header Action Request Headers To Add> - The list of request headers to add or overwrite if they're already present.
- Request
Headers To Adds This property is required. []GetSecurity Policy Rule Header Action Request Headers To Add - The list of request headers to add or overwrite if they're already present.
- request
Headers To Adds This property is required. List<GetSecurity Policy Rule Header Action Request Headers To Add> - The list of request headers to add or overwrite if they're already present.
- request
Headers To Adds This property is required. GetSecurity Policy Rule Header Action Request Headers To Add[] - The list of request headers to add or overwrite if they're already present.
- request_
headers_ to_ adds This property is required. Sequence[GetSecurity Policy Rule Header Action Request Headers To Add] - The list of request headers to add or overwrite if they're already present.
- request
Headers To Adds This property is required. List<Property Map> - The list of request headers to add or overwrite if they're already present.
GetSecurityPolicyRuleHeaderActionRequestHeadersToAdd
- Header
Name This property is required. string - The name of the header to set.
- Header
Value This property is required. string - The value to set the named header to.
- Header
Name This property is required. string - The name of the header to set.
- Header
Value This property is required. string - The value to set the named header to.
- header
Name This property is required. String - The name of the header to set.
- header
Value This property is required. String - The value to set the named header to.
- header
Name This property is required. string - The name of the header to set.
- header
Value 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.
- header
Name This property is required. String - The name of the header to set.
- header
Value This property is required. String - The value to set the named header to.
GetSecurityPolicyRuleMatch
- Configs
This property is required. List<GetSecurity Policy Rule Match Config> - 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. List<GetSecurity Policy Rule Match Expr Option> - The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr').
- Exprs
This property is required. List<GetSecurity Policy Rule Match Expr> - 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. 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. []GetSecurity Policy Rule Match Config - 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. []GetSecurity Policy Rule Match Expr Option - The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr').
- Exprs
This property is required. []GetSecurity Policy Rule Match Expr - 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. 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<GetSecurity Policy Rule Match Config> - 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. List<GetSecurity Policy Rule Match Expr Option> - The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr').
- exprs
This property is required. List<GetSecurity Policy Rule Match Expr> - 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. 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. GetSecurity Policy Rule Match Config[] - 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. GetSecurity Policy Rule Match Expr Option[] - The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr').
- exprs
This property is required. GetSecurity Policy Rule Match Expr[] - 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. 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[GetSecurity Policy Rule Match Config] - 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[GetSecurity Policy Rule Match Expr Option] - The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr').
- exprs
This property is required. Sequence[GetSecurity Policy Rule Match Expr] - 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.
- expr
Options 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.
- versioned
Expr 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
- Src
Ip Ranges 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).
- Src
Ip Ranges 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. 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).
- src
Ip Ranges 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).
- src
Ip Ranges 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
- Recaptcha
Options This property is required. List<GetSecurity Policy Rule Match Expr Option Recaptcha Option> - 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. []GetSecurity Policy Rule Match Expr Option Recaptcha Option - 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. List<GetSecurity Policy Rule Match Expr Option Recaptcha Option> - 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. GetSecurity Policy Rule Match Expr Option Recaptcha Option[] - 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[GetSecurity Policy Rule Match Expr Option Recaptcha Option] - 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. 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
- Action
Token Site Keys 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
- Session
Token Site Keys 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.
- Action
Token Site Keys 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
- Session
Token Site Keys 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. 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
- session
Token Site Keys 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.
- action
Token Site Keys 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
- session
Token Site Keys 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.
- action
Token Site Keys 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
- session
Token Site Keys 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<GetSecurity Policy Rule Preconfigured Waf Config Exclusion> - An exclusion to apply during preconfigured WAF evaluation.
- Exclusions
This property is required. []GetSecurity Policy Rule Preconfigured Waf Config Exclusion - An exclusion to apply during preconfigured WAF evaluation.
- exclusions
This property is required. List<GetSecurity Policy Rule Preconfigured Waf Config Exclusion> - An exclusion to apply during preconfigured WAF evaluation.
- exclusions
This property is required. GetSecurity Policy Rule Preconfigured Waf Config Exclusion[] - An exclusion to apply during preconfigured WAF evaluation.
- exclusions
This property is required. Sequence[GetSecurity Policy Rule Preconfigured Waf Config Exclusion] - 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
This property is required. List<GetSecurity Policy Rule Preconfigured Waf Config Exclusion Request Cooky> - Request cookie whose value will be excluded from inspection during preconfigured WAF evaluation.
- Request
Headers This property is required. List<GetSecurity Policy Rule Preconfigured Waf Config Exclusion Request Header> - Request header whose value will be excluded from inspection during preconfigured WAF evaluation.
- Request
Query Params This property is required. List<GetSecurity Policy Rule Preconfigured Waf Config Exclusion Request Query Param> - 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. List<GetSecurity Policy Rule Preconfigured Waf Config Exclusion Request Uri> - 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. 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.
- Target
Rule Set This property is required. string - Target WAF rule set to apply the preconfigured WAF exclusion.
This property is required. []GetSecurity Policy Rule Preconfigured Waf Config Exclusion Request Cooky - Request cookie whose value will be excluded from inspection during preconfigured WAF evaluation.
- Request
Headers This property is required. []GetSecurity Policy Rule Preconfigured Waf Config Exclusion Request Header - Request header whose value will be excluded from inspection during preconfigured WAF evaluation.
- Request
Query Params This property is required. []GetSecurity Policy Rule Preconfigured Waf Config Exclusion Request Query Param - 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. []GetSecurity Policy Rule Preconfigured Waf Config Exclusion Request Uri - 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. []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.
- Target
Rule Set This property is required. string - Target WAF rule set to apply the preconfigured WAF exclusion.
This property is required. List<GetSecurity Policy Rule Preconfigured Waf Config Exclusion Request Cooky> - Request cookie whose value will be excluded from inspection during preconfigured WAF evaluation.
- request
Headers This property is required. List<GetSecurity Policy Rule Preconfigured Waf Config Exclusion Request Header> - Request header whose value will be excluded from inspection during preconfigured WAF evaluation.
- request
Query Params This property is required. List<GetSecurity Policy Rule Preconfigured Waf Config Exclusion Request Query Param> - 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. List<GetSecurity Policy Rule Preconfigured Waf Config Exclusion Request Uri> - 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. 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.
- target
Rule Set This property is required. String - Target WAF rule set to apply the preconfigured WAF exclusion.
This property is required. GetSecurity Policy Rule Preconfigured Waf Config Exclusion Request Cooky[] - Request cookie whose value will be excluded from inspection during preconfigured WAF evaluation.
- request
Headers This property is required. GetSecurity Policy Rule Preconfigured Waf Config Exclusion Request Header[] - Request header whose value will be excluded from inspection during preconfigured WAF evaluation.
- request
Query Params This property is required. GetSecurity Policy Rule Preconfigured Waf Config Exclusion Request Query Param[] - 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. GetSecurity Policy Rule Preconfigured Waf Config Exclusion Request Uri[] - 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. 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.
- target
Rule Set This property is required. string - Target WAF rule set to apply the preconfigured WAF exclusion.
This property is required. Sequence[GetSecurity Policy Rule Preconfigured Waf Config Exclusion Request Cooky] - Request cookie whose value will be excluded from inspection during preconfigured WAF evaluation.
- request_
headers This property is required. Sequence[GetSecurity Policy Rule Preconfigured Waf Config Exclusion Request Header] - Request header whose value will be excluded from inspection during preconfigured WAF evaluation.
- request_
query_ params This property is required. Sequence[GetSecurity Policy Rule Preconfigured Waf Config Exclusion Request Query Param] - 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[GetSecurity Policy Rule Preconfigured Waf Config Exclusion Request Uri] - 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.
This property is required. List<Property Map>- Request cookie whose value will be excluded from inspection during preconfigured WAF evaluation.
- request
Headers This property is required. List<Property Map> - Request header whose value will be excluded from inspection during preconfigured WAF evaluation.
- request
Query Params 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.
- request
Uris 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.
- target
Rule Ids 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.
- target
Rule Set 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
- 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. List<GetSecurity Policy Rule Rate Limit Option Ban Threshold> - 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. string - 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. string - Determines the key to enforce the rateLimitThreshold on
- Enforce
On Key Configs This property is required. List<GetSecurity Policy Rule Rate Limit Option Enforce On Key Config> - Enforce On Key Config of this security policy
- Enforce
On Key Name 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.
- Exceed
Action 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.
- Exceed
Redirect Options This property is required. List<GetSecurity Policy Rule Rate Limit Option Exceed Redirect Option> - 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. List<GetSecurity Policy Rule Rate Limit Option Rate Limit Threshold> - 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. []GetSecurity Policy Rule Rate Limit Option Ban Threshold - 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. string - 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. string - Determines the key to enforce the rateLimitThreshold on
- Enforce
On Key Configs This property is required. []GetSecurity Policy Rule Rate Limit Option Enforce On Key Config - Enforce On Key Config of this security policy
- Enforce
On Key Name 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.
- Exceed
Action 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.
- Exceed
Redirect Options This property is required. []GetSecurity Policy Rule Rate Limit Option Exceed Redirect Option - 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. []GetSecurity Policy Rule Rate Limit Option Rate Limit Threshold - Threshold at which to begin ratelimiting.
- ban
Duration Sec 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.
- ban
Thresholds This property is required. List<GetSecurity Policy Rule Rate Limit Option Ban Threshold> - 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. String - 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. String - Determines the key to enforce the rateLimitThreshold on
- enforce
On Key Configs This property is required. List<GetSecurity Policy Rule Rate Limit Option Enforce On Key Config> - Enforce On Key Config of this security policy
- enforce
On Key Name 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.
- exceed
Action 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.
- exceed
Redirect Options This property is required. List<GetSecurity Policy Rule Rate Limit Option Exceed Redirect Option> - 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. List<GetSecurity Policy Rule Rate Limit Option Rate Limit Threshold> - Threshold at which to begin ratelimiting.
- ban
Duration Sec 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.
- ban
Thresholds This property is required. GetSecurity Policy Rule Rate Limit Option Ban Threshold[] - 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. string - 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. string - Determines the key to enforce the rateLimitThreshold on
- enforce
On Key Configs This property is required. GetSecurity Policy Rule Rate Limit Option Enforce On Key Config[] - Enforce On Key Config of this security policy
- enforce
On Key Name 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.
- exceed
Action 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.
- exceed
Redirect Options This property is required. GetSecurity Policy Rule Rate Limit Option Exceed Redirect Option[] - 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. GetSecurity Policy Rule Rate Limit Option Rate Limit Threshold[] - 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[GetSecurity Policy Rule Rate Limit Option Ban Threshold] - 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[GetSecurity Policy Rule Rate Limit Option Enforce On Key Config] - 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[GetSecurity Policy Rule Rate Limit Option Exceed Redirect Option] - 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[GetSecurity Policy Rule Rate Limit Option Rate Limit Threshold] - Threshold at which to begin ratelimiting.
- ban
Duration Sec 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.
- ban
Thresholds 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'.
- conform
Action This property is required. String - 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. String - Determines the key to enforce the rateLimitThreshold on
- enforce
On Key Configs This property is required. List<Property Map> - Enforce On Key Config of this security policy
- enforce
On Key Name 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.
- exceed
Action 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.
- exceed
Redirect Options 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.
- rate
Limit Thresholds 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.
- Interval
Sec 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.
- Interval
Sec 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.
- interval
Sec 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.
- interval
Sec 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.
- interval
Sec This property is required. Number - Interval over which the threshold is computed.
GetSecurityPolicyRuleRateLimitOptionEnforceOnKeyConfig
- Enforce
On Key Name 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.
- Enforce
On Key Type This property is required. string - Determines the key to enforce the rate_limit_threshold on
- Enforce
On Key Name 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.
- Enforce
On Key Type This property is required. string - Determines the key to enforce the rate_limit_threshold on
- enforce
On Key Name 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.
- enforce
On Key Type This property is required. String - Determines the key to enforce the rate_limit_threshold on
- enforce
On Key Name 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.
- enforce
On Key Type 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
- enforce
On Key Name 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.
- enforce
On Key Type This property is required. String - Determines the key to enforce the rate_limit_threshold on
GetSecurityPolicyRuleRateLimitOptionExceedRedirectOption
GetSecurityPolicyRuleRateLimitOptionRateLimitThreshold
- 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. 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. Integer - Number of HTTP(S) requests for calculating the threshold.
- interval
Sec 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.
- interval
Sec 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.
- interval
Sec 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.