1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. WafOwaspWhiteRule
tencentcloud 1.82.45 published on Tuesday, Dec 16, 2025 by tencentcloudstack
tencentcloud logo
tencentcloud 1.82.45 published on Tuesday, Dec 16, 2025 by tencentcloudstack

    Provides a resource to create a WAF owasp white rule

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.WafOwaspWhiteRule("example", {
        name: "tf-example",
        domain: "example.qcloud.com",
        strategies: [{
            field: "IP",
            compareFunc: "ipmatch",
            content: "1.1.1.1",
            arg: "",
            caseNotSensitive: 0,
        }],
        ids: [
            10000000,
            20000000,
            30000000,
            40000000,
            90000000,
            110000000,
            190000000,
            200000000,
            210000000,
            220000000,
            230000000,
            240000000,
            250000000,
            260000000,
            270000000,
            280000000,
            290000000,
            300000000,
            310000000,
            320000000,
            330000000,
            340000000,
            350000000,
            360000000,
            370000000,
        ],
        type: 1,
        jobType: "TimedJob",
        jobDateTime: {
            timeds: [{
                startDateTime: 0,
                endDateTime: 0,
            }],
            timeTZone: "UTC+8",
        },
        expireTime: 0,
        status: 1,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.WafOwaspWhiteRule("example",
        name="tf-example",
        domain="example.qcloud.com",
        strategies=[{
            "field": "IP",
            "compare_func": "ipmatch",
            "content": "1.1.1.1",
            "arg": "",
            "case_not_sensitive": 0,
        }],
        ids=[
            10000000,
            20000000,
            30000000,
            40000000,
            90000000,
            110000000,
            190000000,
            200000000,
            210000000,
            220000000,
            230000000,
            240000000,
            250000000,
            260000000,
            270000000,
            280000000,
            290000000,
            300000000,
            310000000,
            320000000,
            330000000,
            340000000,
            350000000,
            360000000,
            370000000,
        ],
        type=1,
        job_type="TimedJob",
        job_date_time={
            "timeds": [{
                "start_date_time": 0,
                "end_date_time": 0,
            }],
            "time_t_zone": "UTC+8",
        },
        expire_time=0,
        status=1)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewWafOwaspWhiteRule(ctx, "example", &tencentcloud.WafOwaspWhiteRuleArgs{
    			Name:   pulumi.String("tf-example"),
    			Domain: pulumi.String("example.qcloud.com"),
    			Strategies: tencentcloud.WafOwaspWhiteRuleStrategyArray{
    				&tencentcloud.WafOwaspWhiteRuleStrategyArgs{
    					Field:            pulumi.String("IP"),
    					CompareFunc:      pulumi.String("ipmatch"),
    					Content:          pulumi.String("1.1.1.1"),
    					Arg:              pulumi.String(""),
    					CaseNotSensitive: pulumi.Float64(0),
    				},
    			},
    			Ids: pulumi.Float64Array{
    				pulumi.Float64(10000000),
    				pulumi.Float64(20000000),
    				pulumi.Float64(30000000),
    				pulumi.Float64(40000000),
    				pulumi.Float64(90000000),
    				pulumi.Float64(110000000),
    				pulumi.Float64(190000000),
    				pulumi.Float64(200000000),
    				pulumi.Float64(210000000),
    				pulumi.Float64(220000000),
    				pulumi.Float64(230000000),
    				pulumi.Float64(240000000),
    				pulumi.Float64(250000000),
    				pulumi.Float64(260000000),
    				pulumi.Float64(270000000),
    				pulumi.Float64(280000000),
    				pulumi.Float64(290000000),
    				pulumi.Float64(300000000),
    				pulumi.Float64(310000000),
    				pulumi.Float64(320000000),
    				pulumi.Float64(330000000),
    				pulumi.Float64(340000000),
    				pulumi.Float64(350000000),
    				pulumi.Float64(360000000),
    				pulumi.Float64(370000000),
    			},
    			Type:    pulumi.Float64(1),
    			JobType: pulumi.String("TimedJob"),
    			JobDateTime: &tencentcloud.WafOwaspWhiteRuleJobDateTimeArgs{
    				Timeds: tencentcloud.WafOwaspWhiteRuleJobDateTimeTimedArray{
    					&tencentcloud.WafOwaspWhiteRuleJobDateTimeTimedArgs{
    						StartDateTime: pulumi.Float64(0),
    						EndDateTime:   pulumi.Float64(0),
    					},
    				},
    				TimeTZone: pulumi.String("UTC+8"),
    			},
    			ExpireTime: pulumi.Float64(0),
    			Status:     pulumi.Float64(1),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.WafOwaspWhiteRule("example", new()
        {
            Name = "tf-example",
            Domain = "example.qcloud.com",
            Strategies = new[]
            {
                new Tencentcloud.Inputs.WafOwaspWhiteRuleStrategyArgs
                {
                    Field = "IP",
                    CompareFunc = "ipmatch",
                    Content = "1.1.1.1",
                    Arg = "",
                    CaseNotSensitive = 0,
                },
            },
            Ids = new[]
            {
                10000000,
                20000000,
                30000000,
                40000000,
                90000000,
                110000000,
                190000000,
                200000000,
                210000000,
                220000000,
                230000000,
                240000000,
                250000000,
                260000000,
                270000000,
                280000000,
                290000000,
                300000000,
                310000000,
                320000000,
                330000000,
                340000000,
                350000000,
                360000000,
                370000000,
            },
            Type = 1,
            JobType = "TimedJob",
            JobDateTime = new Tencentcloud.Inputs.WafOwaspWhiteRuleJobDateTimeArgs
            {
                Timeds = new[]
                {
                    new Tencentcloud.Inputs.WafOwaspWhiteRuleJobDateTimeTimedArgs
                    {
                        StartDateTime = 0,
                        EndDateTime = 0,
                    },
                },
                TimeTZone = "UTC+8",
            },
            ExpireTime = 0,
            Status = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.WafOwaspWhiteRule;
    import com.pulumi.tencentcloud.WafOwaspWhiteRuleArgs;
    import com.pulumi.tencentcloud.inputs.WafOwaspWhiteRuleStrategyArgs;
    import com.pulumi.tencentcloud.inputs.WafOwaspWhiteRuleJobDateTimeArgs;
    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) {
            var example = new WafOwaspWhiteRule("example", WafOwaspWhiteRuleArgs.builder()
                .name("tf-example")
                .domain("example.qcloud.com")
                .strategies(WafOwaspWhiteRuleStrategyArgs.builder()
                    .field("IP")
                    .compareFunc("ipmatch")
                    .content("1.1.1.1")
                    .arg("")
                    .caseNotSensitive(0.0)
                    .build())
                .ids(            
                    10000000.0,
                    20000000.0,
                    30000000.0,
                    40000000.0,
                    90000000.0,
                    110000000.0,
                    190000000.0,
                    200000000.0,
                    210000000.0,
                    220000000.0,
                    230000000.0,
                    240000000.0,
                    250000000.0,
                    260000000.0,
                    270000000.0,
                    280000000.0,
                    290000000.0,
                    300000000.0,
                    310000000.0,
                    320000000.0,
                    330000000.0,
                    340000000.0,
                    350000000.0,
                    360000000.0,
                    370000000.0)
                .type(1.0)
                .jobType("TimedJob")
                .jobDateTime(WafOwaspWhiteRuleJobDateTimeArgs.builder()
                    .timeds(WafOwaspWhiteRuleJobDateTimeTimedArgs.builder()
                        .startDateTime(0.0)
                        .endDateTime(0.0)
                        .build())
                    .timeTZone("UTC+8")
                    .build())
                .expireTime(0.0)
                .status(1.0)
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:WafOwaspWhiteRule
        properties:
          name: tf-example
          domain: example.qcloud.com
          strategies:
            - field: IP
              compareFunc: ipmatch
              content: 1.1.1.1
              arg: ""
              caseNotSensitive: 0
          ids:
            - 1e+07
            - 2e+07
            - 3e+07
            - 4e+07
            - 9e+07
            - 1.1e+08
            - 1.9e+08
            - 2e+08
            - 2.1e+08
            - 2.2e+08
            - 2.3e+08
            - 2.4e+08
            - 2.5e+08
            - 2.6e+08
            - 2.7e+08
            - 2.8e+08
            - 2.9e+08
            - 3e+08
            - 3.1e+08
            - 3.2e+08
            - 3.3e+08
            - 3.4e+08
            - 3.5e+08
            - 3.6e+08
            - 3.7e+08
          type: 1
          jobType: TimedJob
          jobDateTime:
            timeds:
              - startDateTime: 0
                endDateTime: 0
            timeTZone: UTC+8
          expireTime: 0
          status: 1
    

    Create WafOwaspWhiteRule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new WafOwaspWhiteRule(name: string, args: WafOwaspWhiteRuleArgs, opts?: CustomResourceOptions);
    @overload
    def WafOwaspWhiteRule(resource_name: str,
                          args: WafOwaspWhiteRuleArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def WafOwaspWhiteRule(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          domain: Optional[str] = None,
                          expire_time: Optional[float] = None,
                          ids: Optional[Sequence[float]] = None,
                          job_date_time: Optional[WafOwaspWhiteRuleJobDateTimeArgs] = None,
                          job_type: Optional[str] = None,
                          strategies: Optional[Sequence[WafOwaspWhiteRuleStrategyArgs]] = None,
                          type: Optional[float] = None,
                          name: Optional[str] = None,
                          status: Optional[float] = None,
                          waf_owasp_white_rule_id: Optional[str] = None)
    func NewWafOwaspWhiteRule(ctx *Context, name string, args WafOwaspWhiteRuleArgs, opts ...ResourceOption) (*WafOwaspWhiteRule, error)
    public WafOwaspWhiteRule(string name, WafOwaspWhiteRuleArgs args, CustomResourceOptions? opts = null)
    public WafOwaspWhiteRule(String name, WafOwaspWhiteRuleArgs args)
    public WafOwaspWhiteRule(String name, WafOwaspWhiteRuleArgs args, CustomResourceOptions options)
    
    type: tencentcloud:WafOwaspWhiteRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args WafOwaspWhiteRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args WafOwaspWhiteRuleArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args WafOwaspWhiteRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WafOwaspWhiteRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WafOwaspWhiteRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    WafOwaspWhiteRule Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The WafOwaspWhiteRule resource accepts the following input properties:

    Domain string
    Domain name.
    ExpireTime double
    If the JobDateTime field is not set, this field is used. 0 means permanent, other values indicate the cutoff time for scheduled effect (unit: seconds).
    Ids List<double>
    ID list of allowlisted rules.
    JobDateTime WafOwaspWhiteRuleJobDateTime
    Scheduled task configuration.
    JobType string
    Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
    Strategies List<WafOwaspWhiteRuleStrategy>
    Rule-Based matching policy list.
    Type double
    Allowlist type. valid values: 0 (allowlisting by specific rule ID), 1 (allowlisting by rule type).
    Name string
    Rule name.
    Status double
    Rule status. valid values: 0 (disabled), 1 (enabled). enabled by default.
    WafOwaspWhiteRuleId string
    ID of the resource.
    Domain string
    Domain name.
    ExpireTime float64
    If the JobDateTime field is not set, this field is used. 0 means permanent, other values indicate the cutoff time for scheduled effect (unit: seconds).
    Ids []float64
    ID list of allowlisted rules.
    JobDateTime WafOwaspWhiteRuleJobDateTimeArgs
    Scheduled task configuration.
    JobType string
    Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
    Strategies []WafOwaspWhiteRuleStrategyArgs
    Rule-Based matching policy list.
    Type float64
    Allowlist type. valid values: 0 (allowlisting by specific rule ID), 1 (allowlisting by rule type).
    Name string
    Rule name.
    Status float64
    Rule status. valid values: 0 (disabled), 1 (enabled). enabled by default.
    WafOwaspWhiteRuleId string
    ID of the resource.
    domain String
    Domain name.
    expireTime Double
    If the JobDateTime field is not set, this field is used. 0 means permanent, other values indicate the cutoff time for scheduled effect (unit: seconds).
    ids List<Double>
    ID list of allowlisted rules.
    jobDateTime WafOwaspWhiteRuleJobDateTime
    Scheduled task configuration.
    jobType String
    Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
    strategies List<WafOwaspWhiteRuleStrategy>
    Rule-Based matching policy list.
    type Double
    Allowlist type. valid values: 0 (allowlisting by specific rule ID), 1 (allowlisting by rule type).
    name String
    Rule name.
    status Double
    Rule status. valid values: 0 (disabled), 1 (enabled). enabled by default.
    wafOwaspWhiteRuleId String
    ID of the resource.
    domain string
    Domain name.
    expireTime number
    If the JobDateTime field is not set, this field is used. 0 means permanent, other values indicate the cutoff time for scheduled effect (unit: seconds).
    ids number[]
    ID list of allowlisted rules.
    jobDateTime WafOwaspWhiteRuleJobDateTime
    Scheduled task configuration.
    jobType string
    Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
    strategies WafOwaspWhiteRuleStrategy[]
    Rule-Based matching policy list.
    type number
    Allowlist type. valid values: 0 (allowlisting by specific rule ID), 1 (allowlisting by rule type).
    name string
    Rule name.
    status number
    Rule status. valid values: 0 (disabled), 1 (enabled). enabled by default.
    wafOwaspWhiteRuleId string
    ID of the resource.
    domain str
    Domain name.
    expire_time float
    If the JobDateTime field is not set, this field is used. 0 means permanent, other values indicate the cutoff time for scheduled effect (unit: seconds).
    ids Sequence[float]
    ID list of allowlisted rules.
    job_date_time WafOwaspWhiteRuleJobDateTimeArgs
    Scheduled task configuration.
    job_type str
    Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
    strategies Sequence[WafOwaspWhiteRuleStrategyArgs]
    Rule-Based matching policy list.
    type float
    Allowlist type. valid values: 0 (allowlisting by specific rule ID), 1 (allowlisting by rule type).
    name str
    Rule name.
    status float
    Rule status. valid values: 0 (disabled), 1 (enabled). enabled by default.
    waf_owasp_white_rule_id str
    ID of the resource.
    domain String
    Domain name.
    expireTime Number
    If the JobDateTime field is not set, this field is used. 0 means permanent, other values indicate the cutoff time for scheduled effect (unit: seconds).
    ids List<Number>
    ID list of allowlisted rules.
    jobDateTime Property Map
    Scheduled task configuration.
    jobType String
    Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
    strategies List<Property Map>
    Rule-Based matching policy list.
    type Number
    Allowlist type. valid values: 0 (allowlisting by specific rule ID), 1 (allowlisting by rule type).
    name String
    Rule name.
    status Number
    Rule status. valid values: 0 (disabled), 1 (enabled). enabled by default.
    wafOwaspWhiteRuleId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the WafOwaspWhiteRule resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId double
    Rule ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId float64
    Rule ID.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId Double
    Rule ID.
    id string
    The provider-assigned unique ID for this managed resource.
    ruleId number
    Rule ID.
    id str
    The provider-assigned unique ID for this managed resource.
    rule_id float
    Rule ID.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId Number
    Rule ID.

    Look up Existing WafOwaspWhiteRule Resource

    Get an existing WafOwaspWhiteRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: WafOwaspWhiteRuleState, opts?: CustomResourceOptions): WafOwaspWhiteRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            domain: Optional[str] = None,
            expire_time: Optional[float] = None,
            ids: Optional[Sequence[float]] = None,
            job_date_time: Optional[WafOwaspWhiteRuleJobDateTimeArgs] = None,
            job_type: Optional[str] = None,
            name: Optional[str] = None,
            rule_id: Optional[float] = None,
            status: Optional[float] = None,
            strategies: Optional[Sequence[WafOwaspWhiteRuleStrategyArgs]] = None,
            type: Optional[float] = None,
            waf_owasp_white_rule_id: Optional[str] = None) -> WafOwaspWhiteRule
    func GetWafOwaspWhiteRule(ctx *Context, name string, id IDInput, state *WafOwaspWhiteRuleState, opts ...ResourceOption) (*WafOwaspWhiteRule, error)
    public static WafOwaspWhiteRule Get(string name, Input<string> id, WafOwaspWhiteRuleState? state, CustomResourceOptions? opts = null)
    public static WafOwaspWhiteRule get(String name, Output<String> id, WafOwaspWhiteRuleState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:WafOwaspWhiteRule    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Domain string
    Domain name.
    ExpireTime double
    If the JobDateTime field is not set, this field is used. 0 means permanent, other values indicate the cutoff time for scheduled effect (unit: seconds).
    Ids List<double>
    ID list of allowlisted rules.
    JobDateTime WafOwaspWhiteRuleJobDateTime
    Scheduled task configuration.
    JobType string
    Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
    Name string
    Rule name.
    RuleId double
    Rule ID.
    Status double
    Rule status. valid values: 0 (disabled), 1 (enabled). enabled by default.
    Strategies List<WafOwaspWhiteRuleStrategy>
    Rule-Based matching policy list.
    Type double
    Allowlist type. valid values: 0 (allowlisting by specific rule ID), 1 (allowlisting by rule type).
    WafOwaspWhiteRuleId string
    ID of the resource.
    Domain string
    Domain name.
    ExpireTime float64
    If the JobDateTime field is not set, this field is used. 0 means permanent, other values indicate the cutoff time for scheduled effect (unit: seconds).
    Ids []float64
    ID list of allowlisted rules.
    JobDateTime WafOwaspWhiteRuleJobDateTimeArgs
    Scheduled task configuration.
    JobType string
    Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
    Name string
    Rule name.
    RuleId float64
    Rule ID.
    Status float64
    Rule status. valid values: 0 (disabled), 1 (enabled). enabled by default.
    Strategies []WafOwaspWhiteRuleStrategyArgs
    Rule-Based matching policy list.
    Type float64
    Allowlist type. valid values: 0 (allowlisting by specific rule ID), 1 (allowlisting by rule type).
    WafOwaspWhiteRuleId string
    ID of the resource.
    domain String
    Domain name.
    expireTime Double
    If the JobDateTime field is not set, this field is used. 0 means permanent, other values indicate the cutoff time for scheduled effect (unit: seconds).
    ids List<Double>
    ID list of allowlisted rules.
    jobDateTime WafOwaspWhiteRuleJobDateTime
    Scheduled task configuration.
    jobType String
    Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
    name String
    Rule name.
    ruleId Double
    Rule ID.
    status Double
    Rule status. valid values: 0 (disabled), 1 (enabled). enabled by default.
    strategies List<WafOwaspWhiteRuleStrategy>
    Rule-Based matching policy list.
    type Double
    Allowlist type. valid values: 0 (allowlisting by specific rule ID), 1 (allowlisting by rule type).
    wafOwaspWhiteRuleId String
    ID of the resource.
    domain string
    Domain name.
    expireTime number
    If the JobDateTime field is not set, this field is used. 0 means permanent, other values indicate the cutoff time for scheduled effect (unit: seconds).
    ids number[]
    ID list of allowlisted rules.
    jobDateTime WafOwaspWhiteRuleJobDateTime
    Scheduled task configuration.
    jobType string
    Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
    name string
    Rule name.
    ruleId number
    Rule ID.
    status number
    Rule status. valid values: 0 (disabled), 1 (enabled). enabled by default.
    strategies WafOwaspWhiteRuleStrategy[]
    Rule-Based matching policy list.
    type number
    Allowlist type. valid values: 0 (allowlisting by specific rule ID), 1 (allowlisting by rule type).
    wafOwaspWhiteRuleId string
    ID of the resource.
    domain str
    Domain name.
    expire_time float
    If the JobDateTime field is not set, this field is used. 0 means permanent, other values indicate the cutoff time for scheduled effect (unit: seconds).
    ids Sequence[float]
    ID list of allowlisted rules.
    job_date_time WafOwaspWhiteRuleJobDateTimeArgs
    Scheduled task configuration.
    job_type str
    Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
    name str
    Rule name.
    rule_id float
    Rule ID.
    status float
    Rule status. valid values: 0 (disabled), 1 (enabled). enabled by default.
    strategies Sequence[WafOwaspWhiteRuleStrategyArgs]
    Rule-Based matching policy list.
    type float
    Allowlist type. valid values: 0 (allowlisting by specific rule ID), 1 (allowlisting by rule type).
    waf_owasp_white_rule_id str
    ID of the resource.
    domain String
    Domain name.
    expireTime Number
    If the JobDateTime field is not set, this field is used. 0 means permanent, other values indicate the cutoff time for scheduled effect (unit: seconds).
    ids List<Number>
    ID list of allowlisted rules.
    jobDateTime Property Map
    Scheduled task configuration.
    jobType String
    Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
    name String
    Rule name.
    ruleId Number
    Rule ID.
    status Number
    Rule status. valid values: 0 (disabled), 1 (enabled). enabled by default.
    strategies List<Property Map>
    Rule-Based matching policy list.
    type Number
    Allowlist type. valid values: 0 (allowlisting by specific rule ID), 1 (allowlisting by rule type).
    wafOwaspWhiteRuleId String
    ID of the resource.

    Supporting Types

    WafOwaspWhiteRuleJobDateTime, WafOwaspWhiteRuleJobDateTimeArgs

    Crons List<WafOwaspWhiteRuleJobDateTimeCron>
    Time parameter for periodic execution.
    TimeTZone string
    Specifies the time zone.
    Timeds List<WafOwaspWhiteRuleJobDateTimeTimed>
    Time parameter for scheduled execution.
    Crons []WafOwaspWhiteRuleJobDateTimeCron
    Time parameter for periodic execution.
    TimeTZone string
    Specifies the time zone.
    Timeds []WafOwaspWhiteRuleJobDateTimeTimed
    Time parameter for scheduled execution.
    crons List<WafOwaspWhiteRuleJobDateTimeCron>
    Time parameter for periodic execution.
    timeTZone String
    Specifies the time zone.
    timeds List<WafOwaspWhiteRuleJobDateTimeTimed>
    Time parameter for scheduled execution.
    crons WafOwaspWhiteRuleJobDateTimeCron[]
    Time parameter for periodic execution.
    timeTZone string
    Specifies the time zone.
    timeds WafOwaspWhiteRuleJobDateTimeTimed[]
    Time parameter for scheduled execution.
    crons Sequence[WafOwaspWhiteRuleJobDateTimeCron]
    Time parameter for periodic execution.
    time_t_zone str
    Specifies the time zone.
    timeds Sequence[WafOwaspWhiteRuleJobDateTimeTimed]
    Time parameter for scheduled execution.
    crons List<Property Map>
    Time parameter for periodic execution.
    timeTZone String
    Specifies the time zone.
    timeds List<Property Map>
    Time parameter for scheduled execution.

    WafOwaspWhiteRuleJobDateTimeCron, WafOwaspWhiteRuleJobDateTimeCronArgs

    Days List<double>
    Execution day of each month.
    EndTime string
    End time.
    StartTime string
    Start time.
    WDays List<double>
    Execution day of each week.
    Days []float64
    Execution day of each month.
    EndTime string
    End time.
    StartTime string
    Start time.
    WDays []float64
    Execution day of each week.
    days List<Double>
    Execution day of each month.
    endTime String
    End time.
    startTime String
    Start time.
    wDays List<Double>
    Execution day of each week.
    days number[]
    Execution day of each month.
    endTime string
    End time.
    startTime string
    Start time.
    wDays number[]
    Execution day of each week.
    days Sequence[float]
    Execution day of each month.
    end_time str
    End time.
    start_time str
    Start time.
    w_days Sequence[float]
    Execution day of each week.
    days List<Number>
    Execution day of each month.
    endTime String
    End time.
    startTime String
    Start time.
    wDays List<Number>
    Execution day of each week.

    WafOwaspWhiteRuleJobDateTimeTimed, WafOwaspWhiteRuleJobDateTimeTimedArgs

    EndDateTime double
    End timestamp, in seconds.
    StartDateTime double
    Start timestamp, in seconds.
    EndDateTime float64
    End timestamp, in seconds.
    StartDateTime float64
    Start timestamp, in seconds.
    endDateTime Double
    End timestamp, in seconds.
    startDateTime Double
    Start timestamp, in seconds.
    endDateTime number
    End timestamp, in seconds.
    startDateTime number
    Start timestamp, in seconds.
    end_date_time float
    End timestamp, in seconds.
    start_date_time float
    Start timestamp, in seconds.
    endDateTime Number
    End timestamp, in seconds.
    startDateTime Number
    Start timestamp, in seconds.

    WafOwaspWhiteRuleStrategy, WafOwaspWhiteRuleStrategyArgs

    Arg string

    Specifies the matching parameter.

    Configuration parameters are divided into two data types: parameter not supported and support parameters. When the match field is one of the following four, the matching parameter can be entered, otherwise not supported. GET (get parameter value). POST (post parameter value). ARGS_COOKIE (COOKIE parameter value). ARGS_HEADER (HEADER parameter value).

    CompareFunc string

    Specifies the logic symbol.

    Logical symbols are divided into the following types:. Empty (content is empty). null (not found). Eq (equal to). neq (not equal to). contains (contain). ncontains (do not contain). strprefix (prefix matching). strsuffix (suffix matching). Len_eq (length equals to). Len_gt (length greater than). Len_lt (length less than). ipmatch (belong). ipnmatch (not_in). numgt (value greater than). NumValue smaller than]. Value equal to. numneq (value not equal to). numle (less than or equal to). numge (value is greater than or equal to). geo_in (IP geographic belong). geo_not_in (IP geographic not_in). Specifies different logical operators for matching fields. for details, see the matching field table above.

    Content string

    Specifies the match content.

    Currently, when the match field is COOKIE (COOKIE), match content is not required. all others are needed.

    Field string

    Specifies the matching field.

    Different matching fields result in different matching parameters, logical operators, and matching contents. the details are as follows:.

    CaseNotSensitive double
    Case-Sensitive. Case-Insensitive.
    Arg string

    Specifies the matching parameter.

    Configuration parameters are divided into two data types: parameter not supported and support parameters. When the match field is one of the following four, the matching parameter can be entered, otherwise not supported. GET (get parameter value). POST (post parameter value). ARGS_COOKIE (COOKIE parameter value). ARGS_HEADER (HEADER parameter value).

    CompareFunc string

    Specifies the logic symbol.

    Logical symbols are divided into the following types:. Empty (content is empty). null (not found). Eq (equal to). neq (not equal to). contains (contain). ncontains (do not contain). strprefix (prefix matching). strsuffix (suffix matching). Len_eq (length equals to). Len_gt (length greater than). Len_lt (length less than). ipmatch (belong). ipnmatch (not_in). numgt (value greater than). NumValue smaller than]. Value equal to. numneq (value not equal to). numle (less than or equal to). numge (value is greater than or equal to). geo_in (IP geographic belong). geo_not_in (IP geographic not_in). Specifies different logical operators for matching fields. for details, see the matching field table above.

    Content string

    Specifies the match content.

    Currently, when the match field is COOKIE (COOKIE), match content is not required. all others are needed.

    Field string

    Specifies the matching field.

    Different matching fields result in different matching parameters, logical operators, and matching contents. the details are as follows:.

    CaseNotSensitive float64
    Case-Sensitive. Case-Insensitive.
    arg String

    Specifies the matching parameter.

    Configuration parameters are divided into two data types: parameter not supported and support parameters. When the match field is one of the following four, the matching parameter can be entered, otherwise not supported. GET (get parameter value). POST (post parameter value). ARGS_COOKIE (COOKIE parameter value). ARGS_HEADER (HEADER parameter value).

    compareFunc String

    Specifies the logic symbol.

    Logical symbols are divided into the following types:. Empty (content is empty). null (not found). Eq (equal to). neq (not equal to). contains (contain). ncontains (do not contain). strprefix (prefix matching). strsuffix (suffix matching). Len_eq (length equals to). Len_gt (length greater than). Len_lt (length less than). ipmatch (belong). ipnmatch (not_in). numgt (value greater than). NumValue smaller than]. Value equal to. numneq (value not equal to). numle (less than or equal to). numge (value is greater than or equal to). geo_in (IP geographic belong). geo_not_in (IP geographic not_in). Specifies different logical operators for matching fields. for details, see the matching field table above.

    content String

    Specifies the match content.

    Currently, when the match field is COOKIE (COOKIE), match content is not required. all others are needed.

    field String

    Specifies the matching field.

    Different matching fields result in different matching parameters, logical operators, and matching contents. the details are as follows:.

    caseNotSensitive Double
    Case-Sensitive. Case-Insensitive.
    arg string

    Specifies the matching parameter.

    Configuration parameters are divided into two data types: parameter not supported and support parameters. When the match field is one of the following four, the matching parameter can be entered, otherwise not supported. GET (get parameter value). POST (post parameter value). ARGS_COOKIE (COOKIE parameter value). ARGS_HEADER (HEADER parameter value).

    compareFunc string

    Specifies the logic symbol.

    Logical symbols are divided into the following types:. Empty (content is empty). null (not found). Eq (equal to). neq (not equal to). contains (contain). ncontains (do not contain). strprefix (prefix matching). strsuffix (suffix matching). Len_eq (length equals to). Len_gt (length greater than). Len_lt (length less than). ipmatch (belong). ipnmatch (not_in). numgt (value greater than). NumValue smaller than]. Value equal to. numneq (value not equal to). numle (less than or equal to). numge (value is greater than or equal to). geo_in (IP geographic belong). geo_not_in (IP geographic not_in). Specifies different logical operators for matching fields. for details, see the matching field table above.

    content string

    Specifies the match content.

    Currently, when the match field is COOKIE (COOKIE), match content is not required. all others are needed.

    field string

    Specifies the matching field.

    Different matching fields result in different matching parameters, logical operators, and matching contents. the details are as follows:.

    caseNotSensitive number
    Case-Sensitive. Case-Insensitive.
    arg str

    Specifies the matching parameter.

    Configuration parameters are divided into two data types: parameter not supported and support parameters. When the match field is one of the following four, the matching parameter can be entered, otherwise not supported. GET (get parameter value). POST (post parameter value). ARGS_COOKIE (COOKIE parameter value). ARGS_HEADER (HEADER parameter value).

    compare_func str

    Specifies the logic symbol.

    Logical symbols are divided into the following types:. Empty (content is empty). null (not found). Eq (equal to). neq (not equal to). contains (contain). ncontains (do not contain). strprefix (prefix matching). strsuffix (suffix matching). Len_eq (length equals to). Len_gt (length greater than). Len_lt (length less than). ipmatch (belong). ipnmatch (not_in). numgt (value greater than). NumValue smaller than]. Value equal to. numneq (value not equal to). numle (less than or equal to). numge (value is greater than or equal to). geo_in (IP geographic belong). geo_not_in (IP geographic not_in). Specifies different logical operators for matching fields. for details, see the matching field table above.

    content str

    Specifies the match content.

    Currently, when the match field is COOKIE (COOKIE), match content is not required. all others are needed.

    field str

    Specifies the matching field.

    Different matching fields result in different matching parameters, logical operators, and matching contents. the details are as follows:.

    case_not_sensitive float
    Case-Sensitive. Case-Insensitive.
    arg String

    Specifies the matching parameter.

    Configuration parameters are divided into two data types: parameter not supported and support parameters. When the match field is one of the following four, the matching parameter can be entered, otherwise not supported. GET (get parameter value). POST (post parameter value). ARGS_COOKIE (COOKIE parameter value). ARGS_HEADER (HEADER parameter value).

    compareFunc String

    Specifies the logic symbol.

    Logical symbols are divided into the following types:. Empty (content is empty). null (not found). Eq (equal to). neq (not equal to). contains (contain). ncontains (do not contain). strprefix (prefix matching). strsuffix (suffix matching). Len_eq (length equals to). Len_gt (length greater than). Len_lt (length less than). ipmatch (belong). ipnmatch (not_in). numgt (value greater than). NumValue smaller than]. Value equal to. numneq (value not equal to). numle (less than or equal to). numge (value is greater than or equal to). geo_in (IP geographic belong). geo_not_in (IP geographic not_in). Specifies different logical operators for matching fields. for details, see the matching field table above.

    content String

    Specifies the match content.

    Currently, when the match field is COOKIE (COOKIE), match content is not required. all others are needed.

    field String

    Specifies the matching field.

    Different matching fields result in different matching parameters, logical operators, and matching contents. the details are as follows:.

    caseNotSensitive Number
    Case-Sensitive. Case-Insensitive.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.82.45 published on Tuesday, Dec 16, 2025 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate