1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. WafDedicatedCcRuleV1
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.WafDedicatedCcRuleV1

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for WAF dedicated CC rule you can get at documentation portal.

    Manages a WAF Dedicated CC Attack Protection Rule resource within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const policy1 = new opentelekomcloud.WafDedicatedPolicyV1("policy1", {});
    const rule1 = new opentelekomcloud.WafDedicatedCcRuleV1("rule1", {
        policyId: policy1.wafDedicatedPolicyV1Id,
        mode: 0,
        url: "/abc1",
        limitNum: 10,
        limitPeriod: 60,
        lockTime: 10,
        tagType: "cookie",
        tagIndex: "sessionid",
        actions: [{
            category: "block",
            contentType: "application/json",
            content: "{\"error\":\"forbidden\"}",
        }],
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    policy1 = opentelekomcloud.WafDedicatedPolicyV1("policy1")
    rule1 = opentelekomcloud.WafDedicatedCcRuleV1("rule1",
        policy_id=policy1.waf_dedicated_policy_v1_id,
        mode=0,
        url="/abc1",
        limit_num=10,
        limit_period=60,
        lock_time=10,
        tag_type="cookie",
        tag_index="sessionid",
        actions=[{
            "category": "block",
            "content_type": "application/json",
            "content": "{\"error\":\"forbidden\"}",
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		policy1, err := opentelekomcloud.NewWafDedicatedPolicyV1(ctx, "policy1", nil)
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewWafDedicatedCcRuleV1(ctx, "rule1", &opentelekomcloud.WafDedicatedCcRuleV1Args{
    			PolicyId:    policy1.WafDedicatedPolicyV1Id,
    			Mode:        pulumi.Float64(0),
    			Url:         pulumi.String("/abc1"),
    			LimitNum:    pulumi.Float64(10),
    			LimitPeriod: pulumi.Float64(60),
    			LockTime:    pulumi.Float64(10),
    			TagType:     pulumi.String("cookie"),
    			TagIndex:    pulumi.String("sessionid"),
    			Actions: opentelekomcloud.WafDedicatedCcRuleV1ActionArray{
    				&opentelekomcloud.WafDedicatedCcRuleV1ActionArgs{
    					Category:    pulumi.String("block"),
    					ContentType: pulumi.String("application/json"),
    					Content:     pulumi.String("{\"error\":\"forbidden\"}"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var policy1 = new Opentelekomcloud.WafDedicatedPolicyV1("policy1");
    
        var rule1 = new Opentelekomcloud.WafDedicatedCcRuleV1("rule1", new()
        {
            PolicyId = policy1.WafDedicatedPolicyV1Id,
            Mode = 0,
            Url = "/abc1",
            LimitNum = 10,
            LimitPeriod = 60,
            LockTime = 10,
            TagType = "cookie",
            TagIndex = "sessionid",
            Actions = new[]
            {
                new Opentelekomcloud.Inputs.WafDedicatedCcRuleV1ActionArgs
                {
                    Category = "block",
                    ContentType = "application/json",
                    Content = "{\"error\":\"forbidden\"}",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.WafDedicatedPolicyV1;
    import com.pulumi.opentelekomcloud.WafDedicatedCcRuleV1;
    import com.pulumi.opentelekomcloud.WafDedicatedCcRuleV1Args;
    import com.pulumi.opentelekomcloud.inputs.WafDedicatedCcRuleV1ActionArgs;
    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 policy1 = new WafDedicatedPolicyV1("policy1");
    
            var rule1 = new WafDedicatedCcRuleV1("rule1", WafDedicatedCcRuleV1Args.builder()
                .policyId(policy1.wafDedicatedPolicyV1Id())
                .mode(0)
                .url("/abc1")
                .limitNum(10)
                .limitPeriod(60)
                .lockTime(10)
                .tagType("cookie")
                .tagIndex("sessionid")
                .actions(WafDedicatedCcRuleV1ActionArgs.builder()
                    .category("block")
                    .contentType("application/json")
                    .content("{\"error\":\"forbidden\"}")
                    .build())
                .build());
    
        }
    }
    
    resources:
      policy1:
        type: opentelekomcloud:WafDedicatedPolicyV1
      rule1:
        type: opentelekomcloud:WafDedicatedCcRuleV1
        properties:
          policyId: ${policy1.wafDedicatedPolicyV1Id}
          mode: 0
          url: /abc1
          limitNum: 10
          limitPeriod: 60
          lockTime: 10
          tagType: cookie
          tagIndex: sessionid
          actions:
            - category: block
              contentType: application/json
              content: '{"error":"forbidden"}'
    

    Create WafDedicatedCcRuleV1 Resource

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

    Constructor syntax

    new WafDedicatedCcRuleV1(name: string, args: WafDedicatedCcRuleV1Args, opts?: CustomResourceOptions);
    @overload
    def WafDedicatedCcRuleV1(resource_name: str,
                             args: WafDedicatedCcRuleV1Args,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def WafDedicatedCcRuleV1(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             policy_id: Optional[str] = None,
                             url: Optional[str] = None,
                             tag_type: Optional[str] = None,
                             limit_num: Optional[float] = None,
                             limit_period: Optional[float] = None,
                             actions: Optional[Sequence[WafDedicatedCcRuleV1ActionArgs]] = None,
                             mode: Optional[float] = None,
                             tag_category: Optional[str] = None,
                             lock_time: Optional[float] = None,
                             tag_contents: Optional[Sequence[str]] = None,
                             tag_index: Optional[str] = None,
                             description: Optional[str] = None,
                             timeouts: Optional[WafDedicatedCcRuleV1TimeoutsArgs] = None,
                             unlock_num: Optional[float] = None,
                             conditions: Optional[Sequence[WafDedicatedCcRuleV1ConditionArgs]] = None,
                             waf_dedicated_cc_rule_v1_id: Optional[str] = None)
    func NewWafDedicatedCcRuleV1(ctx *Context, name string, args WafDedicatedCcRuleV1Args, opts ...ResourceOption) (*WafDedicatedCcRuleV1, error)
    public WafDedicatedCcRuleV1(string name, WafDedicatedCcRuleV1Args args, CustomResourceOptions? opts = null)
    public WafDedicatedCcRuleV1(String name, WafDedicatedCcRuleV1Args args)
    public WafDedicatedCcRuleV1(String name, WafDedicatedCcRuleV1Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:WafDedicatedCcRuleV1
    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 WafDedicatedCcRuleV1Args
    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 WafDedicatedCcRuleV1Args
    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 WafDedicatedCcRuleV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WafDedicatedCcRuleV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WafDedicatedCcRuleV1Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var wafDedicatedCcRuleV1Resource = new Opentelekomcloud.WafDedicatedCcRuleV1("wafDedicatedCcRuleV1Resource", new()
    {
        PolicyId = "string",
        Url = "string",
        TagType = "string",
        LimitNum = 0,
        LimitPeriod = 0,
        Actions = new[]
        {
            new Opentelekomcloud.Inputs.WafDedicatedCcRuleV1ActionArgs
            {
                Category = "string",
                Content = "string",
                ContentType = "string",
            },
        },
        Mode = 0,
        TagCategory = "string",
        LockTime = 0,
        TagContents = new[]
        {
            "string",
        },
        TagIndex = "string",
        Description = "string",
        Timeouts = new Opentelekomcloud.Inputs.WafDedicatedCcRuleV1TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        UnlockNum = 0,
        Conditions = new[]
        {
            new Opentelekomcloud.Inputs.WafDedicatedCcRuleV1ConditionArgs
            {
                Category = "string",
                LogicOperation = "string",
                Contents = new[]
                {
                    "string",
                },
                Index = "string",
                ValueListId = "string",
            },
        },
        WafDedicatedCcRuleV1Id = "string",
    });
    
    example, err := opentelekomcloud.NewWafDedicatedCcRuleV1(ctx, "wafDedicatedCcRuleV1Resource", &opentelekomcloud.WafDedicatedCcRuleV1Args{
    	PolicyId:    pulumi.String("string"),
    	Url:         pulumi.String("string"),
    	TagType:     pulumi.String("string"),
    	LimitNum:    pulumi.Float64(0),
    	LimitPeriod: pulumi.Float64(0),
    	Actions: opentelekomcloud.WafDedicatedCcRuleV1ActionArray{
    		&opentelekomcloud.WafDedicatedCcRuleV1ActionArgs{
    			Category:    pulumi.String("string"),
    			Content:     pulumi.String("string"),
    			ContentType: pulumi.String("string"),
    		},
    	},
    	Mode:        pulumi.Float64(0),
    	TagCategory: pulumi.String("string"),
    	LockTime:    pulumi.Float64(0),
    	TagContents: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TagIndex:    pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Timeouts: &opentelekomcloud.WafDedicatedCcRuleV1TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	UnlockNum: pulumi.Float64(0),
    	Conditions: opentelekomcloud.WafDedicatedCcRuleV1ConditionArray{
    		&opentelekomcloud.WafDedicatedCcRuleV1ConditionArgs{
    			Category:       pulumi.String("string"),
    			LogicOperation: pulumi.String("string"),
    			Contents: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Index:       pulumi.String("string"),
    			ValueListId: pulumi.String("string"),
    		},
    	},
    	WafDedicatedCcRuleV1Id: pulumi.String("string"),
    })
    
    var wafDedicatedCcRuleV1Resource = new WafDedicatedCcRuleV1("wafDedicatedCcRuleV1Resource", WafDedicatedCcRuleV1Args.builder()
        .policyId("string")
        .url("string")
        .tagType("string")
        .limitNum(0)
        .limitPeriod(0)
        .actions(WafDedicatedCcRuleV1ActionArgs.builder()
            .category("string")
            .content("string")
            .contentType("string")
            .build())
        .mode(0)
        .tagCategory("string")
        .lockTime(0)
        .tagContents("string")
        .tagIndex("string")
        .description("string")
        .timeouts(WafDedicatedCcRuleV1TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .unlockNum(0)
        .conditions(WafDedicatedCcRuleV1ConditionArgs.builder()
            .category("string")
            .logicOperation("string")
            .contents("string")
            .index("string")
            .valueListId("string")
            .build())
        .wafDedicatedCcRuleV1Id("string")
        .build());
    
    waf_dedicated_cc_rule_v1_resource = opentelekomcloud.WafDedicatedCcRuleV1("wafDedicatedCcRuleV1Resource",
        policy_id="string",
        url="string",
        tag_type="string",
        limit_num=0,
        limit_period=0,
        actions=[{
            "category": "string",
            "content": "string",
            "content_type": "string",
        }],
        mode=0,
        tag_category="string",
        lock_time=0,
        tag_contents=["string"],
        tag_index="string",
        description="string",
        timeouts={
            "create": "string",
            "delete": "string",
        },
        unlock_num=0,
        conditions=[{
            "category": "string",
            "logic_operation": "string",
            "contents": ["string"],
            "index": "string",
            "value_list_id": "string",
        }],
        waf_dedicated_cc_rule_v1_id="string")
    
    const wafDedicatedCcRuleV1Resource = new opentelekomcloud.WafDedicatedCcRuleV1("wafDedicatedCcRuleV1Resource", {
        policyId: "string",
        url: "string",
        tagType: "string",
        limitNum: 0,
        limitPeriod: 0,
        actions: [{
            category: "string",
            content: "string",
            contentType: "string",
        }],
        mode: 0,
        tagCategory: "string",
        lockTime: 0,
        tagContents: ["string"],
        tagIndex: "string",
        description: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
        unlockNum: 0,
        conditions: [{
            category: "string",
            logicOperation: "string",
            contents: ["string"],
            index: "string",
            valueListId: "string",
        }],
        wafDedicatedCcRuleV1Id: "string",
    });
    
    type: opentelekomcloud:WafDedicatedCcRuleV1
    properties:
        actions:
            - category: string
              content: string
              contentType: string
        conditions:
            - category: string
              contents:
                - string
              index: string
              logicOperation: string
              valueListId: string
        description: string
        limitNum: 0
        limitPeriod: 0
        lockTime: 0
        mode: 0
        policyId: string
        tagCategory: string
        tagContents:
            - string
        tagIndex: string
        tagType: string
        timeouts:
            create: string
            delete: string
        unlockNum: 0
        url: string
        wafDedicatedCcRuleV1Id: string
    

    WafDedicatedCcRuleV1 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 WafDedicatedCcRuleV1 resource accepts the following input properties:

    Actions List<WafDedicatedCcRuleV1Action>
    Protection action to take if the number of requests reaches the upper limit. Changing this creates a new rule. The conditions block supports:
    LimitNum double
    Rate limit frequency based on the number of requests. The value ranges from 1 to 2,147,483,647. Changing this creates a new rule.
    LimitPeriod double
    Rate limit period, in seconds. The value ranges from 1 to 3,600. Changing this creates a new rule.
    Mode double
    Protection mode of the CC attack protection rule. Changing this creates a new rule. Valid Options are:
    PolicyId string
    The WAF policy ID. Changing this creates a new rule.
    TagType string
    Rate limit mode. Changing this creates a new rule. Valid Options are:
    Url string
    Path to be protected in the CC attack protection rule. Changing this creates a new rule.
    Conditions List<WafDedicatedCcRuleV1Condition>
    Rate limit conditions of the CC protection rule. Changing this creates a new rule. The conditions block supports:
    Description string
    Rule description. Changing this creates a new rule.
    LockTime double
    Block duration, in seconds. The value ranges from 0 to 65,535. Specifies the period within which access is blocked. An error page is displayed in this period. Changing this creates a new rule.
    TagCategory string
    Specifies the category. The value is referer. Changing this creates a new rule.
    TagContents List<string>
    Specifies the category content. Changing this creates a new rule.
    TagIndex string
    User identifier. Changing this creates a new rule. If tag_type is set to cookie, this parameter indicates cookie name. If tag_type is set to header, this parameter indicates header name.
    Timeouts WafDedicatedCcRuleV1Timeouts
    UnlockNum double
    Allowable frequency based on the number of requests. The value ranges from 0 to 2,147,483,647. This parameter is required only when the protection action type is dynamic_block. Changing this creates a new rule.
    WafDedicatedCcRuleV1Id string
    ID of the rule.
    Actions []WafDedicatedCcRuleV1ActionArgs
    Protection action to take if the number of requests reaches the upper limit. Changing this creates a new rule. The conditions block supports:
    LimitNum float64
    Rate limit frequency based on the number of requests. The value ranges from 1 to 2,147,483,647. Changing this creates a new rule.
    LimitPeriod float64
    Rate limit period, in seconds. The value ranges from 1 to 3,600. Changing this creates a new rule.
    Mode float64
    Protection mode of the CC attack protection rule. Changing this creates a new rule. Valid Options are:
    PolicyId string
    The WAF policy ID. Changing this creates a new rule.
    TagType string
    Rate limit mode. Changing this creates a new rule. Valid Options are:
    Url string
    Path to be protected in the CC attack protection rule. Changing this creates a new rule.
    Conditions []WafDedicatedCcRuleV1ConditionArgs
    Rate limit conditions of the CC protection rule. Changing this creates a new rule. The conditions block supports:
    Description string
    Rule description. Changing this creates a new rule.
    LockTime float64
    Block duration, in seconds. The value ranges from 0 to 65,535. Specifies the period within which access is blocked. An error page is displayed in this period. Changing this creates a new rule.
    TagCategory string
    Specifies the category. The value is referer. Changing this creates a new rule.
    TagContents []string
    Specifies the category content. Changing this creates a new rule.
    TagIndex string
    User identifier. Changing this creates a new rule. If tag_type is set to cookie, this parameter indicates cookie name. If tag_type is set to header, this parameter indicates header name.
    Timeouts WafDedicatedCcRuleV1TimeoutsArgs
    UnlockNum float64
    Allowable frequency based on the number of requests. The value ranges from 0 to 2,147,483,647. This parameter is required only when the protection action type is dynamic_block. Changing this creates a new rule.
    WafDedicatedCcRuleV1Id string
    ID of the rule.
    actions List<WafDedicatedCcRuleV1Action>
    Protection action to take if the number of requests reaches the upper limit. Changing this creates a new rule. The conditions block supports:
    limitNum Double
    Rate limit frequency based on the number of requests. The value ranges from 1 to 2,147,483,647. Changing this creates a new rule.
    limitPeriod Double
    Rate limit period, in seconds. The value ranges from 1 to 3,600. Changing this creates a new rule.
    mode Double
    Protection mode of the CC attack protection rule. Changing this creates a new rule. Valid Options are:
    policyId String
    The WAF policy ID. Changing this creates a new rule.
    tagType String
    Rate limit mode. Changing this creates a new rule. Valid Options are:
    url String
    Path to be protected in the CC attack protection rule. Changing this creates a new rule.
    conditions List<WafDedicatedCcRuleV1Condition>
    Rate limit conditions of the CC protection rule. Changing this creates a new rule. The conditions block supports:
    description String
    Rule description. Changing this creates a new rule.
    lockTime Double
    Block duration, in seconds. The value ranges from 0 to 65,535. Specifies the period within which access is blocked. An error page is displayed in this period. Changing this creates a new rule.
    tagCategory String
    Specifies the category. The value is referer. Changing this creates a new rule.
    tagContents List<String>
    Specifies the category content. Changing this creates a new rule.
    tagIndex String
    User identifier. Changing this creates a new rule. If tag_type is set to cookie, this parameter indicates cookie name. If tag_type is set to header, this parameter indicates header name.
    timeouts WafDedicatedCcRuleV1Timeouts
    unlockNum Double
    Allowable frequency based on the number of requests. The value ranges from 0 to 2,147,483,647. This parameter is required only when the protection action type is dynamic_block. Changing this creates a new rule.
    wafDedicatedCcRuleV1Id String
    ID of the rule.
    actions WafDedicatedCcRuleV1Action[]
    Protection action to take if the number of requests reaches the upper limit. Changing this creates a new rule. The conditions block supports:
    limitNum number
    Rate limit frequency based on the number of requests. The value ranges from 1 to 2,147,483,647. Changing this creates a new rule.
    limitPeriod number
    Rate limit period, in seconds. The value ranges from 1 to 3,600. Changing this creates a new rule.
    mode number
    Protection mode of the CC attack protection rule. Changing this creates a new rule. Valid Options are:
    policyId string
    The WAF policy ID. Changing this creates a new rule.
    tagType string
    Rate limit mode. Changing this creates a new rule. Valid Options are:
    url string
    Path to be protected in the CC attack protection rule. Changing this creates a new rule.
    conditions WafDedicatedCcRuleV1Condition[]
    Rate limit conditions of the CC protection rule. Changing this creates a new rule. The conditions block supports:
    description string
    Rule description. Changing this creates a new rule.
    lockTime number
    Block duration, in seconds. The value ranges from 0 to 65,535. Specifies the period within which access is blocked. An error page is displayed in this period. Changing this creates a new rule.
    tagCategory string
    Specifies the category. The value is referer. Changing this creates a new rule.
    tagContents string[]
    Specifies the category content. Changing this creates a new rule.
    tagIndex string
    User identifier. Changing this creates a new rule. If tag_type is set to cookie, this parameter indicates cookie name. If tag_type is set to header, this parameter indicates header name.
    timeouts WafDedicatedCcRuleV1Timeouts
    unlockNum number
    Allowable frequency based on the number of requests. The value ranges from 0 to 2,147,483,647. This parameter is required only when the protection action type is dynamic_block. Changing this creates a new rule.
    wafDedicatedCcRuleV1Id string
    ID of the rule.
    actions Sequence[WafDedicatedCcRuleV1ActionArgs]
    Protection action to take if the number of requests reaches the upper limit. Changing this creates a new rule. The conditions block supports:
    limit_num float
    Rate limit frequency based on the number of requests. The value ranges from 1 to 2,147,483,647. Changing this creates a new rule.
    limit_period float
    Rate limit period, in seconds. The value ranges from 1 to 3,600. Changing this creates a new rule.
    mode float
    Protection mode of the CC attack protection rule. Changing this creates a new rule. Valid Options are:
    policy_id str
    The WAF policy ID. Changing this creates a new rule.
    tag_type str
    Rate limit mode. Changing this creates a new rule. Valid Options are:
    url str
    Path to be protected in the CC attack protection rule. Changing this creates a new rule.
    conditions Sequence[WafDedicatedCcRuleV1ConditionArgs]
    Rate limit conditions of the CC protection rule. Changing this creates a new rule. The conditions block supports:
    description str
    Rule description. Changing this creates a new rule.
    lock_time float
    Block duration, in seconds. The value ranges from 0 to 65,535. Specifies the period within which access is blocked. An error page is displayed in this period. Changing this creates a new rule.
    tag_category str
    Specifies the category. The value is referer. Changing this creates a new rule.
    tag_contents Sequence[str]
    Specifies the category content. Changing this creates a new rule.
    tag_index str
    User identifier. Changing this creates a new rule. If tag_type is set to cookie, this parameter indicates cookie name. If tag_type is set to header, this parameter indicates header name.
    timeouts WafDedicatedCcRuleV1TimeoutsArgs
    unlock_num float
    Allowable frequency based on the number of requests. The value ranges from 0 to 2,147,483,647. This parameter is required only when the protection action type is dynamic_block. Changing this creates a new rule.
    waf_dedicated_cc_rule_v1_id str
    ID of the rule.
    actions List<Property Map>
    Protection action to take if the number of requests reaches the upper limit. Changing this creates a new rule. The conditions block supports:
    limitNum Number
    Rate limit frequency based on the number of requests. The value ranges from 1 to 2,147,483,647. Changing this creates a new rule.
    limitPeriod Number
    Rate limit period, in seconds. The value ranges from 1 to 3,600. Changing this creates a new rule.
    mode Number
    Protection mode of the CC attack protection rule. Changing this creates a new rule. Valid Options are:
    policyId String
    The WAF policy ID. Changing this creates a new rule.
    tagType String
    Rate limit mode. Changing this creates a new rule. Valid Options are:
    url String
    Path to be protected in the CC attack protection rule. Changing this creates a new rule.
    conditions List<Property Map>
    Rate limit conditions of the CC protection rule. Changing this creates a new rule. The conditions block supports:
    description String
    Rule description. Changing this creates a new rule.
    lockTime Number
    Block duration, in seconds. The value ranges from 0 to 65,535. Specifies the period within which access is blocked. An error page is displayed in this period. Changing this creates a new rule.
    tagCategory String
    Specifies the category. The value is referer. Changing this creates a new rule.
    tagContents List<String>
    Specifies the category content. Changing this creates a new rule.
    tagIndex String
    User identifier. Changing this creates a new rule. If tag_type is set to cookie, this parameter indicates cookie name. If tag_type is set to header, this parameter indicates header name.
    timeouts Property Map
    unlockNum Number
    Allowable frequency based on the number of requests. The value ranges from 0 to 2,147,483,647. This parameter is required only when the protection action type is dynamic_block. Changing this creates a new rule.
    wafDedicatedCcRuleV1Id String
    ID of the rule.

    Outputs

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

    CreatedAt double
    Timestamp the rule is created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status double
    Rule status.
    CreatedAt float64
    Timestamp the rule is created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status float64
    Rule status.
    createdAt Double
    Timestamp the rule is created.
    id String
    The provider-assigned unique ID for this managed resource.
    status Double
    Rule status.
    createdAt number
    Timestamp the rule is created.
    id string
    The provider-assigned unique ID for this managed resource.
    status number
    Rule status.
    created_at float
    Timestamp the rule is created.
    id str
    The provider-assigned unique ID for this managed resource.
    status float
    Rule status.
    createdAt Number
    Timestamp the rule is created.
    id String
    The provider-assigned unique ID for this managed resource.
    status Number
    Rule status.

    Look up Existing WafDedicatedCcRuleV1 Resource

    Get an existing WafDedicatedCcRuleV1 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?: WafDedicatedCcRuleV1State, opts?: CustomResourceOptions): WafDedicatedCcRuleV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            actions: Optional[Sequence[WafDedicatedCcRuleV1ActionArgs]] = None,
            conditions: Optional[Sequence[WafDedicatedCcRuleV1ConditionArgs]] = None,
            created_at: Optional[float] = None,
            description: Optional[str] = None,
            limit_num: Optional[float] = None,
            limit_period: Optional[float] = None,
            lock_time: Optional[float] = None,
            mode: Optional[float] = None,
            policy_id: Optional[str] = None,
            status: Optional[float] = None,
            tag_category: Optional[str] = None,
            tag_contents: Optional[Sequence[str]] = None,
            tag_index: Optional[str] = None,
            tag_type: Optional[str] = None,
            timeouts: Optional[WafDedicatedCcRuleV1TimeoutsArgs] = None,
            unlock_num: Optional[float] = None,
            url: Optional[str] = None,
            waf_dedicated_cc_rule_v1_id: Optional[str] = None) -> WafDedicatedCcRuleV1
    func GetWafDedicatedCcRuleV1(ctx *Context, name string, id IDInput, state *WafDedicatedCcRuleV1State, opts ...ResourceOption) (*WafDedicatedCcRuleV1, error)
    public static WafDedicatedCcRuleV1 Get(string name, Input<string> id, WafDedicatedCcRuleV1State? state, CustomResourceOptions? opts = null)
    public static WafDedicatedCcRuleV1 get(String name, Output<String> id, WafDedicatedCcRuleV1State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:WafDedicatedCcRuleV1    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:
    Actions List<WafDedicatedCcRuleV1Action>
    Protection action to take if the number of requests reaches the upper limit. Changing this creates a new rule. The conditions block supports:
    Conditions List<WafDedicatedCcRuleV1Condition>
    Rate limit conditions of the CC protection rule. Changing this creates a new rule. The conditions block supports:
    CreatedAt double
    Timestamp the rule is created.
    Description string
    Rule description. Changing this creates a new rule.
    LimitNum double
    Rate limit frequency based on the number of requests. The value ranges from 1 to 2,147,483,647. Changing this creates a new rule.
    LimitPeriod double
    Rate limit period, in seconds. The value ranges from 1 to 3,600. Changing this creates a new rule.
    LockTime double
    Block duration, in seconds. The value ranges from 0 to 65,535. Specifies the period within which access is blocked. An error page is displayed in this period. Changing this creates a new rule.
    Mode double
    Protection mode of the CC attack protection rule. Changing this creates a new rule. Valid Options are:
    PolicyId string
    The WAF policy ID. Changing this creates a new rule.
    Status double
    Rule status.
    TagCategory string
    Specifies the category. The value is referer. Changing this creates a new rule.
    TagContents List<string>
    Specifies the category content. Changing this creates a new rule.
    TagIndex string
    User identifier. Changing this creates a new rule. If tag_type is set to cookie, this parameter indicates cookie name. If tag_type is set to header, this parameter indicates header name.
    TagType string
    Rate limit mode. Changing this creates a new rule. Valid Options are:
    Timeouts WafDedicatedCcRuleV1Timeouts
    UnlockNum double
    Allowable frequency based on the number of requests. The value ranges from 0 to 2,147,483,647. This parameter is required only when the protection action type is dynamic_block. Changing this creates a new rule.
    Url string
    Path to be protected in the CC attack protection rule. Changing this creates a new rule.
    WafDedicatedCcRuleV1Id string
    ID of the rule.
    Actions []WafDedicatedCcRuleV1ActionArgs
    Protection action to take if the number of requests reaches the upper limit. Changing this creates a new rule. The conditions block supports:
    Conditions []WafDedicatedCcRuleV1ConditionArgs
    Rate limit conditions of the CC protection rule. Changing this creates a new rule. The conditions block supports:
    CreatedAt float64
    Timestamp the rule is created.
    Description string
    Rule description. Changing this creates a new rule.
    LimitNum float64
    Rate limit frequency based on the number of requests. The value ranges from 1 to 2,147,483,647. Changing this creates a new rule.
    LimitPeriod float64
    Rate limit period, in seconds. The value ranges from 1 to 3,600. Changing this creates a new rule.
    LockTime float64
    Block duration, in seconds. The value ranges from 0 to 65,535. Specifies the period within which access is blocked. An error page is displayed in this period. Changing this creates a new rule.
    Mode float64
    Protection mode of the CC attack protection rule. Changing this creates a new rule. Valid Options are:
    PolicyId string
    The WAF policy ID. Changing this creates a new rule.
    Status float64
    Rule status.
    TagCategory string
    Specifies the category. The value is referer. Changing this creates a new rule.
    TagContents []string
    Specifies the category content. Changing this creates a new rule.
    TagIndex string
    User identifier. Changing this creates a new rule. If tag_type is set to cookie, this parameter indicates cookie name. If tag_type is set to header, this parameter indicates header name.
    TagType string
    Rate limit mode. Changing this creates a new rule. Valid Options are:
    Timeouts WafDedicatedCcRuleV1TimeoutsArgs
    UnlockNum float64
    Allowable frequency based on the number of requests. The value ranges from 0 to 2,147,483,647. This parameter is required only when the protection action type is dynamic_block. Changing this creates a new rule.
    Url string
    Path to be protected in the CC attack protection rule. Changing this creates a new rule.
    WafDedicatedCcRuleV1Id string
    ID of the rule.
    actions List<WafDedicatedCcRuleV1Action>
    Protection action to take if the number of requests reaches the upper limit. Changing this creates a new rule. The conditions block supports:
    conditions List<WafDedicatedCcRuleV1Condition>
    Rate limit conditions of the CC protection rule. Changing this creates a new rule. The conditions block supports:
    createdAt Double
    Timestamp the rule is created.
    description String
    Rule description. Changing this creates a new rule.
    limitNum Double
    Rate limit frequency based on the number of requests. The value ranges from 1 to 2,147,483,647. Changing this creates a new rule.
    limitPeriod Double
    Rate limit period, in seconds. The value ranges from 1 to 3,600. Changing this creates a new rule.
    lockTime Double
    Block duration, in seconds. The value ranges from 0 to 65,535. Specifies the period within which access is blocked. An error page is displayed in this period. Changing this creates a new rule.
    mode Double
    Protection mode of the CC attack protection rule. Changing this creates a new rule. Valid Options are:
    policyId String
    The WAF policy ID. Changing this creates a new rule.
    status Double
    Rule status.
    tagCategory String
    Specifies the category. The value is referer. Changing this creates a new rule.
    tagContents List<String>
    Specifies the category content. Changing this creates a new rule.
    tagIndex String
    User identifier. Changing this creates a new rule. If tag_type is set to cookie, this parameter indicates cookie name. If tag_type is set to header, this parameter indicates header name.
    tagType String
    Rate limit mode. Changing this creates a new rule. Valid Options are:
    timeouts WafDedicatedCcRuleV1Timeouts
    unlockNum Double
    Allowable frequency based on the number of requests. The value ranges from 0 to 2,147,483,647. This parameter is required only when the protection action type is dynamic_block. Changing this creates a new rule.
    url String
    Path to be protected in the CC attack protection rule. Changing this creates a new rule.
    wafDedicatedCcRuleV1Id String
    ID of the rule.
    actions WafDedicatedCcRuleV1Action[]
    Protection action to take if the number of requests reaches the upper limit. Changing this creates a new rule. The conditions block supports:
    conditions WafDedicatedCcRuleV1Condition[]
    Rate limit conditions of the CC protection rule. Changing this creates a new rule. The conditions block supports:
    createdAt number
    Timestamp the rule is created.
    description string
    Rule description. Changing this creates a new rule.
    limitNum number
    Rate limit frequency based on the number of requests. The value ranges from 1 to 2,147,483,647. Changing this creates a new rule.
    limitPeriod number
    Rate limit period, in seconds. The value ranges from 1 to 3,600. Changing this creates a new rule.
    lockTime number
    Block duration, in seconds. The value ranges from 0 to 65,535. Specifies the period within which access is blocked. An error page is displayed in this period. Changing this creates a new rule.
    mode number
    Protection mode of the CC attack protection rule. Changing this creates a new rule. Valid Options are:
    policyId string
    The WAF policy ID. Changing this creates a new rule.
    status number
    Rule status.
    tagCategory string
    Specifies the category. The value is referer. Changing this creates a new rule.
    tagContents string[]
    Specifies the category content. Changing this creates a new rule.
    tagIndex string
    User identifier. Changing this creates a new rule. If tag_type is set to cookie, this parameter indicates cookie name. If tag_type is set to header, this parameter indicates header name.
    tagType string
    Rate limit mode. Changing this creates a new rule. Valid Options are:
    timeouts WafDedicatedCcRuleV1Timeouts
    unlockNum number
    Allowable frequency based on the number of requests. The value ranges from 0 to 2,147,483,647. This parameter is required only when the protection action type is dynamic_block. Changing this creates a new rule.
    url string
    Path to be protected in the CC attack protection rule. Changing this creates a new rule.
    wafDedicatedCcRuleV1Id string
    ID of the rule.
    actions Sequence[WafDedicatedCcRuleV1ActionArgs]
    Protection action to take if the number of requests reaches the upper limit. Changing this creates a new rule. The conditions block supports:
    conditions Sequence[WafDedicatedCcRuleV1ConditionArgs]
    Rate limit conditions of the CC protection rule. Changing this creates a new rule. The conditions block supports:
    created_at float
    Timestamp the rule is created.
    description str
    Rule description. Changing this creates a new rule.
    limit_num float
    Rate limit frequency based on the number of requests. The value ranges from 1 to 2,147,483,647. Changing this creates a new rule.
    limit_period float
    Rate limit period, in seconds. The value ranges from 1 to 3,600. Changing this creates a new rule.
    lock_time float
    Block duration, in seconds. The value ranges from 0 to 65,535. Specifies the period within which access is blocked. An error page is displayed in this period. Changing this creates a new rule.
    mode float
    Protection mode of the CC attack protection rule. Changing this creates a new rule. Valid Options are:
    policy_id str
    The WAF policy ID. Changing this creates a new rule.
    status float
    Rule status.
    tag_category str
    Specifies the category. The value is referer. Changing this creates a new rule.
    tag_contents Sequence[str]
    Specifies the category content. Changing this creates a new rule.
    tag_index str
    User identifier. Changing this creates a new rule. If tag_type is set to cookie, this parameter indicates cookie name. If tag_type is set to header, this parameter indicates header name.
    tag_type str
    Rate limit mode. Changing this creates a new rule. Valid Options are:
    timeouts WafDedicatedCcRuleV1TimeoutsArgs
    unlock_num float
    Allowable frequency based on the number of requests. The value ranges from 0 to 2,147,483,647. This parameter is required only when the protection action type is dynamic_block. Changing this creates a new rule.
    url str
    Path to be protected in the CC attack protection rule. Changing this creates a new rule.
    waf_dedicated_cc_rule_v1_id str
    ID of the rule.
    actions List<Property Map>
    Protection action to take if the number of requests reaches the upper limit. Changing this creates a new rule. The conditions block supports:
    conditions List<Property Map>
    Rate limit conditions of the CC protection rule. Changing this creates a new rule. The conditions block supports:
    createdAt Number
    Timestamp the rule is created.
    description String
    Rule description. Changing this creates a new rule.
    limitNum Number
    Rate limit frequency based on the number of requests. The value ranges from 1 to 2,147,483,647. Changing this creates a new rule.
    limitPeriod Number
    Rate limit period, in seconds. The value ranges from 1 to 3,600. Changing this creates a new rule.
    lockTime Number
    Block duration, in seconds. The value ranges from 0 to 65,535. Specifies the period within which access is blocked. An error page is displayed in this period. Changing this creates a new rule.
    mode Number
    Protection mode of the CC attack protection rule. Changing this creates a new rule. Valid Options are:
    policyId String
    The WAF policy ID. Changing this creates a new rule.
    status Number
    Rule status.
    tagCategory String
    Specifies the category. The value is referer. Changing this creates a new rule.
    tagContents List<String>
    Specifies the category content. Changing this creates a new rule.
    tagIndex String
    User identifier. Changing this creates a new rule. If tag_type is set to cookie, this parameter indicates cookie name. If tag_type is set to header, this parameter indicates header name.
    tagType String
    Rate limit mode. Changing this creates a new rule. Valid Options are:
    timeouts Property Map
    unlockNum Number
    Allowable frequency based on the number of requests. The value ranges from 0 to 2,147,483,647. This parameter is required only when the protection action type is dynamic_block. Changing this creates a new rule.
    url String
    Path to be protected in the CC attack protection rule. Changing this creates a new rule.
    wafDedicatedCcRuleV1Id String
    ID of the rule.

    Supporting Types

    WafDedicatedCcRuleV1Action, WafDedicatedCcRuleV1ActionArgs

    Category string
    Action type. Changing this creates a new rule.
    Content string
    Protection page content. Changing this creates a new rule.
    ContentType string
    User identifier. The value is fixed at referer. Changing this creates a new rule.
    Category string
    Action type. Changing this creates a new rule.
    Content string
    Protection page content. Changing this creates a new rule.
    ContentType string
    User identifier. The value is fixed at referer. Changing this creates a new rule.
    category String
    Action type. Changing this creates a new rule.
    content String
    Protection page content. Changing this creates a new rule.
    contentType String
    User identifier. The value is fixed at referer. Changing this creates a new rule.
    category string
    Action type. Changing this creates a new rule.
    content string
    Protection page content. Changing this creates a new rule.
    contentType string
    User identifier. The value is fixed at referer. Changing this creates a new rule.
    category str
    Action type. Changing this creates a new rule.
    content str
    Protection page content. Changing this creates a new rule.
    content_type str
    User identifier. The value is fixed at referer. Changing this creates a new rule.
    category String
    Action type. Changing this creates a new rule.
    content String
    Protection page content. Changing this creates a new rule.
    contentType String
    User identifier. The value is fixed at referer. Changing this creates a new rule.

    WafDedicatedCcRuleV1Condition, WafDedicatedCcRuleV1ConditionArgs

    Category string
    Field type. The value can be url, ip, params, cookie, or header.
    LogicOperation string
    Logic for matching the condition.

    • If the category is url, the optional operations are contain, not_contain, equal, not_equal, prefix, not_prefix, suffix, not_suffix, contain_any, not_contain_all, equal_any, not_equal_all, equal_any, not_equal_all, prefix_any, not_prefix_all, suffix_any, not_suffix_all, len_greater, len_less, len_equal and len_not_equal
    • If the category is ip, the optional operations are: equal, not_equal, equal_any and not_equal_all
    • If the category is params, cookie and header, the optional operations are: contain, not_contain, equal, not_equal, prefix, not_prefix, suffix, not_suffix, contain_any, not_contain_all, equal_any, not_equal_all, equal_any, not_equal_all, prefix_any, not_prefix_all, suffix_any, not_suffix_all, len_greater, len_less, len_equal, len_not_equal, num_greater, num_less, num_equal, num_not_equal, exist and not_exist Changing this creates a new rule.
    Contents List<string>
    Content of the conditions. This parameter is mandatory when the suffix of logic_operation is not any or all. Changing this creates a new rule.
    Index string
    Subfield. When category is set to params, cookie, or header, set this parameter based on site requirements. This parameter is mandatory. Changing this creates a new rule.
    ValueListId string
    Reference table ID. This parameter is mandatory when the suffix of logic_operation is any or all. The reference table type must be the same as the category type. Changing this creates a new rule.
    Category string
    Field type. The value can be url, ip, params, cookie, or header.
    LogicOperation string
    Logic for matching the condition.

    • If the category is url, the optional operations are contain, not_contain, equal, not_equal, prefix, not_prefix, suffix, not_suffix, contain_any, not_contain_all, equal_any, not_equal_all, equal_any, not_equal_all, prefix_any, not_prefix_all, suffix_any, not_suffix_all, len_greater, len_less, len_equal and len_not_equal
    • If the category is ip, the optional operations are: equal, not_equal, equal_any and not_equal_all
    • If the category is params, cookie and header, the optional operations are: contain, not_contain, equal, not_equal, prefix, not_prefix, suffix, not_suffix, contain_any, not_contain_all, equal_any, not_equal_all, equal_any, not_equal_all, prefix_any, not_prefix_all, suffix_any, not_suffix_all, len_greater, len_less, len_equal, len_not_equal, num_greater, num_less, num_equal, num_not_equal, exist and not_exist Changing this creates a new rule.
    Contents []string
    Content of the conditions. This parameter is mandatory when the suffix of logic_operation is not any or all. Changing this creates a new rule.
    Index string
    Subfield. When category is set to params, cookie, or header, set this parameter based on site requirements. This parameter is mandatory. Changing this creates a new rule.
    ValueListId string
    Reference table ID. This parameter is mandatory when the suffix of logic_operation is any or all. The reference table type must be the same as the category type. Changing this creates a new rule.
    category String
    Field type. The value can be url, ip, params, cookie, or header.
    logicOperation String
    Logic for matching the condition.

    • If the category is url, the optional operations are contain, not_contain, equal, not_equal, prefix, not_prefix, suffix, not_suffix, contain_any, not_contain_all, equal_any, not_equal_all, equal_any, not_equal_all, prefix_any, not_prefix_all, suffix_any, not_suffix_all, len_greater, len_less, len_equal and len_not_equal
    • If the category is ip, the optional operations are: equal, not_equal, equal_any and not_equal_all
    • If the category is params, cookie and header, the optional operations are: contain, not_contain, equal, not_equal, prefix, not_prefix, suffix, not_suffix, contain_any, not_contain_all, equal_any, not_equal_all, equal_any, not_equal_all, prefix_any, not_prefix_all, suffix_any, not_suffix_all, len_greater, len_less, len_equal, len_not_equal, num_greater, num_less, num_equal, num_not_equal, exist and not_exist Changing this creates a new rule.
    contents List<String>
    Content of the conditions. This parameter is mandatory when the suffix of logic_operation is not any or all. Changing this creates a new rule.
    index String
    Subfield. When category is set to params, cookie, or header, set this parameter based on site requirements. This parameter is mandatory. Changing this creates a new rule.
    valueListId String
    Reference table ID. This parameter is mandatory when the suffix of logic_operation is any or all. The reference table type must be the same as the category type. Changing this creates a new rule.
    category string
    Field type. The value can be url, ip, params, cookie, or header.
    logicOperation string
    Logic for matching the condition.

    • If the category is url, the optional operations are contain, not_contain, equal, not_equal, prefix, not_prefix, suffix, not_suffix, contain_any, not_contain_all, equal_any, not_equal_all, equal_any, not_equal_all, prefix_any, not_prefix_all, suffix_any, not_suffix_all, len_greater, len_less, len_equal and len_not_equal
    • If the category is ip, the optional operations are: equal, not_equal, equal_any and not_equal_all
    • If the category is params, cookie and header, the optional operations are: contain, not_contain, equal, not_equal, prefix, not_prefix, suffix, not_suffix, contain_any, not_contain_all, equal_any, not_equal_all, equal_any, not_equal_all, prefix_any, not_prefix_all, suffix_any, not_suffix_all, len_greater, len_less, len_equal, len_not_equal, num_greater, num_less, num_equal, num_not_equal, exist and not_exist Changing this creates a new rule.
    contents string[]
    Content of the conditions. This parameter is mandatory when the suffix of logic_operation is not any or all. Changing this creates a new rule.
    index string
    Subfield. When category is set to params, cookie, or header, set this parameter based on site requirements. This parameter is mandatory. Changing this creates a new rule.
    valueListId string
    Reference table ID. This parameter is mandatory when the suffix of logic_operation is any or all. The reference table type must be the same as the category type. Changing this creates a new rule.
    category str
    Field type. The value can be url, ip, params, cookie, or header.
    logic_operation str
    Logic for matching the condition.

    • If the category is url, the optional operations are contain, not_contain, equal, not_equal, prefix, not_prefix, suffix, not_suffix, contain_any, not_contain_all, equal_any, not_equal_all, equal_any, not_equal_all, prefix_any, not_prefix_all, suffix_any, not_suffix_all, len_greater, len_less, len_equal and len_not_equal
    • If the category is ip, the optional operations are: equal, not_equal, equal_any and not_equal_all
    • If the category is params, cookie and header, the optional operations are: contain, not_contain, equal, not_equal, prefix, not_prefix, suffix, not_suffix, contain_any, not_contain_all, equal_any, not_equal_all, equal_any, not_equal_all, prefix_any, not_prefix_all, suffix_any, not_suffix_all, len_greater, len_less, len_equal, len_not_equal, num_greater, num_less, num_equal, num_not_equal, exist and not_exist Changing this creates a new rule.
    contents Sequence[str]
    Content of the conditions. This parameter is mandatory when the suffix of logic_operation is not any or all. Changing this creates a new rule.
    index str
    Subfield. When category is set to params, cookie, or header, set this parameter based on site requirements. This parameter is mandatory. Changing this creates a new rule.
    value_list_id str
    Reference table ID. This parameter is mandatory when the suffix of logic_operation is any or all. The reference table type must be the same as the category type. Changing this creates a new rule.
    category String
    Field type. The value can be url, ip, params, cookie, or header.
    logicOperation String
    Logic for matching the condition.

    • If the category is url, the optional operations are contain, not_contain, equal, not_equal, prefix, not_prefix, suffix, not_suffix, contain_any, not_contain_all, equal_any, not_equal_all, equal_any, not_equal_all, prefix_any, not_prefix_all, suffix_any, not_suffix_all, len_greater, len_less, len_equal and len_not_equal
    • If the category is ip, the optional operations are: equal, not_equal, equal_any and not_equal_all
    • If the category is params, cookie and header, the optional operations are: contain, not_contain, equal, not_equal, prefix, not_prefix, suffix, not_suffix, contain_any, not_contain_all, equal_any, not_equal_all, equal_any, not_equal_all, prefix_any, not_prefix_all, suffix_any, not_suffix_all, len_greater, len_less, len_equal, len_not_equal, num_greater, num_less, num_equal, num_not_equal, exist and not_exist Changing this creates a new rule.
    contents List<String>
    Content of the conditions. This parameter is mandatory when the suffix of logic_operation is not any or all. Changing this creates a new rule.
    index String
    Subfield. When category is set to params, cookie, or header, set this parameter based on site requirements. This parameter is mandatory. Changing this creates a new rule.
    valueListId String
    Reference table ID. This parameter is mandatory when the suffix of logic_operation is any or all. The reference table type must be the same as the category type. Changing this creates a new rule.

    WafDedicatedCcRuleV1Timeouts, WafDedicatedCcRuleV1TimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    Dedicated WAF CC Attack Protection Rules can be imported using policy_id/id, e.g.

    $ pulumi import opentelekomcloud:index/wafDedicatedCcRuleV1:WafDedicatedCcRuleV1 rule_1 ff95e71c8ae74eba9887193ab22c5757/b39f3a5a1b4f447a8030f0b0703f47f5
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud