tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.WafCc
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Provides a resource to create a waf cc
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.WafCc("example", {
domain: "www.demo.com",
status: 1,
advance: "0",
limit: "60",
interval: "60",
url: "/cc_demo",
matchFunc: 0,
actionType: "22",
priority: 50,
validTime: 600,
edition: "sparta-waf",
type: 1,
optionsArr: JSON.stringify([{
key: "Method",
args: ["=R0VU"],
match: "0",
encodeflag: true,
}]),
});
import pulumi
import json
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.WafCc("example",
domain="www.demo.com",
status=1,
advance="0",
limit="60",
interval="60",
url="/cc_demo",
match_func=0,
action_type="22",
priority=50,
valid_time=600,
edition="sparta-waf",
type=1,
options_arr=json.dumps([{
"key": "Method",
"args": ["=R0VU"],
"match": "0",
"encodeflag": True,
}]))
package main
import (
"encoding/json"
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
tmpJSON0, err := json.Marshal([]map[string]interface{}{
map[string]interface{}{
"key": "Method",
"args": []string{
"=R0VU",
},
"match": "0",
"encodeflag": true,
},
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
_, err = tencentcloud.NewWafCc(ctx, "example", &tencentcloud.WafCcArgs{
Domain: pulumi.String("www.demo.com"),
Status: pulumi.Float64(1),
Advance: pulumi.String("0"),
Limit: pulumi.String("60"),
Interval: pulumi.String("60"),
Url: pulumi.String("/cc_demo"),
MatchFunc: pulumi.Float64(0),
ActionType: pulumi.String("22"),
Priority: pulumi.Float64(50),
ValidTime: pulumi.Float64(600),
Edition: pulumi.String("sparta-waf"),
Type: pulumi.Float64(1),
OptionsArr: pulumi.String(json0),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.WafCc("example", new()
{
Domain = "www.demo.com",
Status = 1,
Advance = "0",
Limit = "60",
Interval = "60",
Url = "/cc_demo",
MatchFunc = 0,
ActionType = "22",
Priority = 50,
ValidTime = 600,
Edition = "sparta-waf",
Type = 1,
OptionsArr = JsonSerializer.Serialize(new[]
{
new Dictionary<string, object?>
{
["key"] = "Method",
["args"] = new[]
{
"=R0VU",
},
["match"] = "0",
["encodeflag"] = true,
},
}),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.WafCc;
import com.pulumi.tencentcloud.WafCcArgs;
import static com.pulumi.codegen.internal.Serialization.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new WafCc("example", WafCcArgs.builder()
.domain("www.demo.com")
.status(1)
.advance("0")
.limit("60")
.interval("60")
.url("/cc_demo")
.matchFunc(0)
.actionType("22")
.priority(50)
.validTime(600)
.edition("sparta-waf")
.type(1)
.optionsArr(serializeJson(
jsonArray(jsonObject(
jsonProperty("key", "Method"),
jsonProperty("args", jsonArray("=R0VU")),
jsonProperty("match", "0"),
jsonProperty("encodeflag", true)
))))
.build());
}
}
resources:
example:
type: tencentcloud:WafCc
properties:
domain: www.demo.com
status: 1
advance: '0'
limit: '60'
interval: '60'
url: /cc_demo
matchFunc: 0
actionType: '22'
priority: 50
validTime: 600
edition: sparta-waf
type: 1
optionsArr:
fn::toJSON:
- key: Method
args:
- =R0VU
match: '0'
encodeflag: true
Create WafCc Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WafCc(name: string, args: WafCcArgs, opts?: CustomResourceOptions);
@overload
def WafCc(resource_name: str,
args: WafCcArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WafCc(resource_name: str,
opts: Optional[ResourceOptions] = None,
status: Optional[float] = None,
advance: Optional[str] = None,
domain: Optional[str] = None,
edition: Optional[str] = None,
action_type: Optional[str] = None,
interval: Optional[str] = None,
limit: Optional[str] = None,
match_func: Optional[float] = None,
valid_time: Optional[float] = None,
url: Optional[str] = None,
priority: Optional[float] = None,
event_id: Optional[str] = None,
session_applieds: Optional[Sequence[float]] = None,
type: Optional[float] = None,
options_arr: Optional[str] = None,
name: Optional[str] = None,
waf_cc_id: Optional[str] = None)
func NewWafCc(ctx *Context, name string, args WafCcArgs, opts ...ResourceOption) (*WafCc, error)
public WafCc(string name, WafCcArgs args, CustomResourceOptions? opts = null)
type: tencentcloud:WafCc
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 WafCcArgs
- 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 WafCcArgs
- 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 WafCcArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WafCcArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WafCcArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
WafCc 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 WafCc resource accepts the following input properties:
- Action
Type string - Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
- Advance string
- Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
- Domain string
- Domain.
- Edition string
- WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.
- Interval string
- CC detection cycle.
- Limit string
- CC detection threshold.
- Match
Func double - Match method, 0(equal), 1(prefix), 2(contains), 3(not equal), 6(suffix), 7(not contains).
- Priority double
- Rule Priority.
- Status double
- Rule Status, 0 rule close, 1 rule open.
- Url string
- Detection URL.
- Valid
Time double - Action ValidTime, minute unit. Min: 60, Max: 604800.
- Event
Id string - Event ID.
- Name string
- Rule Name.
- Options
Arr string - JSON serialized string of CC matching conditions, example:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key optional values are Method, Post, Referer, Cookie, User-Agent, CustomHeader Match optional values are, when Key is Method, optional values are 0 (equal), 3 (not equal). When the key is Post, the optional values are 0 (equal to), 3 (not equal to), when the key is Cookie, the optional values are 0 (equal to), 2 (included), 3 (not equal to), 7 (not included), When the key is Referer, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is Cookie, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), When the key is User-Agent, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is CustomHeader, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty). args is used to indicate the matching content. You need to set encodeflag to true. When the Key is Post, Cookie, or CustomHeader, use the equal sign = to concatenate the Key and Value, and encode them using Base64, similar to YWJj=YWJj. When the Key is Referer or User-Agent, use the equal sign = to concatenate the Value, similar to =YWJj.
- Session
Applieds List<double> - Session ID that needs to be enabled for the rule.
- Type double
- Operate Type.
- Waf
Cc stringId - ID of the resource.
- Action
Type string - Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
- Advance string
- Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
- Domain string
- Domain.
- Edition string
- WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.
- Interval string
- CC detection cycle.
- Limit string
- CC detection threshold.
- Match
Func float64 - Match method, 0(equal), 1(prefix), 2(contains), 3(not equal), 6(suffix), 7(not contains).
- Priority float64
- Rule Priority.
- Status float64
- Rule Status, 0 rule close, 1 rule open.
- Url string
- Detection URL.
- Valid
Time float64 - Action ValidTime, minute unit. Min: 60, Max: 604800.
- Event
Id string - Event ID.
- Name string
- Rule Name.
- Options
Arr string - JSON serialized string of CC matching conditions, example:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key optional values are Method, Post, Referer, Cookie, User-Agent, CustomHeader Match optional values are, when Key is Method, optional values are 0 (equal), 3 (not equal). When the key is Post, the optional values are 0 (equal to), 3 (not equal to), when the key is Cookie, the optional values are 0 (equal to), 2 (included), 3 (not equal to), 7 (not included), When the key is Referer, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is Cookie, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), When the key is User-Agent, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is CustomHeader, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty). args is used to indicate the matching content. You need to set encodeflag to true. When the Key is Post, Cookie, or CustomHeader, use the equal sign = to concatenate the Key and Value, and encode them using Base64, similar to YWJj=YWJj. When the Key is Referer or User-Agent, use the equal sign = to concatenate the Value, similar to =YWJj.
- Session
Applieds []float64 - Session ID that needs to be enabled for the rule.
- Type float64
- Operate Type.
- Waf
Cc stringId - ID of the resource.
- action
Type String - Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
- advance String
- Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
- domain String
- Domain.
- edition String
- WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.
- interval String
- CC detection cycle.
- limit String
- CC detection threshold.
- match
Func Double - Match method, 0(equal), 1(prefix), 2(contains), 3(not equal), 6(suffix), 7(not contains).
- priority Double
- Rule Priority.
- status Double
- Rule Status, 0 rule close, 1 rule open.
- url String
- Detection URL.
- valid
Time Double - Action ValidTime, minute unit. Min: 60, Max: 604800.
- event
Id String - Event ID.
- name String
- Rule Name.
- options
Arr String - JSON serialized string of CC matching conditions, example:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key optional values are Method, Post, Referer, Cookie, User-Agent, CustomHeader Match optional values are, when Key is Method, optional values are 0 (equal), 3 (not equal). When the key is Post, the optional values are 0 (equal to), 3 (not equal to), when the key is Cookie, the optional values are 0 (equal to), 2 (included), 3 (not equal to), 7 (not included), When the key is Referer, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is Cookie, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), When the key is User-Agent, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is CustomHeader, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty). args is used to indicate the matching content. You need to set encodeflag to true. When the Key is Post, Cookie, or CustomHeader, use the equal sign = to concatenate the Key and Value, and encode them using Base64, similar to YWJj=YWJj. When the Key is Referer or User-Agent, use the equal sign = to concatenate the Value, similar to =YWJj.
- session
Applieds List<Double> - Session ID that needs to be enabled for the rule.
- type Double
- Operate Type.
- waf
Cc StringId - ID of the resource.
- action
Type string - Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
- advance string
- Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
- domain string
- Domain.
- edition string
- WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.
- interval string
- CC detection cycle.
- limit string
- CC detection threshold.
- match
Func number - Match method, 0(equal), 1(prefix), 2(contains), 3(not equal), 6(suffix), 7(not contains).
- priority number
- Rule Priority.
- status number
- Rule Status, 0 rule close, 1 rule open.
- url string
- Detection URL.
- valid
Time number - Action ValidTime, minute unit. Min: 60, Max: 604800.
- event
Id string - Event ID.
- name string
- Rule Name.
- options
Arr string - JSON serialized string of CC matching conditions, example:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key optional values are Method, Post, Referer, Cookie, User-Agent, CustomHeader Match optional values are, when Key is Method, optional values are 0 (equal), 3 (not equal). When the key is Post, the optional values are 0 (equal to), 3 (not equal to), when the key is Cookie, the optional values are 0 (equal to), 2 (included), 3 (not equal to), 7 (not included), When the key is Referer, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is Cookie, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), When the key is User-Agent, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is CustomHeader, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty). args is used to indicate the matching content. You need to set encodeflag to true. When the Key is Post, Cookie, or CustomHeader, use the equal sign = to concatenate the Key and Value, and encode them using Base64, similar to YWJj=YWJj. When the Key is Referer or User-Agent, use the equal sign = to concatenate the Value, similar to =YWJj.
- session
Applieds number[] - Session ID that needs to be enabled for the rule.
- type number
- Operate Type.
- waf
Cc stringId - ID of the resource.
- action_
type str - Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
- advance str
- Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
- domain str
- Domain.
- edition str
- WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.
- interval str
- CC detection cycle.
- limit str
- CC detection threshold.
- match_
func float - Match method, 0(equal), 1(prefix), 2(contains), 3(not equal), 6(suffix), 7(not contains).
- priority float
- Rule Priority.
- status float
- Rule Status, 0 rule close, 1 rule open.
- url str
- Detection URL.
- valid_
time float - Action ValidTime, minute unit. Min: 60, Max: 604800.
- event_
id str - Event ID.
- name str
- Rule Name.
- options_
arr str - JSON serialized string of CC matching conditions, example:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key optional values are Method, Post, Referer, Cookie, User-Agent, CustomHeader Match optional values are, when Key is Method, optional values are 0 (equal), 3 (not equal). When the key is Post, the optional values are 0 (equal to), 3 (not equal to), when the key is Cookie, the optional values are 0 (equal to), 2 (included), 3 (not equal to), 7 (not included), When the key is Referer, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is Cookie, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), When the key is User-Agent, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is CustomHeader, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty). args is used to indicate the matching content. You need to set encodeflag to true. When the Key is Post, Cookie, or CustomHeader, use the equal sign = to concatenate the Key and Value, and encode them using Base64, similar to YWJj=YWJj. When the Key is Referer or User-Agent, use the equal sign = to concatenate the Value, similar to =YWJj.
- session_
applieds Sequence[float] - Session ID that needs to be enabled for the rule.
- type float
- Operate Type.
- waf_
cc_ strid - ID of the resource.
- action
Type String - Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
- advance String
- Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
- domain String
- Domain.
- edition String
- WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.
- interval String
- CC detection cycle.
- limit String
- CC detection threshold.
- match
Func Number - Match method, 0(equal), 1(prefix), 2(contains), 3(not equal), 6(suffix), 7(not contains).
- priority Number
- Rule Priority.
- status Number
- Rule Status, 0 rule close, 1 rule open.
- url String
- Detection URL.
- valid
Time Number - Action ValidTime, minute unit. Min: 60, Max: 604800.
- event
Id String - Event ID.
- name String
- Rule Name.
- options
Arr String - JSON serialized string of CC matching conditions, example:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key optional values are Method, Post, Referer, Cookie, User-Agent, CustomHeader Match optional values are, when Key is Method, optional values are 0 (equal), 3 (not equal). When the key is Post, the optional values are 0 (equal to), 3 (not equal to), when the key is Cookie, the optional values are 0 (equal to), 2 (included), 3 (not equal to), 7 (not included), When the key is Referer, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is Cookie, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), When the key is User-Agent, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is CustomHeader, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty). args is used to indicate the matching content. You need to set encodeflag to true. When the Key is Post, Cookie, or CustomHeader, use the equal sign = to concatenate the Key and Value, and encode them using Base64, similar to YWJj=YWJj. When the Key is Referer or User-Agent, use the equal sign = to concatenate the Value, similar to =YWJj.
- session
Applieds List<Number> - Session ID that needs to be enabled for the rule.
- type Number
- Operate Type.
- waf
Cc StringId - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the WafCc resource produces the following output properties:
Look up Existing WafCc Resource
Get an existing WafCc 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?: WafCcState, opts?: CustomResourceOptions): WafCc
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action_type: Optional[str] = None,
advance: Optional[str] = None,
domain: Optional[str] = None,
edition: Optional[str] = None,
event_id: Optional[str] = None,
interval: Optional[str] = None,
limit: Optional[str] = None,
match_func: Optional[float] = None,
name: Optional[str] = None,
options_arr: Optional[str] = None,
priority: Optional[float] = None,
rule_id: Optional[str] = None,
session_applieds: Optional[Sequence[float]] = None,
status: Optional[float] = None,
type: Optional[float] = None,
url: Optional[str] = None,
valid_time: Optional[float] = None,
waf_cc_id: Optional[str] = None) -> WafCc
func GetWafCc(ctx *Context, name string, id IDInput, state *WafCcState, opts ...ResourceOption) (*WafCc, error)
public static WafCc Get(string name, Input<string> id, WafCcState? state, CustomResourceOptions? opts = null)
public static WafCc get(String name, Output<String> id, WafCcState state, CustomResourceOptions options)
resources: _: type: tencentcloud:WafCc 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
Type string - Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
- Advance string
- Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
- Domain string
- Domain.
- Edition string
- WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.
- Event
Id string - Event ID.
- Interval string
- CC detection cycle.
- Limit string
- CC detection threshold.
- Match
Func double - Match method, 0(equal), 1(prefix), 2(contains), 3(not equal), 6(suffix), 7(not contains).
- Name string
- Rule Name.
- Options
Arr string - JSON serialized string of CC matching conditions, example:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key optional values are Method, Post, Referer, Cookie, User-Agent, CustomHeader Match optional values are, when Key is Method, optional values are 0 (equal), 3 (not equal). When the key is Post, the optional values are 0 (equal to), 3 (not equal to), when the key is Cookie, the optional values are 0 (equal to), 2 (included), 3 (not equal to), 7 (not included), When the key is Referer, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is Cookie, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), When the key is User-Agent, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is CustomHeader, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty). args is used to indicate the matching content. You need to set encodeflag to true. When the Key is Post, Cookie, or CustomHeader, use the equal sign = to concatenate the Key and Value, and encode them using Base64, similar to YWJj=YWJj. When the Key is Referer or User-Agent, use the equal sign = to concatenate the Value, similar to =YWJj.
- Priority double
- Rule Priority.
- Rule
Id string - Rule ID.
- Session
Applieds List<double> - Session ID that needs to be enabled for the rule.
- Status double
- Rule Status, 0 rule close, 1 rule open.
- Type double
- Operate Type.
- Url string
- Detection URL.
- Valid
Time double - Action ValidTime, minute unit. Min: 60, Max: 604800.
- Waf
Cc stringId - ID of the resource.
- Action
Type string - Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
- Advance string
- Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
- Domain string
- Domain.
- Edition string
- WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.
- Event
Id string - Event ID.
- Interval string
- CC detection cycle.
- Limit string
- CC detection threshold.
- Match
Func float64 - Match method, 0(equal), 1(prefix), 2(contains), 3(not equal), 6(suffix), 7(not contains).
- Name string
- Rule Name.
- Options
Arr string - JSON serialized string of CC matching conditions, example:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key optional values are Method, Post, Referer, Cookie, User-Agent, CustomHeader Match optional values are, when Key is Method, optional values are 0 (equal), 3 (not equal). When the key is Post, the optional values are 0 (equal to), 3 (not equal to), when the key is Cookie, the optional values are 0 (equal to), 2 (included), 3 (not equal to), 7 (not included), When the key is Referer, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is Cookie, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), When the key is User-Agent, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is CustomHeader, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty). args is used to indicate the matching content. You need to set encodeflag to true. When the Key is Post, Cookie, or CustomHeader, use the equal sign = to concatenate the Key and Value, and encode them using Base64, similar to YWJj=YWJj. When the Key is Referer or User-Agent, use the equal sign = to concatenate the Value, similar to =YWJj.
- Priority float64
- Rule Priority.
- Rule
Id string - Rule ID.
- Session
Applieds []float64 - Session ID that needs to be enabled for the rule.
- Status float64
- Rule Status, 0 rule close, 1 rule open.
- Type float64
- Operate Type.
- Url string
- Detection URL.
- Valid
Time float64 - Action ValidTime, minute unit. Min: 60, Max: 604800.
- Waf
Cc stringId - ID of the resource.
- action
Type String - Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
- advance String
- Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
- domain String
- Domain.
- edition String
- WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.
- event
Id String - Event ID.
- interval String
- CC detection cycle.
- limit String
- CC detection threshold.
- match
Func Double - Match method, 0(equal), 1(prefix), 2(contains), 3(not equal), 6(suffix), 7(not contains).
- name String
- Rule Name.
- options
Arr String - JSON serialized string of CC matching conditions, example:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key optional values are Method, Post, Referer, Cookie, User-Agent, CustomHeader Match optional values are, when Key is Method, optional values are 0 (equal), 3 (not equal). When the key is Post, the optional values are 0 (equal to), 3 (not equal to), when the key is Cookie, the optional values are 0 (equal to), 2 (included), 3 (not equal to), 7 (not included), When the key is Referer, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is Cookie, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), When the key is User-Agent, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is CustomHeader, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty). args is used to indicate the matching content. You need to set encodeflag to true. When the Key is Post, Cookie, or CustomHeader, use the equal sign = to concatenate the Key and Value, and encode them using Base64, similar to YWJj=YWJj. When the Key is Referer or User-Agent, use the equal sign = to concatenate the Value, similar to =YWJj.
- priority Double
- Rule Priority.
- rule
Id String - Rule ID.
- session
Applieds List<Double> - Session ID that needs to be enabled for the rule.
- status Double
- Rule Status, 0 rule close, 1 rule open.
- type Double
- Operate Type.
- url String
- Detection URL.
- valid
Time Double - Action ValidTime, minute unit. Min: 60, Max: 604800.
- waf
Cc StringId - ID of the resource.
- action
Type string - Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
- advance string
- Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
- domain string
- Domain.
- edition string
- WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.
- event
Id string - Event ID.
- interval string
- CC detection cycle.
- limit string
- CC detection threshold.
- match
Func number - Match method, 0(equal), 1(prefix), 2(contains), 3(not equal), 6(suffix), 7(not contains).
- name string
- Rule Name.
- options
Arr string - JSON serialized string of CC matching conditions, example:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key optional values are Method, Post, Referer, Cookie, User-Agent, CustomHeader Match optional values are, when Key is Method, optional values are 0 (equal), 3 (not equal). When the key is Post, the optional values are 0 (equal to), 3 (not equal to), when the key is Cookie, the optional values are 0 (equal to), 2 (included), 3 (not equal to), 7 (not included), When the key is Referer, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is Cookie, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), When the key is User-Agent, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is CustomHeader, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty). args is used to indicate the matching content. You need to set encodeflag to true. When the Key is Post, Cookie, or CustomHeader, use the equal sign = to concatenate the Key and Value, and encode them using Base64, similar to YWJj=YWJj. When the Key is Referer or User-Agent, use the equal sign = to concatenate the Value, similar to =YWJj.
- priority number
- Rule Priority.
- rule
Id string - Rule ID.
- session
Applieds number[] - Session ID that needs to be enabled for the rule.
- status number
- Rule Status, 0 rule close, 1 rule open.
- type number
- Operate Type.
- url string
- Detection URL.
- valid
Time number - Action ValidTime, minute unit. Min: 60, Max: 604800.
- waf
Cc stringId - ID of the resource.
- action_
type str - Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
- advance str
- Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
- domain str
- Domain.
- edition str
- WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.
- event_
id str - Event ID.
- interval str
- CC detection cycle.
- limit str
- CC detection threshold.
- match_
func float - Match method, 0(equal), 1(prefix), 2(contains), 3(not equal), 6(suffix), 7(not contains).
- name str
- Rule Name.
- options_
arr str - JSON serialized string of CC matching conditions, example:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key optional values are Method, Post, Referer, Cookie, User-Agent, CustomHeader Match optional values are, when Key is Method, optional values are 0 (equal), 3 (not equal). When the key is Post, the optional values are 0 (equal to), 3 (not equal to), when the key is Cookie, the optional values are 0 (equal to), 2 (included), 3 (not equal to), 7 (not included), When the key is Referer, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is Cookie, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), When the key is User-Agent, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is CustomHeader, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty). args is used to indicate the matching content. You need to set encodeflag to true. When the Key is Post, Cookie, or CustomHeader, use the equal sign = to concatenate the Key and Value, and encode them using Base64, similar to YWJj=YWJj. When the Key is Referer or User-Agent, use the equal sign = to concatenate the Value, similar to =YWJj.
- priority float
- Rule Priority.
- rule_
id str - Rule ID.
- session_
applieds Sequence[float] - Session ID that needs to be enabled for the rule.
- status float
- Rule Status, 0 rule close, 1 rule open.
- type float
- Operate Type.
- url str
- Detection URL.
- valid_
time float - Action ValidTime, minute unit. Min: 60, Max: 604800.
- waf_
cc_ strid - ID of the resource.
- action
Type String - Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
- advance String
- Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
- domain String
- Domain.
- edition String
- WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.
- event
Id String - Event ID.
- interval String
- CC detection cycle.
- limit String
- CC detection threshold.
- match
Func Number - Match method, 0(equal), 1(prefix), 2(contains), 3(not equal), 6(suffix), 7(not contains).
- name String
- Rule Name.
- options
Arr String - JSON serialized string of CC matching conditions, example:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key optional values are Method, Post, Referer, Cookie, User-Agent, CustomHeader Match optional values are, when Key is Method, optional values are 0 (equal), 3 (not equal). When the key is Post, the optional values are 0 (equal to), 3 (not equal to), when the key is Cookie, the optional values are 0 (equal to), 2 (included), 3 (not equal to), 7 (not included), When the key is Referer, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is Cookie, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), When the key is User-Agent, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is CustomHeader, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty). args is used to indicate the matching content. You need to set encodeflag to true. When the Key is Post, Cookie, or CustomHeader, use the equal sign = to concatenate the Key and Value, and encode them using Base64, similar to YWJj=YWJj. When the Key is Referer or User-Agent, use the equal sign = to concatenate the Value, similar to =YWJj.
- priority Number
- Rule Priority.
- rule
Id String - Rule ID.
- session
Applieds List<Number> - Session ID that needs to be enabled for the rule.
- status Number
- Rule Status, 0 rule close, 1 rule open.
- type Number
- Operate Type.
- url String
- Detection URL.
- valid
Time Number - Action ValidTime, minute unit. Min: 60, Max: 604800.
- waf
Cc StringId - ID of the resource.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack