opentelekomcloud.WafDedicatedCcRuleV1
Explore with Pulumi AI
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<Waf
Dedicated Cc Rule V1Action> - 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 double - Rate limit frequency based on the number of requests. The value ranges from
1
to2,147,483,647
. Changing this creates a new rule. - Limit
Period double - Rate limit period, in seconds. The value ranges from
1
to3,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:
- Policy
Id string - The WAF policy ID. Changing this creates a new rule.
- Tag
Type 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<Waf
Dedicated Cc Rule V1Condition> - 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.
- Lock
Time double - Block duration, in seconds. The value ranges from
0
to65,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 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 - User identifier. Changing this creates a new rule.
If
tag_type
is set tocookie
, this parameter indicates cookie name. Iftag_type
is set toheader
, this parameter indicates header name. - Timeouts
Waf
Dedicated Cc Rule V1Timeouts - Unlock
Num double - Allowable frequency based on the number of requests. The value ranges from
0
to2,147,483,647
. This parameter is required only when the protectionaction
type isdynamic_block
. Changing this creates a new rule. - Waf
Dedicated stringCc Rule V1Id - ID of the rule.
- Actions
[]Waf
Dedicated Cc Rule V1Action Args - 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 float64 - Rate limit frequency based on the number of requests. The value ranges from
1
to2,147,483,647
. Changing this creates a new rule. - Limit
Period float64 - Rate limit period, in seconds. The value ranges from
1
to3,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:
- Policy
Id string - The WAF policy ID. Changing this creates a new rule.
- Tag
Type 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
[]Waf
Dedicated Cc Rule V1Condition Args - 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.
- Lock
Time float64 - Block duration, in seconds. The value ranges from
0
to65,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 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 - User identifier. Changing this creates a new rule.
If
tag_type
is set tocookie
, this parameter indicates cookie name. Iftag_type
is set toheader
, this parameter indicates header name. - Timeouts
Waf
Dedicated Cc Rule V1Timeouts Args - Unlock
Num float64 - Allowable frequency based on the number of requests. The value ranges from
0
to2,147,483,647
. This parameter is required only when the protectionaction
type isdynamic_block
. Changing this creates a new rule. - Waf
Dedicated stringCc Rule V1Id - ID of the rule.
- actions
List<Waf
Dedicated Cc Rule V1Action> - 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 Double - Rate limit frequency based on the number of requests. The value ranges from
1
to2,147,483,647
. Changing this creates a new rule. - limit
Period Double - Rate limit period, in seconds. The value ranges from
1
to3,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:
- policy
Id String - The WAF policy ID. Changing this creates a new rule.
- tag
Type 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<Waf
Dedicated Cc Rule V1Condition> - 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.
- lock
Time Double - Block duration, in seconds. The value ranges from
0
to65,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 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 - User identifier. Changing this creates a new rule.
If
tag_type
is set tocookie
, this parameter indicates cookie name. Iftag_type
is set toheader
, this parameter indicates header name. - timeouts
Waf
Dedicated Cc Rule V1Timeouts - unlock
Num Double - Allowable frequency based on the number of requests. The value ranges from
0
to2,147,483,647
. This parameter is required only when the protectionaction
type isdynamic_block
. Changing this creates a new rule. - waf
Dedicated StringCc Rule V1Id - ID of the rule.
- actions
Waf
Dedicated Cc Rule V1Action[] - 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 number - Rate limit frequency based on the number of requests. The value ranges from
1
to2,147,483,647
. Changing this creates a new rule. - limit
Period number - Rate limit period, in seconds. The value ranges from
1
to3,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:
- policy
Id string - The WAF policy ID. Changing this creates a new rule.
- tag
Type 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
Waf
Dedicated Cc Rule V1Condition[] - 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.
- lock
Time number - Block duration, in seconds. The value ranges from
0
to65,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 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 - User identifier. Changing this creates a new rule.
If
tag_type
is set tocookie
, this parameter indicates cookie name. Iftag_type
is set toheader
, this parameter indicates header name. - timeouts
Waf
Dedicated Cc Rule V1Timeouts - unlock
Num number - Allowable frequency based on the number of requests. The value ranges from
0
to2,147,483,647
. This parameter is required only when the protectionaction
type isdynamic_block
. Changing this creates a new rule. - waf
Dedicated stringCc Rule V1Id - ID of the rule.
- actions
Sequence[Waf
Dedicated Cc Rule V1Action Args] - 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
to2,147,483,647
. Changing this creates a new rule. - limit_
period float - Rate limit period, in seconds. The value ranges from
1
to3,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[Waf
Dedicated Cc Rule V1Condition Args] - 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
to65,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 tocookie
, this parameter indicates cookie name. Iftag_type
is set toheader
, this parameter indicates header name. - timeouts
Waf
Dedicated Cc Rule V1Timeouts Args - unlock_
num float - Allowable frequency based on the number of requests. The value ranges from
0
to2,147,483,647
. This parameter is required only when the protectionaction
type isdynamic_block
. Changing this creates a new rule. - waf_
dedicated_ strcc_ rule_ v1_ id - 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: - limit
Num Number - Rate limit frequency based on the number of requests. The value ranges from
1
to2,147,483,647
. Changing this creates a new rule. - limit
Period Number - Rate limit period, in seconds. The value ranges from
1
to3,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:
- policy
Id String - The WAF policy ID. Changing this creates a new rule.
- tag
Type 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.
- lock
Time Number - Block duration, in seconds. The value ranges from
0
to65,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 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 - User identifier. Changing this creates a new rule.
If
tag_type
is set tocookie
, this parameter indicates cookie name. Iftag_type
is set toheader
, this parameter indicates header name. - timeouts Property Map
- unlock
Num Number - Allowable frequency based on the number of requests. The value ranges from
0
to2,147,483,647
. This parameter is required only when the protectionaction
type isdynamic_block
. Changing this creates a new rule. - waf
Dedicated StringCc Rule V1Id - ID of the rule.
Outputs
All input properties are implicitly available as output properties. Additionally, the WafDedicatedCcRuleV1 resource produces the following output properties:
- created_
at float - Timestamp the rule is created.
- id str
- The provider-assigned unique ID for this managed resource.
- status float
- 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.
- Actions
List<Waf
Dedicated Cc Rule V1Action> - 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<Waf
Dedicated Cc Rule V1Condition> - Rate limit conditions of the CC protection rule. Changing this creates a new rule.
The
conditions
block supports: - Created
At double - Timestamp the rule is created.
- Description string
- Rule description. Changing this creates a new rule.
- Limit
Num double - Rate limit frequency based on the number of requests. The value ranges from
1
to2,147,483,647
. Changing this creates a new rule. - Limit
Period double - Rate limit period, in seconds. The value ranges from
1
to3,600
. Changing this creates a new rule. - Lock
Time double - Block duration, in seconds. The value ranges from
0
to65,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:
- Policy
Id string - The WAF policy ID. Changing this creates a new rule.
- Status double
- Rule status.
- 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 - User identifier. Changing this creates a new rule.
If
tag_type
is set tocookie
, this parameter indicates cookie name. Iftag_type
is set toheader
, this parameter indicates header name. - Tag
Type string - Rate limit mode. Changing this creates a new rule. Valid Options are:
- Timeouts
Waf
Dedicated Cc Rule V1Timeouts - Unlock
Num double - Allowable frequency based on the number of requests. The value ranges from
0
to2,147,483,647
. This parameter is required only when the protectionaction
type isdynamic_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.
- Waf
Dedicated stringCc Rule V1Id - ID of the rule.
- Actions
[]Waf
Dedicated Cc Rule V1Action Args - Protection action to take if the number of requests reaches the upper limit. Changing this creates a new rule.
The
conditions
block supports: - Conditions
[]Waf
Dedicated Cc Rule V1Condition Args - Rate limit conditions of the CC protection rule. Changing this creates a new rule.
The
conditions
block supports: - Created
At float64 - Timestamp the rule is created.
- Description string
- Rule description. Changing this creates a new rule.
- Limit
Num float64 - Rate limit frequency based on the number of requests. The value ranges from
1
to2,147,483,647
. Changing this creates a new rule. - Limit
Period float64 - Rate limit period, in seconds. The value ranges from
1
to3,600
. Changing this creates a new rule. - Lock
Time float64 - Block duration, in seconds. The value ranges from
0
to65,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:
- Policy
Id string - The WAF policy ID. Changing this creates a new rule.
- Status float64
- Rule status.
- 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 - User identifier. Changing this creates a new rule.
If
tag_type
is set tocookie
, this parameter indicates cookie name. Iftag_type
is set toheader
, this parameter indicates header name. - Tag
Type string - Rate limit mode. Changing this creates a new rule. Valid Options are:
- Timeouts
Waf
Dedicated Cc Rule V1Timeouts Args - Unlock
Num float64 - Allowable frequency based on the number of requests. The value ranges from
0
to2,147,483,647
. This parameter is required only when the protectionaction
type isdynamic_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.
- Waf
Dedicated stringCc Rule V1Id - ID of the rule.
- actions
List<Waf
Dedicated Cc Rule V1Action> - 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<Waf
Dedicated Cc Rule V1Condition> - Rate limit conditions of the CC protection rule. Changing this creates a new rule.
The
conditions
block supports: - created
At Double - Timestamp the rule is created.
- description String
- Rule description. Changing this creates a new rule.
- limit
Num Double - Rate limit frequency based on the number of requests. The value ranges from
1
to2,147,483,647
. Changing this creates a new rule. - limit
Period Double - Rate limit period, in seconds. The value ranges from
1
to3,600
. Changing this creates a new rule. - lock
Time Double - Block duration, in seconds. The value ranges from
0
to65,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:
- policy
Id String - The WAF policy ID. Changing this creates a new rule.
- status Double
- Rule status.
- 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 - User identifier. Changing this creates a new rule.
If
tag_type
is set tocookie
, this parameter indicates cookie name. Iftag_type
is set toheader
, this parameter indicates header name. - tag
Type String - Rate limit mode. Changing this creates a new rule. Valid Options are:
- timeouts
Waf
Dedicated Cc Rule V1Timeouts - unlock
Num Double - Allowable frequency based on the number of requests. The value ranges from
0
to2,147,483,647
. This parameter is required only when the protectionaction
type isdynamic_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.
- waf
Dedicated StringCc Rule V1Id - ID of the rule.
- actions
Waf
Dedicated Cc Rule V1Action[] - Protection action to take if the number of requests reaches the upper limit. Changing this creates a new rule.
The
conditions
block supports: - conditions
Waf
Dedicated Cc Rule V1Condition[] - Rate limit conditions of the CC protection rule. Changing this creates a new rule.
The
conditions
block supports: - created
At number - Timestamp the rule is created.
- description string
- Rule description. Changing this creates a new rule.
- limit
Num number - Rate limit frequency based on the number of requests. The value ranges from
1
to2,147,483,647
. Changing this creates a new rule. - limit
Period number - Rate limit period, in seconds. The value ranges from
1
to3,600
. Changing this creates a new rule. - lock
Time number - Block duration, in seconds. The value ranges from
0
to65,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:
- policy
Id string - The WAF policy ID. Changing this creates a new rule.
- status number
- Rule status.
- 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 - User identifier. Changing this creates a new rule.
If
tag_type
is set tocookie
, this parameter indicates cookie name. Iftag_type
is set toheader
, this parameter indicates header name. - tag
Type string - Rate limit mode. Changing this creates a new rule. Valid Options are:
- timeouts
Waf
Dedicated Cc Rule V1Timeouts - unlock
Num number - Allowable frequency based on the number of requests. The value ranges from
0
to2,147,483,647
. This parameter is required only when the protectionaction
type isdynamic_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.
- waf
Dedicated stringCc Rule V1Id - ID of the rule.
- actions
Sequence[Waf
Dedicated Cc Rule V1Action Args] - 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[Waf
Dedicated Cc Rule V1Condition Args] - 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
to2,147,483,647
. Changing this creates a new rule. - limit_
period float - Rate limit period, in seconds. The value ranges from
1
to3,600
. Changing this creates a new rule. - lock_
time float - Block duration, in seconds. The value ranges from
0
to65,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 tocookie
, this parameter indicates cookie name. Iftag_type
is set toheader
, this parameter indicates header name. - tag_
type str - Rate limit mode. Changing this creates a new rule. Valid Options are:
- timeouts
Waf
Dedicated Cc Rule V1Timeouts Args - unlock_
num float - Allowable frequency based on the number of requests. The value ranges from
0
to2,147,483,647
. This parameter is required only when the protectionaction
type isdynamic_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_ strcc_ rule_ v1_ id - 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: - created
At Number - Timestamp the rule is created.
- description String
- Rule description. Changing this creates a new rule.
- limit
Num Number - Rate limit frequency based on the number of requests. The value ranges from
1
to2,147,483,647
. Changing this creates a new rule. - limit
Period Number - Rate limit period, in seconds. The value ranges from
1
to3,600
. Changing this creates a new rule. - lock
Time Number - Block duration, in seconds. The value ranges from
0
to65,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:
- policy
Id String - The WAF policy ID. Changing this creates a new rule.
- status Number
- Rule status.
- 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 - User identifier. Changing this creates a new rule.
If
tag_type
is set tocookie
, this parameter indicates cookie name. Iftag_type
is set toheader
, this parameter indicates header name. - tag
Type String - Rate limit mode. Changing this creates a new rule. Valid Options are:
- timeouts Property Map
- unlock
Num Number - Allowable frequency based on the number of requests. The value ranges from
0
to2,147,483,647
. This parameter is required only when the protectionaction
type isdynamic_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.
- waf
Dedicated StringCc Rule V1Id - 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.
- Content
Type 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.
- Content
Type 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.
- content
Type 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.
- content
Type 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.
- content
Type 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
, orheader
. - Logic
Operation string - Logic for matching the condition.
- If the category is
url
, the optional operations arecontain
,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
andlen_not_equal
- If the category is
ip
, the optional operations are:equal
,not_equal
,equal_any
andnot_equal_all
- If the category is
params
,cookie
andheader
, 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
andnot_exist
Changing this creates a new rule.
- If the category is
- Contents List<string>
- Content of the conditions. This parameter is mandatory when the suffix of
logic_operation
is notany
orall
. Changing this creates a new rule. - Index string
- Subfield. When
category
is set toparams
,cookie
, orheader
, set this parameter based on site requirements. This parameter is mandatory. Changing this creates a new rule. - Value
List stringId - Reference table ID. This parameter is mandatory when the suffix of
logic_operation
isany
orall
. 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
, orheader
. - Logic
Operation string - Logic for matching the condition.
- If the category is
url
, the optional operations arecontain
,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
andlen_not_equal
- If the category is
ip
, the optional operations are:equal
,not_equal
,equal_any
andnot_equal_all
- If the category is
params
,cookie
andheader
, 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
andnot_exist
Changing this creates a new rule.
- If the category is
- Contents []string
- Content of the conditions. This parameter is mandatory when the suffix of
logic_operation
is notany
orall
. Changing this creates a new rule. - Index string
- Subfield. When
category
is set toparams
,cookie
, orheader
, set this parameter based on site requirements. This parameter is mandatory. Changing this creates a new rule. - Value
List stringId - Reference table ID. This parameter is mandatory when the suffix of
logic_operation
isany
orall
. 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
, orheader
. - logic
Operation String - Logic for matching the condition.
- If the category is
url
, the optional operations arecontain
,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
andlen_not_equal
- If the category is
ip
, the optional operations are:equal
,not_equal
,equal_any
andnot_equal_all
- If the category is
params
,cookie
andheader
, 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
andnot_exist
Changing this creates a new rule.
- If the category is
- contents List<String>
- Content of the conditions. This parameter is mandatory when the suffix of
logic_operation
is notany
orall
. Changing this creates a new rule. - index String
- Subfield. When
category
is set toparams
,cookie
, orheader
, set this parameter based on site requirements. This parameter is mandatory. Changing this creates a new rule. - value
List StringId - Reference table ID. This parameter is mandatory when the suffix of
logic_operation
isany
orall
. 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
, orheader
. - logic
Operation string - Logic for matching the condition.
- If the category is
url
, the optional operations arecontain
,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
andlen_not_equal
- If the category is
ip
, the optional operations are:equal
,not_equal
,equal_any
andnot_equal_all
- If the category is
params
,cookie
andheader
, 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
andnot_exist
Changing this creates a new rule.
- If the category is
- contents string[]
- Content of the conditions. This parameter is mandatory when the suffix of
logic_operation
is notany
orall
. Changing this creates a new rule. - index string
- Subfield. When
category
is set toparams
,cookie
, orheader
, set this parameter based on site requirements. This parameter is mandatory. Changing this creates a new rule. - value
List stringId - Reference table ID. This parameter is mandatory when the suffix of
logic_operation
isany
orall
. 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
, orheader
. - logic_
operation str - Logic for matching the condition.
- If the category is
url
, the optional operations arecontain
,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
andlen_not_equal
- If the category is
ip
, the optional operations are:equal
,not_equal
,equal_any
andnot_equal_all
- If the category is
params
,cookie
andheader
, 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
andnot_exist
Changing this creates a new rule.
- If the category is
- contents Sequence[str]
- Content of the conditions. This parameter is mandatory when the suffix of
logic_operation
is notany
orall
. Changing this creates a new rule. - index str
- Subfield. When
category
is set toparams
,cookie
, orheader
, set this parameter based on site requirements. This parameter is mandatory. Changing this creates a new rule. - value_
list_ strid - Reference table ID. This parameter is mandatory when the suffix of
logic_operation
isany
orall
. 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
, orheader
. - logic
Operation String - Logic for matching the condition.
- If the category is
url
, the optional operations arecontain
,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
andlen_not_equal
- If the category is
ip
, the optional operations are:equal
,not_equal
,equal_any
andnot_equal_all
- If the category is
params
,cookie
andheader
, 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
andnot_exist
Changing this creates a new rule.
- If the category is
- contents List<String>
- Content of the conditions. This parameter is mandatory when the suffix of
logic_operation
is notany
orall
. Changing this creates a new rule. - index String
- Subfield. When
category
is set toparams
,cookie
, orheader
, set this parameter based on site requirements. This parameter is mandatory. Changing this creates a new rule. - value
List StringId - Reference table ID. This parameter is mandatory when the suffix of
logic_operation
isany
orall
. The reference table type must be the same as the category type. Changing this creates a new rule.
WafDedicatedCcRuleV1Timeouts, WafDedicatedCcRuleV1TimeoutsArgs
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.