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

opentelekomcloud.WafCcattackprotectionRuleV1

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 CC attack protection rule you can get at documentation portal

    Manages a WAF 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.WafPolicyV1("policy1", {});
    const rule1 = new opentelekomcloud.WafCcattackprotectionRuleV1("rule1", {
        policyId: policy1.wafPolicyV1Id,
        url: "/abc1",
        limitNum: 10,
        limitPeriod: 60,
        lockTime: 10,
        tagType: "cookie",
        tagIndex: "sessionid",
        actionCategory: "block",
        blockContentType: "application/json",
        blockContent: "{\"error\":\"forbidden\"}",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    policy1 = opentelekomcloud.WafPolicyV1("policy1")
    rule1 = opentelekomcloud.WafCcattackprotectionRuleV1("rule1",
        policy_id=policy1.waf_policy_v1_id,
        url="/abc1",
        limit_num=10,
        limit_period=60,
        lock_time=10,
        tag_type="cookie",
        tag_index="sessionid",
        action_category="block",
        block_content_type="application/json",
        block_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.NewWafPolicyV1(ctx, "policy1", nil)
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewWafCcattackprotectionRuleV1(ctx, "rule1", &opentelekomcloud.WafCcattackprotectionRuleV1Args{
    			PolicyId:         policy1.WafPolicyV1Id,
    			Url:              pulumi.String("/abc1"),
    			LimitNum:         pulumi.Float64(10),
    			LimitPeriod:      pulumi.Float64(60),
    			LockTime:         pulumi.Float64(10),
    			TagType:          pulumi.String("cookie"),
    			TagIndex:         pulumi.String("sessionid"),
    			ActionCategory:   pulumi.String("block"),
    			BlockContentType: pulumi.String("application/json"),
    			BlockContent:     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.WafPolicyV1("policy1");
    
        var rule1 = new Opentelekomcloud.WafCcattackprotectionRuleV1("rule1", new()
        {
            PolicyId = policy1.WafPolicyV1Id,
            Url = "/abc1",
            LimitNum = 10,
            LimitPeriod = 60,
            LockTime = 10,
            TagType = "cookie",
            TagIndex = "sessionid",
            ActionCategory = "block",
            BlockContentType = "application/json",
            BlockContent = "{\"error\":\"forbidden\"}",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.WafPolicyV1;
    import com.pulumi.opentelekomcloud.WafCcattackprotectionRuleV1;
    import com.pulumi.opentelekomcloud.WafCcattackprotectionRuleV1Args;
    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 WafPolicyV1("policy1");
    
            var rule1 = new WafCcattackprotectionRuleV1("rule1", WafCcattackprotectionRuleV1Args.builder()
                .policyId(policy1.wafPolicyV1Id())
                .url("/abc1")
                .limitNum(10)
                .limitPeriod(60)
                .lockTime(10)
                .tagType("cookie")
                .tagIndex("sessionid")
                .actionCategory("block")
                .blockContentType("application/json")
                .blockContent("{\"error\":\"forbidden\"}")
                .build());
    
        }
    }
    
    resources:
      policy1:
        type: opentelekomcloud:WafPolicyV1
      rule1:
        type: opentelekomcloud:WafCcattackprotectionRuleV1
        properties:
          policyId: ${policy1.wafPolicyV1Id}
          url: /abc1
          limitNum: 10
          limitPeriod: 60
          lockTime: 10
          tagType: cookie
          tagIndex: sessionid
          actionCategory: block
          blockContentType: application/json
          blockContent: '{"error":"forbidden"}'
    

    Create WafCcattackprotectionRuleV1 Resource

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

    Constructor syntax

    new WafCcattackprotectionRuleV1(name: string, args: WafCcattackprotectionRuleV1Args, opts?: CustomResourceOptions);
    @overload
    def WafCcattackprotectionRuleV1(resource_name: str,
                                    args: WafCcattackprotectionRuleV1Args,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def WafCcattackprotectionRuleV1(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,
                                    action_category: Optional[str] = None,
                                    tag_contents: Optional[Sequence[str]] = None,
                                    lock_time: Optional[float] = None,
                                    block_content: Optional[str] = None,
                                    tag_index: Optional[str] = None,
                                    block_content_type: Optional[str] = None,
                                    timeouts: Optional[WafCcattackprotectionRuleV1TimeoutsArgs] = None,
                                    tag_category: Optional[str] = None,
                                    waf_ccattackprotection_rule_v1_id: Optional[str] = None)
    func NewWafCcattackprotectionRuleV1(ctx *Context, name string, args WafCcattackprotectionRuleV1Args, opts ...ResourceOption) (*WafCcattackprotectionRuleV1, error)
    public WafCcattackprotectionRuleV1(string name, WafCcattackprotectionRuleV1Args args, CustomResourceOptions? opts = null)
    public WafCcattackprotectionRuleV1(String name, WafCcattackprotectionRuleV1Args args)
    public WafCcattackprotectionRuleV1(String name, WafCcattackprotectionRuleV1Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:WafCcattackprotectionRuleV1
    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 WafCcattackprotectionRuleV1Args
    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 WafCcattackprotectionRuleV1Args
    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 WafCcattackprotectionRuleV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WafCcattackprotectionRuleV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WafCcattackprotectionRuleV1Args
    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 wafCcattackprotectionRuleV1Resource = new Opentelekomcloud.WafCcattackprotectionRuleV1("wafCcattackprotectionRuleV1Resource", new()
    {
        PolicyId = "string",
        Url = "string",
        TagType = "string",
        LimitNum = 0,
        LimitPeriod = 0,
        ActionCategory = "string",
        TagContents = new[]
        {
            "string",
        },
        LockTime = 0,
        BlockContent = "string",
        TagIndex = "string",
        BlockContentType = "string",
        Timeouts = new Opentelekomcloud.Inputs.WafCcattackprotectionRuleV1TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        TagCategory = "string",
        WafCcattackprotectionRuleV1Id = "string",
    });
    
    example, err := opentelekomcloud.NewWafCcattackprotectionRuleV1(ctx, "wafCcattackprotectionRuleV1Resource", &opentelekomcloud.WafCcattackprotectionRuleV1Args{
    	PolicyId:       pulumi.String("string"),
    	Url:            pulumi.String("string"),
    	TagType:        pulumi.String("string"),
    	LimitNum:       pulumi.Float64(0),
    	LimitPeriod:    pulumi.Float64(0),
    	ActionCategory: pulumi.String("string"),
    	TagContents: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	LockTime:         pulumi.Float64(0),
    	BlockContent:     pulumi.String("string"),
    	TagIndex:         pulumi.String("string"),
    	BlockContentType: pulumi.String("string"),
    	Timeouts: &opentelekomcloud.WafCcattackprotectionRuleV1TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	TagCategory:                   pulumi.String("string"),
    	WafCcattackprotectionRuleV1Id: pulumi.String("string"),
    })
    
    var wafCcattackprotectionRuleV1Resource = new WafCcattackprotectionRuleV1("wafCcattackprotectionRuleV1Resource", WafCcattackprotectionRuleV1Args.builder()
        .policyId("string")
        .url("string")
        .tagType("string")
        .limitNum(0)
        .limitPeriod(0)
        .actionCategory("string")
        .tagContents("string")
        .lockTime(0)
        .blockContent("string")
        .tagIndex("string")
        .blockContentType("string")
        .timeouts(WafCcattackprotectionRuleV1TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .tagCategory("string")
        .wafCcattackprotectionRuleV1Id("string")
        .build());
    
    waf_ccattackprotection_rule_v1_resource = opentelekomcloud.WafCcattackprotectionRuleV1("wafCcattackprotectionRuleV1Resource",
        policy_id="string",
        url="string",
        tag_type="string",
        limit_num=0,
        limit_period=0,
        action_category="string",
        tag_contents=["string"],
        lock_time=0,
        block_content="string",
        tag_index="string",
        block_content_type="string",
        timeouts={
            "create": "string",
            "delete": "string",
        },
        tag_category="string",
        waf_ccattackprotection_rule_v1_id="string")
    
    const wafCcattackprotectionRuleV1Resource = new opentelekomcloud.WafCcattackprotectionRuleV1("wafCcattackprotectionRuleV1Resource", {
        policyId: "string",
        url: "string",
        tagType: "string",
        limitNum: 0,
        limitPeriod: 0,
        actionCategory: "string",
        tagContents: ["string"],
        lockTime: 0,
        blockContent: "string",
        tagIndex: "string",
        blockContentType: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
        tagCategory: "string",
        wafCcattackprotectionRuleV1Id: "string",
    });
    
    type: opentelekomcloud:WafCcattackprotectionRuleV1
    properties:
        actionCategory: string
        blockContent: string
        blockContentType: string
        limitNum: 0
        limitPeriod: 0
        lockTime: 0
        policyId: string
        tagCategory: string
        tagContents:
            - string
        tagIndex: string
        tagType: string
        timeouts:
            create: string
            delete: string
        url: string
        wafCcattackprotectionRuleV1Id: string
    

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

    ActionCategory string
    Specifies the action. Changing this creates a new rule. Valid Options are:
    LimitNum double
    Specifies the number of requests allowed from a web visitor in a rate limiting period. Changing this creates a new rule.
    LimitPeriod double
    Specifies the rate limiting period. Changing this creates a new rule.
    PolicyId string
    The WAF policy ID. Changing this creates a new rule.
    TagType string
    Specifies the rate limit mode. Changing this creates a new rule. Valid Options are:
    Url string
    Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
    BlockContent string
    Specifies the content of the returned page. Changing this creates a new rule.
    BlockContentType string
    Specifies the type of the returned page. The options are application/json, text/html, and text/xml. Changing this creates a new rule.
    LockTime double
    Specifies the lock duration. The value ranges from 0 seconds to 2^32 seconds. 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
    If tag_type is set to cookie, this parameter indicates cookie name. Changing this creates a new rule.
    Timeouts WafCcattackprotectionRuleV1Timeouts
    WafCcattackprotectionRuleV1Id string
    ID of the rule.
    ActionCategory string
    Specifies the action. Changing this creates a new rule. Valid Options are:
    LimitNum float64
    Specifies the number of requests allowed from a web visitor in a rate limiting period. Changing this creates a new rule.
    LimitPeriod float64
    Specifies the rate limiting period. Changing this creates a new rule.
    PolicyId string
    The WAF policy ID. Changing this creates a new rule.
    TagType string
    Specifies the rate limit mode. Changing this creates a new rule. Valid Options are:
    Url string
    Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
    BlockContent string
    Specifies the content of the returned page. Changing this creates a new rule.
    BlockContentType string
    Specifies the type of the returned page. The options are application/json, text/html, and text/xml. Changing this creates a new rule.
    LockTime float64
    Specifies the lock duration. The value ranges from 0 seconds to 2^32 seconds. 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
    If tag_type is set to cookie, this parameter indicates cookie name. Changing this creates a new rule.
    Timeouts WafCcattackprotectionRuleV1TimeoutsArgs
    WafCcattackprotectionRuleV1Id string
    ID of the rule.
    actionCategory String
    Specifies the action. Changing this creates a new rule. Valid Options are:
    limitNum Double
    Specifies the number of requests allowed from a web visitor in a rate limiting period. Changing this creates a new rule.
    limitPeriod Double
    Specifies the rate limiting period. Changing this creates a new rule.
    policyId String
    The WAF policy ID. Changing this creates a new rule.
    tagType String
    Specifies the rate limit mode. Changing this creates a new rule. Valid Options are:
    url String
    Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
    blockContent String
    Specifies the content of the returned page. Changing this creates a new rule.
    blockContentType String
    Specifies the type of the returned page. The options are application/json, text/html, and text/xml. Changing this creates a new rule.
    lockTime Double
    Specifies the lock duration. The value ranges from 0 seconds to 2^32 seconds. 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
    If tag_type is set to cookie, this parameter indicates cookie name. Changing this creates a new rule.
    timeouts WafCcattackprotectionRuleV1Timeouts
    wafCcattackprotectionRuleV1Id String
    ID of the rule.
    actionCategory string
    Specifies the action. Changing this creates a new rule. Valid Options are:
    limitNum number
    Specifies the number of requests allowed from a web visitor in a rate limiting period. Changing this creates a new rule.
    limitPeriod number
    Specifies the rate limiting period. Changing this creates a new rule.
    policyId string
    The WAF policy ID. Changing this creates a new rule.
    tagType string
    Specifies the rate limit mode. Changing this creates a new rule. Valid Options are:
    url string
    Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
    blockContent string
    Specifies the content of the returned page. Changing this creates a new rule.
    blockContentType string
    Specifies the type of the returned page. The options are application/json, text/html, and text/xml. Changing this creates a new rule.
    lockTime number
    Specifies the lock duration. The value ranges from 0 seconds to 2^32 seconds. 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
    If tag_type is set to cookie, this parameter indicates cookie name. Changing this creates a new rule.
    timeouts WafCcattackprotectionRuleV1Timeouts
    wafCcattackprotectionRuleV1Id string
    ID of the rule.
    action_category str
    Specifies the action. Changing this creates a new rule. Valid Options are:
    limit_num float
    Specifies the number of requests allowed from a web visitor in a rate limiting period. Changing this creates a new rule.
    limit_period float
    Specifies the rate limiting period. Changing this creates a new rule.
    policy_id str
    The WAF policy ID. Changing this creates a new rule.
    tag_type str
    Specifies the rate limit mode. Changing this creates a new rule. Valid Options are:
    url str
    Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
    block_content str
    Specifies the content of the returned page. Changing this creates a new rule.
    block_content_type str
    Specifies the type of the returned page. The options are application/json, text/html, and text/xml. Changing this creates a new rule.
    lock_time float
    Specifies the lock duration. The value ranges from 0 seconds to 2^32 seconds. 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
    If tag_type is set to cookie, this parameter indicates cookie name. Changing this creates a new rule.
    timeouts WafCcattackprotectionRuleV1TimeoutsArgs
    waf_ccattackprotection_rule_v1_id str
    ID of the rule.
    actionCategory String
    Specifies the action. Changing this creates a new rule. Valid Options are:
    limitNum Number
    Specifies the number of requests allowed from a web visitor in a rate limiting period. Changing this creates a new rule.
    limitPeriod Number
    Specifies the rate limiting period. Changing this creates a new rule.
    policyId String
    The WAF policy ID. Changing this creates a new rule.
    tagType String
    Specifies the rate limit mode. Changing this creates a new rule. Valid Options are:
    url String
    Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
    blockContent String
    Specifies the content of the returned page. Changing this creates a new rule.
    blockContentType String
    Specifies the type of the returned page. The options are application/json, text/html, and text/xml. Changing this creates a new rule.
    lockTime Number
    Specifies the lock duration. The value ranges from 0 seconds to 2^32 seconds. 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
    If tag_type is set to cookie, this parameter indicates cookie name. Changing this creates a new rule.
    timeouts Property Map
    wafCcattackprotectionRuleV1Id String
    ID of the rule.

    Outputs

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

    Default bool
    Specifies whether the rule is the default CC attack protection rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    Default bool
    Specifies whether the rule is the default CC attack protection rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    default_ Boolean
    Specifies whether the rule is the default CC attack protection rule.
    id String
    The provider-assigned unique ID for this managed resource.
    default boolean
    Specifies whether the rule is the default CC attack protection rule.
    id string
    The provider-assigned unique ID for this managed resource.
    default bool
    Specifies whether the rule is the default CC attack protection rule.
    id str
    The provider-assigned unique ID for this managed resource.
    default Boolean
    Specifies whether the rule is the default CC attack protection rule.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing WafCcattackprotectionRuleV1 Resource

    Get an existing WafCcattackprotectionRuleV1 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?: WafCcattackprotectionRuleV1State, opts?: CustomResourceOptions): WafCcattackprotectionRuleV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action_category: Optional[str] = None,
            block_content: Optional[str] = None,
            block_content_type: Optional[str] = None,
            default: Optional[bool] = None,
            limit_num: Optional[float] = None,
            limit_period: Optional[float] = None,
            lock_time: Optional[float] = None,
            policy_id: Optional[str] = None,
            tag_category: Optional[str] = None,
            tag_contents: Optional[Sequence[str]] = None,
            tag_index: Optional[str] = None,
            tag_type: Optional[str] = None,
            timeouts: Optional[WafCcattackprotectionRuleV1TimeoutsArgs] = None,
            url: Optional[str] = None,
            waf_ccattackprotection_rule_v1_id: Optional[str] = None) -> WafCcattackprotectionRuleV1
    func GetWafCcattackprotectionRuleV1(ctx *Context, name string, id IDInput, state *WafCcattackprotectionRuleV1State, opts ...ResourceOption) (*WafCcattackprotectionRuleV1, error)
    public static WafCcattackprotectionRuleV1 Get(string name, Input<string> id, WafCcattackprotectionRuleV1State? state, CustomResourceOptions? opts = null)
    public static WafCcattackprotectionRuleV1 get(String name, Output<String> id, WafCcattackprotectionRuleV1State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:WafCcattackprotectionRuleV1    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:
    ActionCategory string
    Specifies the action. Changing this creates a new rule. Valid Options are:
    BlockContent string
    Specifies the content of the returned page. Changing this creates a new rule.
    BlockContentType string
    Specifies the type of the returned page. The options are application/json, text/html, and text/xml. Changing this creates a new rule.
    Default bool
    Specifies whether the rule is the default CC attack protection rule.
    LimitNum double
    Specifies the number of requests allowed from a web visitor in a rate limiting period. Changing this creates a new rule.
    LimitPeriod double
    Specifies the rate limiting period. Changing this creates a new rule.
    LockTime double
    Specifies the lock duration. The value ranges from 0 seconds to 2^32 seconds. Changing this creates a new rule.
    PolicyId string
    The WAF policy ID. 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
    If tag_type is set to cookie, this parameter indicates cookie name. Changing this creates a new rule.
    TagType string
    Specifies the rate limit mode. Changing this creates a new rule. Valid Options are:
    Timeouts WafCcattackprotectionRuleV1Timeouts
    Url string
    Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
    WafCcattackprotectionRuleV1Id string
    ID of the rule.
    ActionCategory string
    Specifies the action. Changing this creates a new rule. Valid Options are:
    BlockContent string
    Specifies the content of the returned page. Changing this creates a new rule.
    BlockContentType string
    Specifies the type of the returned page. The options are application/json, text/html, and text/xml. Changing this creates a new rule.
    Default bool
    Specifies whether the rule is the default CC attack protection rule.
    LimitNum float64
    Specifies the number of requests allowed from a web visitor in a rate limiting period. Changing this creates a new rule.
    LimitPeriod float64
    Specifies the rate limiting period. Changing this creates a new rule.
    LockTime float64
    Specifies the lock duration. The value ranges from 0 seconds to 2^32 seconds. Changing this creates a new rule.
    PolicyId string
    The WAF policy ID. 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
    If tag_type is set to cookie, this parameter indicates cookie name. Changing this creates a new rule.
    TagType string
    Specifies the rate limit mode. Changing this creates a new rule. Valid Options are:
    Timeouts WafCcattackprotectionRuleV1TimeoutsArgs
    Url string
    Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
    WafCcattackprotectionRuleV1Id string
    ID of the rule.
    actionCategory String
    Specifies the action. Changing this creates a new rule. Valid Options are:
    blockContent String
    Specifies the content of the returned page. Changing this creates a new rule.
    blockContentType String
    Specifies the type of the returned page. The options are application/json, text/html, and text/xml. Changing this creates a new rule.
    default_ Boolean
    Specifies whether the rule is the default CC attack protection rule.
    limitNum Double
    Specifies the number of requests allowed from a web visitor in a rate limiting period. Changing this creates a new rule.
    limitPeriod Double
    Specifies the rate limiting period. Changing this creates a new rule.
    lockTime Double
    Specifies the lock duration. The value ranges from 0 seconds to 2^32 seconds. Changing this creates a new rule.
    policyId String
    The WAF policy ID. 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
    If tag_type is set to cookie, this parameter indicates cookie name. Changing this creates a new rule.
    tagType String
    Specifies the rate limit mode. Changing this creates a new rule. Valid Options are:
    timeouts WafCcattackprotectionRuleV1Timeouts
    url String
    Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
    wafCcattackprotectionRuleV1Id String
    ID of the rule.
    actionCategory string
    Specifies the action. Changing this creates a new rule. Valid Options are:
    blockContent string
    Specifies the content of the returned page. Changing this creates a new rule.
    blockContentType string
    Specifies the type of the returned page. The options are application/json, text/html, and text/xml. Changing this creates a new rule.
    default boolean
    Specifies whether the rule is the default CC attack protection rule.
    limitNum number
    Specifies the number of requests allowed from a web visitor in a rate limiting period. Changing this creates a new rule.
    limitPeriod number
    Specifies the rate limiting period. Changing this creates a new rule.
    lockTime number
    Specifies the lock duration. The value ranges from 0 seconds to 2^32 seconds. Changing this creates a new rule.
    policyId string
    The WAF policy ID. 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
    If tag_type is set to cookie, this parameter indicates cookie name. Changing this creates a new rule.
    tagType string
    Specifies the rate limit mode. Changing this creates a new rule. Valid Options are:
    timeouts WafCcattackprotectionRuleV1Timeouts
    url string
    Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
    wafCcattackprotectionRuleV1Id string
    ID of the rule.
    action_category str
    Specifies the action. Changing this creates a new rule. Valid Options are:
    block_content str
    Specifies the content of the returned page. Changing this creates a new rule.
    block_content_type str
    Specifies the type of the returned page. The options are application/json, text/html, and text/xml. Changing this creates a new rule.
    default bool
    Specifies whether the rule is the default CC attack protection rule.
    limit_num float
    Specifies the number of requests allowed from a web visitor in a rate limiting period. Changing this creates a new rule.
    limit_period float
    Specifies the rate limiting period. Changing this creates a new rule.
    lock_time float
    Specifies the lock duration. The value ranges from 0 seconds to 2^32 seconds. Changing this creates a new rule.
    policy_id str
    The WAF policy ID. 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
    If tag_type is set to cookie, this parameter indicates cookie name. Changing this creates a new rule.
    tag_type str
    Specifies the rate limit mode. Changing this creates a new rule. Valid Options are:
    timeouts WafCcattackprotectionRuleV1TimeoutsArgs
    url str
    Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
    waf_ccattackprotection_rule_v1_id str
    ID of the rule.
    actionCategory String
    Specifies the action. Changing this creates a new rule. Valid Options are:
    blockContent String
    Specifies the content of the returned page. Changing this creates a new rule.
    blockContentType String
    Specifies the type of the returned page. The options are application/json, text/html, and text/xml. Changing this creates a new rule.
    default Boolean
    Specifies whether the rule is the default CC attack protection rule.
    limitNum Number
    Specifies the number of requests allowed from a web visitor in a rate limiting period. Changing this creates a new rule.
    limitPeriod Number
    Specifies the rate limiting period. Changing this creates a new rule.
    lockTime Number
    Specifies the lock duration. The value ranges from 0 seconds to 2^32 seconds. Changing this creates a new rule.
    policyId String
    The WAF policy ID. 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
    If tag_type is set to cookie, this parameter indicates cookie name. Changing this creates a new rule.
    tagType String
    Specifies the rate limit mode. Changing this creates a new rule. Valid Options are:
    timeouts Property Map
    url String
    Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
    wafCcattackprotectionRuleV1Id String
    ID of the rule.

    Supporting Types

    WafCcattackprotectionRuleV1Timeouts, WafCcattackprotectionRuleV1TimeoutsArgs

    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

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

    $ pulumi import opentelekomcloud:index/wafCcattackprotectionRuleV1:WafCcattackprotectionRuleV1 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