published on Monday, Jun 22, 2026 by tencentcloudstack
published on Monday, Jun 22, 2026 by tencentcloudstack
Provides a resource to create a WAF rate limit rule
Example Usage
Create with API path rate limiting
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.WafRateLimit("example", {
domain: "example.com",
name: "tf-example",
priority: 10,
status: 1,
limitStrategy: 0,
limitObject: "API",
blockPage: 209057,
getParamsName: {
content: "get",
func: "IN",
},
limitHeaders: [{
key: "myKey",
type: "IN",
value: "myValue",
}],
limitPaths: {
path: "/url",
type: "EXACT",
},
limitWindow: {
second: 0,
minute: 10,
hour: 0,
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.WafRateLimit("example",
domain="example.com",
name="tf-example",
priority=10,
status=1,
limit_strategy=0,
limit_object="API",
block_page=209057,
get_params_name={
"content": "get",
"func": "IN",
},
limit_headers=[{
"key": "myKey",
"type": "IN",
"value": "myValue",
}],
limit_paths={
"path": "/url",
"type": "EXACT",
},
limit_window={
"second": 0,
"minute": 10,
"hour": 0,
})
package main
import (
"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 {
_, err := tencentcloud.NewWafRateLimit(ctx, "example", &tencentcloud.WafRateLimitArgs{
Domain: pulumi.String("example.com"),
Name: pulumi.String("tf-example"),
Priority: pulumi.Float64(10),
Status: pulumi.Float64(1),
LimitStrategy: pulumi.Float64(0),
LimitObject: pulumi.String("API"),
BlockPage: pulumi.Float64(209057),
GetParamsName: &tencentcloud.WafRateLimitGetParamsNameArgs{
Content: pulumi.String("get"),
Func: pulumi.String("IN"),
},
LimitHeaders: tencentcloud.WafRateLimitLimitHeaderArray{
&tencentcloud.WafRateLimitLimitHeaderArgs{
Key: pulumi.String("myKey"),
Type: pulumi.String("IN"),
Value: pulumi.String("myValue"),
},
},
LimitPaths: &tencentcloud.WafRateLimitLimitPathsArgs{
Path: pulumi.String("/url"),
Type: pulumi.String("EXACT"),
},
LimitWindow: &tencentcloud.WafRateLimitLimitWindowArgs{
Second: pulumi.Float64(0),
Minute: pulumi.Float64(10),
Hour: pulumi.Float64(0),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.WafRateLimit("example", new()
{
Domain = "example.com",
Name = "tf-example",
Priority = 10,
Status = 1,
LimitStrategy = 0,
LimitObject = "API",
BlockPage = 209057,
GetParamsName = new Tencentcloud.Inputs.WafRateLimitGetParamsNameArgs
{
Content = "get",
Func = "IN",
},
LimitHeaders = new[]
{
new Tencentcloud.Inputs.WafRateLimitLimitHeaderArgs
{
Key = "myKey",
Type = "IN",
Value = "myValue",
},
},
LimitPaths = new Tencentcloud.Inputs.WafRateLimitLimitPathsArgs
{
Path = "/url",
Type = "EXACT",
},
LimitWindow = new Tencentcloud.Inputs.WafRateLimitLimitWindowArgs
{
Second = 0,
Minute = 10,
Hour = 0,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.WafRateLimit;
import com.pulumi.tencentcloud.WafRateLimitArgs;
import com.pulumi.tencentcloud.inputs.WafRateLimitGetParamsNameArgs;
import com.pulumi.tencentcloud.inputs.WafRateLimitLimitHeaderArgs;
import com.pulumi.tencentcloud.inputs.WafRateLimitLimitPathsArgs;
import com.pulumi.tencentcloud.inputs.WafRateLimitLimitWindowArgs;
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 WafRateLimit("example", WafRateLimitArgs.builder()
.domain("example.com")
.name("tf-example")
.priority(10.0)
.status(1.0)
.limitStrategy(0.0)
.limitObject("API")
.blockPage(209057.0)
.getParamsName(WafRateLimitGetParamsNameArgs.builder()
.content("get")
.func("IN")
.build())
.limitHeaders(WafRateLimitLimitHeaderArgs.builder()
.key("myKey")
.type("IN")
.value("myValue")
.build())
.limitPaths(WafRateLimitLimitPathsArgs.builder()
.path("/url")
.type("EXACT")
.build())
.limitWindow(WafRateLimitLimitWindowArgs.builder()
.second(0.0)
.minute(10.0)
.hour(0.0)
.build())
.build());
}
}
resources:
example:
type: tencentcloud:WafRateLimit
properties:
domain: example.com
name: tf-example
priority: 10
status: 1
limitStrategy: 0
limitObject: API
blockPage: 209057
getParamsName:
content: get
func: IN
limitHeaders:
- key: myKey
type: IN
value: myValue
limitPaths:
path: /url
type: EXACT
limitWindow:
second: 0
minute: 10
hour: 0
Example coming soon!
Create WafRateLimit Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WafRateLimit(name: string, args: WafRateLimitArgs, opts?: CustomResourceOptions);@overload
def WafRateLimit(resource_name: str,
args: WafRateLimitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WafRateLimit(resource_name: str,
opts: Optional[ResourceOptions] = None,
limit_object: Optional[str] = None,
domain: Optional[str] = None,
status: Optional[float] = None,
priority: Optional[float] = None,
limit_window: Optional[WafRateLimitLimitWindowArgs] = None,
limit_strategy: Optional[float] = None,
limit_header_name: Optional[WafRateLimitLimitHeaderNameArgs] = None,
paths_options: Optional[Sequence[WafRateLimitPathsOptionArgs]] = None,
limit_headers: Optional[Sequence[WafRateLimitLimitHeaderArgs]] = None,
limit_paths: Optional[WafRateLimitLimitPathsArgs] = None,
block_page: Optional[float] = None,
ip_location: Optional[WafRateLimitIpLocationArgs] = None,
name: Optional[str] = None,
object_src: Optional[float] = None,
order: Optional[float] = None,
limit_method: Optional[WafRateLimitLimitMethodArgs] = None,
post_params_name: Optional[WafRateLimitPostParamsNameArgs] = None,
post_params_value: Optional[WafRateLimitPostParamsValueArgs] = None,
get_params_value: Optional[WafRateLimitGetParamsValueArgs] = None,
quota_share: Optional[bool] = None,
redirect_info: Optional[WafRateLimitRedirectInfoArgs] = None,
get_params_name: Optional[WafRateLimitGetParamsNameArgs] = None,
waf_rate_limit_id: Optional[str] = None)func NewWafRateLimit(ctx *Context, name string, args WafRateLimitArgs, opts ...ResourceOption) (*WafRateLimit, error)public WafRateLimit(string name, WafRateLimitArgs args, CustomResourceOptions? opts = null)
public WafRateLimit(String name, WafRateLimitArgs args)
public WafRateLimit(String name, WafRateLimitArgs args, CustomResourceOptions options)
type: tencentcloud:WafRateLimit
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_wafratelimit" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args WafRateLimitArgs
- 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 WafRateLimitArgs
- 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 WafRateLimitArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WafRateLimitArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WafRateLimitArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
WafRateLimit 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 WafRateLimit resource accepts the following input properties:
- Domain string
- Domain name.
- Limit
Object string - Rate limit object, supports API or Domain. If based on API, LimitPaths cannot be empty.
- Limit
Strategy double - Rate limit strategy, 0: observe, 1: block, 2: CAPTCHA.
- Limit
Window WafRate Limit Limit Window - Rate limit window configuration.
- Priority double
- Rule priority.
- Status double
- Rule switch, 0: off, 1: on.
- Block
Page double - Block page, 0 means 429, otherwise fill in blockPageID.
- Get
Params WafName Rate Limit Get Params Name - Rate limit based on GET parameter name.
- Get
Params WafValue Rate Limit Get Params Value - Rate limit based on GET parameter value.
- Ip
Location WafRate Limit Ip Location - Rate limit based on IP location.
- Limit
Header WafName Rate Limit Limit Header Name - Rate limit based on header parameter name.
- Limit
Headers List<WafRate Limit Limit Header> - Rate limit headers configuration.
- Limit
Method WafRate Limit Limit Method - Rate limit method configuration.
- Limit
Paths WafRate Limit Limit Paths - Rate limit path configuration.
- Name string
- Rule name.
- Object
Src double - Rate limit object source, 0: manual input, 1: API asset.
- Order double
- Rate limit execution order, 0: default, rate limit first, 1: security protection first.
- Paths
Options List<WafRate Limit Paths Option> - Path options, can configure request method for each path.
- Post
Params WafName Rate Limit Post Params Name - Rate limit based on POST parameter name.
- Post
Params WafValue Rate Limit Post Params Value - Rate limit based on POST parameter value.
- bool
- Whether to share quota. Only valid when object is URL. false: URL exclusive quota, true: all URLs share quota.
- Redirect
Info WafRate Limit Redirect Info - Redirect information. Required when LimitStrategy is redirect.
- Waf
Rate stringLimit Id - ID of the resource.
- Domain string
- Domain name.
- Limit
Object string - Rate limit object, supports API or Domain. If based on API, LimitPaths cannot be empty.
- Limit
Strategy float64 - Rate limit strategy, 0: observe, 1: block, 2: CAPTCHA.
- Limit
Window WafRate Limit Limit Window Args - Rate limit window configuration.
- Priority float64
- Rule priority.
- Status float64
- Rule switch, 0: off, 1: on.
- Block
Page float64 - Block page, 0 means 429, otherwise fill in blockPageID.
- Get
Params WafName Rate Limit Get Params Name Args - Rate limit based on GET parameter name.
- Get
Params WafValue Rate Limit Get Params Value Args - Rate limit based on GET parameter value.
- Ip
Location WafRate Limit Ip Location Args - Rate limit based on IP location.
- Limit
Header WafName Rate Limit Limit Header Name Args - Rate limit based on header parameter name.
- Limit
Headers []WafRate Limit Limit Header Args - Rate limit headers configuration.
- Limit
Method WafRate Limit Limit Method Args - Rate limit method configuration.
- Limit
Paths WafRate Limit Limit Paths Args - Rate limit path configuration.
- Name string
- Rule name.
- Object
Src float64 - Rate limit object source, 0: manual input, 1: API asset.
- Order float64
- Rate limit execution order, 0: default, rate limit first, 1: security protection first.
- Paths
Options []WafRate Limit Paths Option Args - Path options, can configure request method for each path.
- Post
Params WafName Rate Limit Post Params Name Args - Rate limit based on POST parameter name.
- Post
Params WafValue Rate Limit Post Params Value Args - Rate limit based on POST parameter value.
- bool
- Whether to share quota. Only valid when object is URL. false: URL exclusive quota, true: all URLs share quota.
- Redirect
Info WafRate Limit Redirect Info Args - Redirect information. Required when LimitStrategy is redirect.
- Waf
Rate stringLimit Id - ID of the resource.
- domain string
- Domain name.
- limit_
object string - Rate limit object, supports API or Domain. If based on API, LimitPaths cannot be empty.
- limit_
strategy number - Rate limit strategy, 0: observe, 1: block, 2: CAPTCHA.
- limit_
window object - Rate limit window configuration.
- priority number
- Rule priority.
- status number
- Rule switch, 0: off, 1: on.
- block_
page number - Block page, 0 means 429, otherwise fill in blockPageID.
- get_
params_ objectname - Rate limit based on GET parameter name.
- get_
params_ objectvalue - Rate limit based on GET parameter value.
- ip_
location object - Rate limit based on IP location.
- limit_
header_ objectname - Rate limit based on header parameter name.
- limit_
headers list(object) - Rate limit headers configuration.
- limit_
method object - Rate limit method configuration.
- limit_
paths object - Rate limit path configuration.
- name string
- Rule name.
- object_
src number - Rate limit object source, 0: manual input, 1: API asset.
- order number
- Rate limit execution order, 0: default, rate limit first, 1: security protection first.
- paths_
options list(object) - Path options, can configure request method for each path.
- post_
params_ objectname - Rate limit based on POST parameter name.
- post_
params_ objectvalue - Rate limit based on POST parameter value.
- bool
- Whether to share quota. Only valid when object is URL. false: URL exclusive quota, true: all URLs share quota.
- redirect_
info object - Redirect information. Required when LimitStrategy is redirect.
- waf_
rate_ stringlimit_ id - ID of the resource.
- domain String
- Domain name.
- limit
Object String - Rate limit object, supports API or Domain. If based on API, LimitPaths cannot be empty.
- limit
Strategy Double - Rate limit strategy, 0: observe, 1: block, 2: CAPTCHA.
- limit
Window WafRate Limit Limit Window - Rate limit window configuration.
- priority Double
- Rule priority.
- status Double
- Rule switch, 0: off, 1: on.
- block
Page Double - Block page, 0 means 429, otherwise fill in blockPageID.
- get
Params WafName Rate Limit Get Params Name - Rate limit based on GET parameter name.
- get
Params WafValue Rate Limit Get Params Value - Rate limit based on GET parameter value.
- ip
Location WafRate Limit Ip Location - Rate limit based on IP location.
- limit
Header WafName Rate Limit Limit Header Name - Rate limit based on header parameter name.
- limit
Headers List<WafRate Limit Limit Header> - Rate limit headers configuration.
- limit
Method WafRate Limit Limit Method - Rate limit method configuration.
- limit
Paths WafRate Limit Limit Paths - Rate limit path configuration.
- name String
- Rule name.
- object
Src Double - Rate limit object source, 0: manual input, 1: API asset.
- order Double
- Rate limit execution order, 0: default, rate limit first, 1: security protection first.
- paths
Options List<WafRate Limit Paths Option> - Path options, can configure request method for each path.
- post
Params WafName Rate Limit Post Params Name - Rate limit based on POST parameter name.
- post
Params WafValue Rate Limit Post Params Value - Rate limit based on POST parameter value.
- Boolean
- Whether to share quota. Only valid when object is URL. false: URL exclusive quota, true: all URLs share quota.
- redirect
Info WafRate Limit Redirect Info - Redirect information. Required when LimitStrategy is redirect.
- waf
Rate StringLimit Id - ID of the resource.
- domain string
- Domain name.
- limit
Object string - Rate limit object, supports API or Domain. If based on API, LimitPaths cannot be empty.
- limit
Strategy number - Rate limit strategy, 0: observe, 1: block, 2: CAPTCHA.
- limit
Window WafRate Limit Limit Window - Rate limit window configuration.
- priority number
- Rule priority.
- status number
- Rule switch, 0: off, 1: on.
- block
Page number - Block page, 0 means 429, otherwise fill in blockPageID.
- get
Params WafName Rate Limit Get Params Name - Rate limit based on GET parameter name.
- get
Params WafValue Rate Limit Get Params Value - Rate limit based on GET parameter value.
- ip
Location WafRate Limit Ip Location - Rate limit based on IP location.
- limit
Header WafName Rate Limit Limit Header Name - Rate limit based on header parameter name.
- limit
Headers WafRate Limit Limit Header[] - Rate limit headers configuration.
- limit
Method WafRate Limit Limit Method - Rate limit method configuration.
- limit
Paths WafRate Limit Limit Paths - Rate limit path configuration.
- name string
- Rule name.
- object
Src number - Rate limit object source, 0: manual input, 1: API asset.
- order number
- Rate limit execution order, 0: default, rate limit first, 1: security protection first.
- paths
Options WafRate Limit Paths Option[] - Path options, can configure request method for each path.
- post
Params WafName Rate Limit Post Params Name - Rate limit based on POST parameter name.
- post
Params WafValue Rate Limit Post Params Value - Rate limit based on POST parameter value.
- boolean
- Whether to share quota. Only valid when object is URL. false: URL exclusive quota, true: all URLs share quota.
- redirect
Info WafRate Limit Redirect Info - Redirect information. Required when LimitStrategy is redirect.
- waf
Rate stringLimit Id - ID of the resource.
- domain str
- Domain name.
- limit_
object str - Rate limit object, supports API or Domain. If based on API, LimitPaths cannot be empty.
- limit_
strategy float - Rate limit strategy, 0: observe, 1: block, 2: CAPTCHA.
- limit_
window WafRate Limit Limit Window Args - Rate limit window configuration.
- priority float
- Rule priority.
- status float
- Rule switch, 0: off, 1: on.
- block_
page float - Block page, 0 means 429, otherwise fill in blockPageID.
- get_
params_ Wafname Rate Limit Get Params Name Args - Rate limit based on GET parameter name.
- get_
params_ Wafvalue Rate Limit Get Params Value Args - Rate limit based on GET parameter value.
- ip_
location WafRate Limit Ip Location Args - Rate limit based on IP location.
- limit_
header_ Wafname Rate Limit Limit Header Name Args - Rate limit based on header parameter name.
- limit_
headers Sequence[WafRate Limit Limit Header Args] - Rate limit headers configuration.
- limit_
method WafRate Limit Limit Method Args - Rate limit method configuration.
- limit_
paths WafRate Limit Limit Paths Args - Rate limit path configuration.
- name str
- Rule name.
- object_
src float - Rate limit object source, 0: manual input, 1: API asset.
- order float
- Rate limit execution order, 0: default, rate limit first, 1: security protection first.
- paths_
options Sequence[WafRate Limit Paths Option Args] - Path options, can configure request method for each path.
- post_
params_ Wafname Rate Limit Post Params Name Args - Rate limit based on POST parameter name.
- post_
params_ Wafvalue Rate Limit Post Params Value Args - Rate limit based on POST parameter value.
- bool
- Whether to share quota. Only valid when object is URL. false: URL exclusive quota, true: all URLs share quota.
- redirect_
info WafRate Limit Redirect Info Args - Redirect information. Required when LimitStrategy is redirect.
- waf_
rate_ strlimit_ id - ID of the resource.
- domain String
- Domain name.
- limit
Object String - Rate limit object, supports API or Domain. If based on API, LimitPaths cannot be empty.
- limit
Strategy Number - Rate limit strategy, 0: observe, 1: block, 2: CAPTCHA.
- limit
Window Property Map - Rate limit window configuration.
- priority Number
- Rule priority.
- status Number
- Rule switch, 0: off, 1: on.
- block
Page Number - Block page, 0 means 429, otherwise fill in blockPageID.
- get
Params Property MapName - Rate limit based on GET parameter name.
- get
Params Property MapValue - Rate limit based on GET parameter value.
- ip
Location Property Map - Rate limit based on IP location.
- limit
Header Property MapName - Rate limit based on header parameter name.
- limit
Headers List<Property Map> - Rate limit headers configuration.
- limit
Method Property Map - Rate limit method configuration.
- limit
Paths Property Map - Rate limit path configuration.
- name String
- Rule name.
- object
Src Number - Rate limit object source, 0: manual input, 1: API asset.
- order Number
- Rate limit execution order, 0: default, rate limit first, 1: security protection first.
- paths
Options List<Property Map> - Path options, can configure request method for each path.
- post
Params Property MapName - Rate limit based on POST parameter name.
- post
Params Property MapValue - Rate limit based on POST parameter value.
- Boolean
- Whether to share quota. Only valid when object is URL. false: URL exclusive quota, true: all URLs share quota.
- redirect
Info Property Map - Redirect information. Required when LimitStrategy is redirect.
- waf
Rate StringLimit Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the WafRateLimit resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Limit
Rule doubleId - Rate limit rule ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Limit
Rule float64Id - Rate limit rule ID.
- id string
- The provider-assigned unique ID for this managed resource.
- limit_
rule_ numberid - Rate limit rule ID.
- id String
- The provider-assigned unique ID for this managed resource.
- limit
Rule DoubleId - Rate limit rule ID.
- id string
- The provider-assigned unique ID for this managed resource.
- limit
Rule numberId - Rate limit rule ID.
- id str
- The provider-assigned unique ID for this managed resource.
- limit_
rule_ floatid - Rate limit rule ID.
- id String
- The provider-assigned unique ID for this managed resource.
- limit
Rule NumberId - Rate limit rule ID.
Look up Existing WafRateLimit Resource
Get an existing WafRateLimit 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?: WafRateLimitState, opts?: CustomResourceOptions): WafRateLimit@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
block_page: Optional[float] = None,
domain: Optional[str] = None,
get_params_name: Optional[WafRateLimitGetParamsNameArgs] = None,
get_params_value: Optional[WafRateLimitGetParamsValueArgs] = None,
ip_location: Optional[WafRateLimitIpLocationArgs] = None,
limit_header_name: Optional[WafRateLimitLimitHeaderNameArgs] = None,
limit_headers: Optional[Sequence[WafRateLimitLimitHeaderArgs]] = None,
limit_method: Optional[WafRateLimitLimitMethodArgs] = None,
limit_object: Optional[str] = None,
limit_paths: Optional[WafRateLimitLimitPathsArgs] = None,
limit_rule_id: Optional[float] = None,
limit_strategy: Optional[float] = None,
limit_window: Optional[WafRateLimitLimitWindowArgs] = None,
name: Optional[str] = None,
object_src: Optional[float] = None,
order: Optional[float] = None,
paths_options: Optional[Sequence[WafRateLimitPathsOptionArgs]] = None,
post_params_name: Optional[WafRateLimitPostParamsNameArgs] = None,
post_params_value: Optional[WafRateLimitPostParamsValueArgs] = None,
priority: Optional[float] = None,
quota_share: Optional[bool] = None,
redirect_info: Optional[WafRateLimitRedirectInfoArgs] = None,
status: Optional[float] = None,
waf_rate_limit_id: Optional[str] = None) -> WafRateLimitfunc GetWafRateLimit(ctx *Context, name string, id IDInput, state *WafRateLimitState, opts ...ResourceOption) (*WafRateLimit, error)public static WafRateLimit Get(string name, Input<string> id, WafRateLimitState? state, CustomResourceOptions? opts = null)public static WafRateLimit get(String name, Output<String> id, WafRateLimitState state, CustomResourceOptions options)resources: _: type: tencentcloud:WafRateLimit get: id: ${id}import {
to = tencentcloud_wafratelimit.example
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.
- Block
Page double - Block page, 0 means 429, otherwise fill in blockPageID.
- Domain string
- Domain name.
- Get
Params WafName Rate Limit Get Params Name - Rate limit based on GET parameter name.
- Get
Params WafValue Rate Limit Get Params Value - Rate limit based on GET parameter value.
- Ip
Location WafRate Limit Ip Location - Rate limit based on IP location.
- Limit
Header WafName Rate Limit Limit Header Name - Rate limit based on header parameter name.
- Limit
Headers List<WafRate Limit Limit Header> - Rate limit headers configuration.
- Limit
Method WafRate Limit Limit Method - Rate limit method configuration.
- Limit
Object string - Rate limit object, supports API or Domain. If based on API, LimitPaths cannot be empty.
- Limit
Paths WafRate Limit Limit Paths - Rate limit path configuration.
- Limit
Rule doubleId - Rate limit rule ID.
- Limit
Strategy double - Rate limit strategy, 0: observe, 1: block, 2: CAPTCHA.
- Limit
Window WafRate Limit Limit Window - Rate limit window configuration.
- Name string
- Rule name.
- Object
Src double - Rate limit object source, 0: manual input, 1: API asset.
- Order double
- Rate limit execution order, 0: default, rate limit first, 1: security protection first.
- Paths
Options List<WafRate Limit Paths Option> - Path options, can configure request method for each path.
- Post
Params WafName Rate Limit Post Params Name - Rate limit based on POST parameter name.
- Post
Params WafValue Rate Limit Post Params Value - Rate limit based on POST parameter value.
- Priority double
- Rule priority.
- bool
- Whether to share quota. Only valid when object is URL. false: URL exclusive quota, true: all URLs share quota.
- Redirect
Info WafRate Limit Redirect Info - Redirect information. Required when LimitStrategy is redirect.
- Status double
- Rule switch, 0: off, 1: on.
- Waf
Rate stringLimit Id - ID of the resource.
- Block
Page float64 - Block page, 0 means 429, otherwise fill in blockPageID.
- Domain string
- Domain name.
- Get
Params WafName Rate Limit Get Params Name Args - Rate limit based on GET parameter name.
- Get
Params WafValue Rate Limit Get Params Value Args - Rate limit based on GET parameter value.
- Ip
Location WafRate Limit Ip Location Args - Rate limit based on IP location.
- Limit
Header WafName Rate Limit Limit Header Name Args - Rate limit based on header parameter name.
- Limit
Headers []WafRate Limit Limit Header Args - Rate limit headers configuration.
- Limit
Method WafRate Limit Limit Method Args - Rate limit method configuration.
- Limit
Object string - Rate limit object, supports API or Domain. If based on API, LimitPaths cannot be empty.
- Limit
Paths WafRate Limit Limit Paths Args - Rate limit path configuration.
- Limit
Rule float64Id - Rate limit rule ID.
- Limit
Strategy float64 - Rate limit strategy, 0: observe, 1: block, 2: CAPTCHA.
- Limit
Window WafRate Limit Limit Window Args - Rate limit window configuration.
- Name string
- Rule name.
- Object
Src float64 - Rate limit object source, 0: manual input, 1: API asset.
- Order float64
- Rate limit execution order, 0: default, rate limit first, 1: security protection first.
- Paths
Options []WafRate Limit Paths Option Args - Path options, can configure request method for each path.
- Post
Params WafName Rate Limit Post Params Name Args - Rate limit based on POST parameter name.
- Post
Params WafValue Rate Limit Post Params Value Args - Rate limit based on POST parameter value.
- Priority float64
- Rule priority.
- bool
- Whether to share quota. Only valid when object is URL. false: URL exclusive quota, true: all URLs share quota.
- Redirect
Info WafRate Limit Redirect Info Args - Redirect information. Required when LimitStrategy is redirect.
- Status float64
- Rule switch, 0: off, 1: on.
- Waf
Rate stringLimit Id - ID of the resource.
- block_
page number - Block page, 0 means 429, otherwise fill in blockPageID.
- domain string
- Domain name.
- get_
params_ objectname - Rate limit based on GET parameter name.
- get_
params_ objectvalue - Rate limit based on GET parameter value.
- ip_
location object - Rate limit based on IP location.
- limit_
header_ objectname - Rate limit based on header parameter name.
- limit_
headers list(object) - Rate limit headers configuration.
- limit_
method object - Rate limit method configuration.
- limit_
object string - Rate limit object, supports API or Domain. If based on API, LimitPaths cannot be empty.
- limit_
paths object - Rate limit path configuration.
- limit_
rule_ numberid - Rate limit rule ID.
- limit_
strategy number - Rate limit strategy, 0: observe, 1: block, 2: CAPTCHA.
- limit_
window object - Rate limit window configuration.
- name string
- Rule name.
- object_
src number - Rate limit object source, 0: manual input, 1: API asset.
- order number
- Rate limit execution order, 0: default, rate limit first, 1: security protection first.
- paths_
options list(object) - Path options, can configure request method for each path.
- post_
params_ objectname - Rate limit based on POST parameter name.
- post_
params_ objectvalue - Rate limit based on POST parameter value.
- priority number
- Rule priority.
- bool
- Whether to share quota. Only valid when object is URL. false: URL exclusive quota, true: all URLs share quota.
- redirect_
info object - Redirect information. Required when LimitStrategy is redirect.
- status number
- Rule switch, 0: off, 1: on.
- waf_
rate_ stringlimit_ id - ID of the resource.
- block
Page Double - Block page, 0 means 429, otherwise fill in blockPageID.
- domain String
- Domain name.
- get
Params WafName Rate Limit Get Params Name - Rate limit based on GET parameter name.
- get
Params WafValue Rate Limit Get Params Value - Rate limit based on GET parameter value.
- ip
Location WafRate Limit Ip Location - Rate limit based on IP location.
- limit
Header WafName Rate Limit Limit Header Name - Rate limit based on header parameter name.
- limit
Headers List<WafRate Limit Limit Header> - Rate limit headers configuration.
- limit
Method WafRate Limit Limit Method - Rate limit method configuration.
- limit
Object String - Rate limit object, supports API or Domain. If based on API, LimitPaths cannot be empty.
- limit
Paths WafRate Limit Limit Paths - Rate limit path configuration.
- limit
Rule DoubleId - Rate limit rule ID.
- limit
Strategy Double - Rate limit strategy, 0: observe, 1: block, 2: CAPTCHA.
- limit
Window WafRate Limit Limit Window - Rate limit window configuration.
- name String
- Rule name.
- object
Src Double - Rate limit object source, 0: manual input, 1: API asset.
- order Double
- Rate limit execution order, 0: default, rate limit first, 1: security protection first.
- paths
Options List<WafRate Limit Paths Option> - Path options, can configure request method for each path.
- post
Params WafName Rate Limit Post Params Name - Rate limit based on POST parameter name.
- post
Params WafValue Rate Limit Post Params Value - Rate limit based on POST parameter value.
- priority Double
- Rule priority.
- Boolean
- Whether to share quota. Only valid when object is URL. false: URL exclusive quota, true: all URLs share quota.
- redirect
Info WafRate Limit Redirect Info - Redirect information. Required when LimitStrategy is redirect.
- status Double
- Rule switch, 0: off, 1: on.
- waf
Rate StringLimit Id - ID of the resource.
- block
Page number - Block page, 0 means 429, otherwise fill in blockPageID.
- domain string
- Domain name.
- get
Params WafName Rate Limit Get Params Name - Rate limit based on GET parameter name.
- get
Params WafValue Rate Limit Get Params Value - Rate limit based on GET parameter value.
- ip
Location WafRate Limit Ip Location - Rate limit based on IP location.
- limit
Header WafName Rate Limit Limit Header Name - Rate limit based on header parameter name.
- limit
Headers WafRate Limit Limit Header[] - Rate limit headers configuration.
- limit
Method WafRate Limit Limit Method - Rate limit method configuration.
- limit
Object string - Rate limit object, supports API or Domain. If based on API, LimitPaths cannot be empty.
- limit
Paths WafRate Limit Limit Paths - Rate limit path configuration.
- limit
Rule numberId - Rate limit rule ID.
- limit
Strategy number - Rate limit strategy, 0: observe, 1: block, 2: CAPTCHA.
- limit
Window WafRate Limit Limit Window - Rate limit window configuration.
- name string
- Rule name.
- object
Src number - Rate limit object source, 0: manual input, 1: API asset.
- order number
- Rate limit execution order, 0: default, rate limit first, 1: security protection first.
- paths
Options WafRate Limit Paths Option[] - Path options, can configure request method for each path.
- post
Params WafName Rate Limit Post Params Name - Rate limit based on POST parameter name.
- post
Params WafValue Rate Limit Post Params Value - Rate limit based on POST parameter value.
- priority number
- Rule priority.
- boolean
- Whether to share quota. Only valid when object is URL. false: URL exclusive quota, true: all URLs share quota.
- redirect
Info WafRate Limit Redirect Info - Redirect information. Required when LimitStrategy is redirect.
- status number
- Rule switch, 0: off, 1: on.
- waf
Rate stringLimit Id - ID of the resource.
- block_
page float - Block page, 0 means 429, otherwise fill in blockPageID.
- domain str
- Domain name.
- get_
params_ Wafname Rate Limit Get Params Name Args - Rate limit based on GET parameter name.
- get_
params_ Wafvalue Rate Limit Get Params Value Args - Rate limit based on GET parameter value.
- ip_
location WafRate Limit Ip Location Args - Rate limit based on IP location.
- limit_
header_ Wafname Rate Limit Limit Header Name Args - Rate limit based on header parameter name.
- limit_
headers Sequence[WafRate Limit Limit Header Args] - Rate limit headers configuration.
- limit_
method WafRate Limit Limit Method Args - Rate limit method configuration.
- limit_
object str - Rate limit object, supports API or Domain. If based on API, LimitPaths cannot be empty.
- limit_
paths WafRate Limit Limit Paths Args - Rate limit path configuration.
- limit_
rule_ floatid - Rate limit rule ID.
- limit_
strategy float - Rate limit strategy, 0: observe, 1: block, 2: CAPTCHA.
- limit_
window WafRate Limit Limit Window Args - Rate limit window configuration.
- name str
- Rule name.
- object_
src float - Rate limit object source, 0: manual input, 1: API asset.
- order float
- Rate limit execution order, 0: default, rate limit first, 1: security protection first.
- paths_
options Sequence[WafRate Limit Paths Option Args] - Path options, can configure request method for each path.
- post_
params_ Wafname Rate Limit Post Params Name Args - Rate limit based on POST parameter name.
- post_
params_ Wafvalue Rate Limit Post Params Value Args - Rate limit based on POST parameter value.
- priority float
- Rule priority.
- bool
- Whether to share quota. Only valid when object is URL. false: URL exclusive quota, true: all URLs share quota.
- redirect_
info WafRate Limit Redirect Info Args - Redirect information. Required when LimitStrategy is redirect.
- status float
- Rule switch, 0: off, 1: on.
- waf_
rate_ strlimit_ id - ID of the resource.
- block
Page Number - Block page, 0 means 429, otherwise fill in blockPageID.
- domain String
- Domain name.
- get
Params Property MapName - Rate limit based on GET parameter name.
- get
Params Property MapValue - Rate limit based on GET parameter value.
- ip
Location Property Map - Rate limit based on IP location.
- limit
Header Property MapName - Rate limit based on header parameter name.
- limit
Headers List<Property Map> - Rate limit headers configuration.
- limit
Method Property Map - Rate limit method configuration.
- limit
Object String - Rate limit object, supports API or Domain. If based on API, LimitPaths cannot be empty.
- limit
Paths Property Map - Rate limit path configuration.
- limit
Rule NumberId - Rate limit rule ID.
- limit
Strategy Number - Rate limit strategy, 0: observe, 1: block, 2: CAPTCHA.
- limit
Window Property Map - Rate limit window configuration.
- name String
- Rule name.
- object
Src Number - Rate limit object source, 0: manual input, 1: API asset.
- order Number
- Rate limit execution order, 0: default, rate limit first, 1: security protection first.
- paths
Options List<Property Map> - Path options, can configure request method for each path.
- post
Params Property MapName - Rate limit based on POST parameter name.
- post
Params Property MapValue - Rate limit based on POST parameter value.
- priority Number
- Rule priority.
- Boolean
- Whether to share quota. Only valid when object is URL. false: URL exclusive quota, true: all URLs share quota.
- redirect
Info Property Map - Redirect information. Required when LimitStrategy is redirect.
- status Number
- Rule switch, 0: off, 1: on.
- waf
Rate StringLimit Id - ID of the resource.
Supporting Types
WafRateLimitGetParamsName, WafRateLimitGetParamsNameArgs
WafRateLimitGetParamsValue, WafRateLimitGetParamsValueArgs
WafRateLimitIpLocation, WafRateLimitIpLocationArgs
WafRateLimitLimitHeader, WafRateLimitLimitHeaderArgs
WafRateLimitLimitHeaderName, WafRateLimitLimitHeaderNameArgs
- Params
Name string - Parameter name.
- Type string
- Operator, supports REGEX, IN, NOT_IN, EACH.
- Params
Name string - Parameter name.
- Type string
- Operator, supports REGEX, IN, NOT_IN, EACH.
- params_
name string - Parameter name.
- type string
- Operator, supports REGEX, IN, NOT_IN, EACH.
- params
Name String - Parameter name.
- type String
- Operator, supports REGEX, IN, NOT_IN, EACH.
- params
Name string - Parameter name.
- type string
- Operator, supports REGEX, IN, NOT_IN, EACH.
- params_
name str - Parameter name.
- type str
- Operator, supports REGEX, IN, NOT_IN, EACH.
- params
Name String - Parameter name.
- type String
- Operator, supports REGEX, IN, NOT_IN, EACH.
WafRateLimitLimitMethod, WafRateLimitLimitMethodArgs
WafRateLimitLimitPaths, WafRateLimitLimitPathsArgs
WafRateLimitLimitWindow, WafRateLimitLimitWindowArgs
WafRateLimitPathsOption, WafRateLimitPathsOptionArgs
WafRateLimitPostParamsName, WafRateLimitPostParamsNameArgs
WafRateLimitPostParamsValue, WafRateLimitPostParamsValueArgs
WafRateLimitRedirectInfo, WafRateLimitRedirectInfoArgs
Import
WAF rate limit rule can be imported using the composite id domain#limit_rule_id, e.g.
$ pulumi import tencentcloud:index/wafRateLimit:WafRateLimit example example.com#4000077639
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
published on Monday, Jun 22, 2026 by tencentcloudstack