opentelekomcloud.WafCcattackprotectionRuleV1
Explore with Pulumi AI
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:
- Action
Category string - Specifies the action. Changing this creates a new rule. Valid Options are:
- Limit
Num double - Specifies the number of requests allowed from a web visitor in a rate limiting period. Changing this creates a new rule.
- Limit
Period double - Specifies the rate limiting period. Changing this creates a new rule.
- Policy
Id string - The WAF policy ID. Changing this creates a new rule.
- Tag
Type 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.
- Block
Content string - Specifies the content of the returned page. Changing this creates a new rule.
- Block
Content stringType - Specifies the type of the returned page. The options are
application/json
,text/html
, andtext/xml
. Changing this creates a new rule. - Lock
Time double - Specifies the lock duration. The value ranges from 0 seconds to 2^32 seconds. Changing this creates a new rule.
- Tag
Category string - Specifies the category. The value is
referer
. Changing this creates a new rule. - Tag
Contents List<string> - Specifies the category content. Changing this creates a new rule.
- Tag
Index string - If
tag_type
is set tocookie
, this parameter indicates cookie name. Changing this creates a new rule. - Timeouts
Waf
Ccattackprotection Rule V1Timeouts - Waf
Ccattackprotection stringRule V1Id - ID of the rule.
- Action
Category string - Specifies the action. Changing this creates a new rule. Valid Options are:
- Limit
Num float64 - Specifies the number of requests allowed from a web visitor in a rate limiting period. Changing this creates a new rule.
- Limit
Period float64 - Specifies the rate limiting period. Changing this creates a new rule.
- Policy
Id string - The WAF policy ID. Changing this creates a new rule.
- Tag
Type 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.
- Block
Content string - Specifies the content of the returned page. Changing this creates a new rule.
- Block
Content stringType - Specifies the type of the returned page. The options are
application/json
,text/html
, andtext/xml
. Changing this creates a new rule. - Lock
Time float64 - Specifies the lock duration. The value ranges from 0 seconds to 2^32 seconds. Changing this creates a new rule.
- Tag
Category string - Specifies the category. The value is
referer
. Changing this creates a new rule. - Tag
Contents []string - Specifies the category content. Changing this creates a new rule.
- Tag
Index string - If
tag_type
is set tocookie
, this parameter indicates cookie name. Changing this creates a new rule. - Timeouts
Waf
Ccattackprotection Rule V1Timeouts Args - Waf
Ccattackprotection stringRule V1Id - ID of the rule.
- action
Category String - Specifies the action. Changing this creates a new rule. Valid Options are:
- limit
Num Double - Specifies the number of requests allowed from a web visitor in a rate limiting period. Changing this creates a new rule.
- limit
Period Double - Specifies the rate limiting period. Changing this creates a new rule.
- policy
Id String - The WAF policy ID. Changing this creates a new rule.
- tag
Type 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.
- block
Content String - Specifies the content of the returned page. Changing this creates a new rule.
- block
Content StringType - Specifies the type of the returned page. The options are
application/json
,text/html
, andtext/xml
. Changing this creates a new rule. - lock
Time Double - Specifies the lock duration. The value ranges from 0 seconds to 2^32 seconds. Changing this creates a new rule.
- tag
Category String - Specifies the category. The value is
referer
. Changing this creates a new rule. - tag
Contents List<String> - Specifies the category content. Changing this creates a new rule.
- tag
Index String - If
tag_type
is set tocookie
, this parameter indicates cookie name. Changing this creates a new rule. - timeouts
Waf
Ccattackprotection Rule V1Timeouts - waf
Ccattackprotection StringRule V1Id - ID of the rule.
- action
Category string - Specifies the action. Changing this creates a new rule. Valid Options are:
- limit
Num number - Specifies the number of requests allowed from a web visitor in a rate limiting period. Changing this creates a new rule.
- limit
Period number - Specifies the rate limiting period. Changing this creates a new rule.
- policy
Id string - The WAF policy ID. Changing this creates a new rule.
- tag
Type 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.
- block
Content string - Specifies the content of the returned page. Changing this creates a new rule.
- block
Content stringType - Specifies the type of the returned page. The options are
application/json
,text/html
, andtext/xml
. Changing this creates a new rule. - lock
Time number - Specifies the lock duration. The value ranges from 0 seconds to 2^32 seconds. Changing this creates a new rule.
- tag
Category string - Specifies the category. The value is
referer
. Changing this creates a new rule. - tag
Contents string[] - Specifies the category content. Changing this creates a new rule.
- tag
Index string - If
tag_type
is set tocookie
, this parameter indicates cookie name. Changing this creates a new rule. - timeouts
Waf
Ccattackprotection Rule V1Timeouts - waf
Ccattackprotection stringRule V1Id - 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_ strtype - Specifies the type of the returned page. The options are
application/json
,text/html
, andtext/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 tocookie
, this parameter indicates cookie name. Changing this creates a new rule. - timeouts
Waf
Ccattackprotection Rule V1Timeouts Args - waf_
ccattackprotection_ strrule_ v1_ id - ID of the rule.
- action
Category String - Specifies the action. Changing this creates a new rule. Valid Options are:
- limit
Num Number - Specifies the number of requests allowed from a web visitor in a rate limiting period. Changing this creates a new rule.
- limit
Period Number - Specifies the rate limiting period. Changing this creates a new rule.
- policy
Id String - The WAF policy ID. Changing this creates a new rule.
- tag
Type 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.
- block
Content String - Specifies the content of the returned page. Changing this creates a new rule.
- block
Content StringType - Specifies the type of the returned page. The options are
application/json
,text/html
, andtext/xml
. Changing this creates a new rule. - lock
Time Number - Specifies the lock duration. The value ranges from 0 seconds to 2^32 seconds. Changing this creates a new rule.
- tag
Category String - Specifies the category. The value is
referer
. Changing this creates a new rule. - tag
Contents List<String> - Specifies the category content. Changing this creates a new rule.
- tag
Index String - If
tag_type
is set tocookie
, this parameter indicates cookie name. Changing this creates a new rule. - timeouts Property Map
- waf
Ccattackprotection StringRule V1Id - ID of the rule.
Outputs
All input properties are implicitly available as output properties. Additionally, the WafCcattackprotectionRuleV1 resource produces the following output properties:
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.
- Action
Category string - Specifies the action. Changing this creates a new rule. Valid Options are:
- Block
Content string - Specifies the content of the returned page. Changing this creates a new rule.
- Block
Content stringType - Specifies the type of the returned page. The options are
application/json
,text/html
, andtext/xml
. Changing this creates a new rule. - Default bool
- Specifies whether the rule is the default CC attack protection rule.
- Limit
Num double - Specifies the number of requests allowed from a web visitor in a rate limiting period. Changing this creates a new rule.
- Limit
Period double - Specifies the rate limiting period. Changing this creates a new rule.
- Lock
Time double - Specifies the lock duration. The value ranges from 0 seconds to 2^32 seconds. Changing this creates a new rule.
- Policy
Id string - The WAF policy ID. Changing this creates a new rule.
- Tag
Category string - Specifies the category. The value is
referer
. Changing this creates a new rule. - Tag
Contents List<string> - Specifies the category content. Changing this creates a new rule.
- Tag
Index string - If
tag_type
is set tocookie
, this parameter indicates cookie name. Changing this creates a new rule. - Tag
Type string - Specifies the rate limit mode. Changing this creates a new rule. Valid Options are:
- Timeouts
Waf
Ccattackprotection Rule V1Timeouts - Url string
- Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
- Waf
Ccattackprotection stringRule V1Id - ID of the rule.
- Action
Category string - Specifies the action. Changing this creates a new rule. Valid Options are:
- Block
Content string - Specifies the content of the returned page. Changing this creates a new rule.
- Block
Content stringType - Specifies the type of the returned page. The options are
application/json
,text/html
, andtext/xml
. Changing this creates a new rule. - Default bool
- Specifies whether the rule is the default CC attack protection rule.
- Limit
Num float64 - Specifies the number of requests allowed from a web visitor in a rate limiting period. Changing this creates a new rule.
- Limit
Period float64 - Specifies the rate limiting period. Changing this creates a new rule.
- Lock
Time float64 - Specifies the lock duration. The value ranges from 0 seconds to 2^32 seconds. Changing this creates a new rule.
- Policy
Id string - The WAF policy ID. Changing this creates a new rule.
- Tag
Category string - Specifies the category. The value is
referer
. Changing this creates a new rule. - Tag
Contents []string - Specifies the category content. Changing this creates a new rule.
- Tag
Index string - If
tag_type
is set tocookie
, this parameter indicates cookie name. Changing this creates a new rule. - Tag
Type string - Specifies the rate limit mode. Changing this creates a new rule. Valid Options are:
- Timeouts
Waf
Ccattackprotection Rule V1Timeouts Args - Url string
- Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
- Waf
Ccattackprotection stringRule V1Id - ID of the rule.
- action
Category String - Specifies the action. Changing this creates a new rule. Valid Options are:
- block
Content String - Specifies the content of the returned page. Changing this creates a new rule.
- block
Content StringType - Specifies the type of the returned page. The options are
application/json
,text/html
, andtext/xml
. Changing this creates a new rule. - default_ Boolean
- Specifies whether the rule is the default CC attack protection rule.
- limit
Num Double - Specifies the number of requests allowed from a web visitor in a rate limiting period. Changing this creates a new rule.
- limit
Period Double - Specifies the rate limiting period. Changing this creates a new rule.
- lock
Time Double - Specifies the lock duration. The value ranges from 0 seconds to 2^32 seconds. Changing this creates a new rule.
- policy
Id String - The WAF policy ID. Changing this creates a new rule.
- tag
Category String - Specifies the category. The value is
referer
. Changing this creates a new rule. - tag
Contents List<String> - Specifies the category content. Changing this creates a new rule.
- tag
Index String - If
tag_type
is set tocookie
, this parameter indicates cookie name. Changing this creates a new rule. - tag
Type String - Specifies the rate limit mode. Changing this creates a new rule. Valid Options are:
- timeouts
Waf
Ccattackprotection Rule V1Timeouts - url String
- Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
- waf
Ccattackprotection StringRule V1Id - ID of the rule.
- action
Category string - Specifies the action. Changing this creates a new rule. Valid Options are:
- block
Content string - Specifies the content of the returned page. Changing this creates a new rule.
- block
Content stringType - Specifies the type of the returned page. The options are
application/json
,text/html
, andtext/xml
. Changing this creates a new rule. - default boolean
- Specifies whether the rule is the default CC attack protection rule.
- limit
Num number - Specifies the number of requests allowed from a web visitor in a rate limiting period. Changing this creates a new rule.
- limit
Period number - Specifies the rate limiting period. Changing this creates a new rule.
- lock
Time number - Specifies the lock duration. The value ranges from 0 seconds to 2^32 seconds. Changing this creates a new rule.
- policy
Id string - The WAF policy ID. Changing this creates a new rule.
- tag
Category string - Specifies the category. The value is
referer
. Changing this creates a new rule. - tag
Contents string[] - Specifies the category content. Changing this creates a new rule.
- tag
Index string - If
tag_type
is set tocookie
, this parameter indicates cookie name. Changing this creates a new rule. - tag
Type string - Specifies the rate limit mode. Changing this creates a new rule. Valid Options are:
- timeouts
Waf
Ccattackprotection Rule V1Timeouts - url string
- Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
- waf
Ccattackprotection stringRule V1Id - 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_ strtype - Specifies the type of the returned page. The options are
application/json
,text/html
, andtext/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 tocookie
, 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
Waf
Ccattackprotection Rule V1Timeouts Args - url str
- Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
- waf_
ccattackprotection_ strrule_ v1_ id - ID of the rule.
- action
Category String - Specifies the action. Changing this creates a new rule. Valid Options are:
- block
Content String - Specifies the content of the returned page. Changing this creates a new rule.
- block
Content StringType - Specifies the type of the returned page. The options are
application/json
,text/html
, andtext/xml
. Changing this creates a new rule. - default Boolean
- Specifies whether the rule is the default CC attack protection rule.
- limit
Num Number - Specifies the number of requests allowed from a web visitor in a rate limiting period. Changing this creates a new rule.
- limit
Period Number - Specifies the rate limiting period. Changing this creates a new rule.
- lock
Time Number - Specifies the lock duration. The value ranges from 0 seconds to 2^32 seconds. Changing this creates a new rule.
- policy
Id String - The WAF policy ID. Changing this creates a new rule.
- tag
Category String - Specifies the category. The value is
referer
. Changing this creates a new rule. - tag
Contents List<String> - Specifies the category content. Changing this creates a new rule.
- tag
Index String - If
tag_type
is set tocookie
, this parameter indicates cookie name. Changing this creates a new rule. - tag
Type 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.
- waf
Ccattackprotection StringRule V1Id - ID of the rule.
Supporting Types
WafCcattackprotectionRuleV1Timeouts, WafCcattackprotectionRuleV1TimeoutsArgs
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.