tencentcloud.TseCngwServiceRateLimit
Explore with Pulumi AI
Provides a resource to create a tse cngw_service_rate_limit
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const config = new pulumi.Config();
const availabilityZone = config.get("availabilityZone") || "ap-guangzhou-4";
const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
const subnet = new tencentcloud.Subnet("subnet", {
vpcId: vpc.vpcId,
availabilityZone: availabilityZone,
cidrBlock: "10.0.1.0/24",
});
const cngwGateway = new tencentcloud.TseCngwGateway("cngwGateway", {
description: "terraform test1",
enableCls: true,
engineRegion: "ap-guangzhou",
featureVersion: "STANDARD",
gatewayVersion: "2.5.1",
ingressClassName: "tse-nginx-ingress",
internetMaxBandwidthOut: 0,
tradeType: 0,
type: "kong",
nodeConfig: {
number: 2,
specification: "1c2g",
},
vpcConfig: {
subnetId: subnet.subnetId,
vpcId: vpc.vpcId,
},
tags: {
createdBy: "terraform",
},
});
const cngwService = new tencentcloud.TseCngwService("cngwService", {
gatewayId: cngwGateway.tseCngwGatewayId,
path: "/test",
protocol: "http",
retries: 5,
timeout: 60000,
upstreamType: "HostIP",
upstreamInfo: {
algorithm: "round-robin",
autoScalingCvmPort: 0,
host: "arunma.cn",
port: 8012,
slowStart: 0,
},
});
const cngwServiceRateLimit = new tencentcloud.TseCngwServiceRateLimit("cngwServiceRateLimit", {
gatewayId: cngwGateway.tseCngwGatewayId,
limitDetail: {
enabled: true,
header: "req",
hideClientHeaders: true,
isDelay: true,
limitBy: "header",
lineUpTime: 15,
policy: "redis",
responseType: "default",
qpsThresholds: [{
max: 100,
unit: "hour",
}],
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
config = pulumi.Config()
availability_zone = config.get("availabilityZone")
if availability_zone is None:
availability_zone = "ap-guangzhou-4"
vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
subnet = tencentcloud.Subnet("subnet",
vpc_id=vpc.vpc_id,
availability_zone=availability_zone,
cidr_block="10.0.1.0/24")
cngw_gateway = tencentcloud.TseCngwGateway("cngwGateway",
description="terraform test1",
enable_cls=True,
engine_region="ap-guangzhou",
feature_version="STANDARD",
gateway_version="2.5.1",
ingress_class_name="tse-nginx-ingress",
internet_max_bandwidth_out=0,
trade_type=0,
type="kong",
node_config={
"number": 2,
"specification": "1c2g",
},
vpc_config={
"subnet_id": subnet.subnet_id,
"vpc_id": vpc.vpc_id,
},
tags={
"createdBy": "terraform",
})
cngw_service = tencentcloud.TseCngwService("cngwService",
gateway_id=cngw_gateway.tse_cngw_gateway_id,
path="/test",
protocol="http",
retries=5,
timeout=60000,
upstream_type="HostIP",
upstream_info={
"algorithm": "round-robin",
"auto_scaling_cvm_port": 0,
"host": "arunma.cn",
"port": 8012,
"slow_start": 0,
})
cngw_service_rate_limit = tencentcloud.TseCngwServiceRateLimit("cngwServiceRateLimit",
gateway_id=cngw_gateway.tse_cngw_gateway_id,
limit_detail={
"enabled": True,
"header": "req",
"hide_client_headers": True,
"is_delay": True,
"limit_by": "header",
"line_up_time": 15,
"policy": "redis",
"response_type": "default",
"qps_thresholds": [{
"max": 100,
"unit": "hour",
}],
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
availabilityZone := "ap-guangzhou-4"
if param := cfg.Get("availabilityZone"); param != "" {
availabilityZone = param
}
vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
CidrBlock: pulumi.String("10.0.0.0/16"),
})
if err != nil {
return err
}
subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
VpcId: vpc.VpcId,
AvailabilityZone: pulumi.String(availabilityZone),
CidrBlock: pulumi.String("10.0.1.0/24"),
})
if err != nil {
return err
}
cngwGateway, err := tencentcloud.NewTseCngwGateway(ctx, "cngwGateway", &tencentcloud.TseCngwGatewayArgs{
Description: pulumi.String("terraform test1"),
EnableCls: pulumi.Bool(true),
EngineRegion: pulumi.String("ap-guangzhou"),
FeatureVersion: pulumi.String("STANDARD"),
GatewayVersion: pulumi.String("2.5.1"),
IngressClassName: pulumi.String("tse-nginx-ingress"),
InternetMaxBandwidthOut: pulumi.Float64(0),
TradeType: pulumi.Float64(0),
Type: pulumi.String("kong"),
NodeConfig: &tencentcloud.TseCngwGatewayNodeConfigArgs{
Number: pulumi.Float64(2),
Specification: pulumi.String("1c2g"),
},
VpcConfig: &tencentcloud.TseCngwGatewayVpcConfigArgs{
SubnetId: subnet.SubnetId,
VpcId: vpc.VpcId,
},
Tags: pulumi.StringMap{
"createdBy": pulumi.String("terraform"),
},
})
if err != nil {
return err
}
_, err = tencentcloud.NewTseCngwService(ctx, "cngwService", &tencentcloud.TseCngwServiceArgs{
GatewayId: cngwGateway.TseCngwGatewayId,
Path: pulumi.String("/test"),
Protocol: pulumi.String("http"),
Retries: pulumi.Float64(5),
Timeout: pulumi.Float64(60000),
UpstreamType: pulumi.String("HostIP"),
UpstreamInfo: &tencentcloud.TseCngwServiceUpstreamInfoArgs{
Algorithm: pulumi.String("round-robin"),
AutoScalingCvmPort: pulumi.Float64(0),
Host: pulumi.String("arunma.cn"),
Port: pulumi.Float64(8012),
SlowStart: pulumi.Float64(0),
},
})
if err != nil {
return err
}
_, err = tencentcloud.NewTseCngwServiceRateLimit(ctx, "cngwServiceRateLimit", &tencentcloud.TseCngwServiceRateLimitArgs{
GatewayId: cngwGateway.TseCngwGatewayId,
LimitDetail: &tencentcloud.TseCngwServiceRateLimitLimitDetailArgs{
Enabled: pulumi.Bool(true),
Header: pulumi.String("req"),
HideClientHeaders: pulumi.Bool(true),
IsDelay: pulumi.Bool(true),
LimitBy: pulumi.String("header"),
LineUpTime: pulumi.Float64(15),
Policy: pulumi.String("redis"),
ResponseType: pulumi.String("default"),
QpsThresholds: tencentcloud.TseCngwServiceRateLimitLimitDetailQpsThresholdArray{
&tencentcloud.TseCngwServiceRateLimitLimitDetailQpsThresholdArgs{
Max: pulumi.Float64(100),
Unit: pulumi.String("hour"),
},
},
},
})
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 config = new Config();
var availabilityZone = config.Get("availabilityZone") ?? "ap-guangzhou-4";
var vpc = new Tencentcloud.Vpc("vpc", new()
{
CidrBlock = "10.0.0.0/16",
});
var subnet = new Tencentcloud.Subnet("subnet", new()
{
VpcId = vpc.VpcId,
AvailabilityZone = availabilityZone,
CidrBlock = "10.0.1.0/24",
});
var cngwGateway = new Tencentcloud.TseCngwGateway("cngwGateway", new()
{
Description = "terraform test1",
EnableCls = true,
EngineRegion = "ap-guangzhou",
FeatureVersion = "STANDARD",
GatewayVersion = "2.5.1",
IngressClassName = "tse-nginx-ingress",
InternetMaxBandwidthOut = 0,
TradeType = 0,
Type = "kong",
NodeConfig = new Tencentcloud.Inputs.TseCngwGatewayNodeConfigArgs
{
Number = 2,
Specification = "1c2g",
},
VpcConfig = new Tencentcloud.Inputs.TseCngwGatewayVpcConfigArgs
{
SubnetId = subnet.SubnetId,
VpcId = vpc.VpcId,
},
Tags =
{
{ "createdBy", "terraform" },
},
});
var cngwService = new Tencentcloud.TseCngwService("cngwService", new()
{
GatewayId = cngwGateway.TseCngwGatewayId,
Path = "/test",
Protocol = "http",
Retries = 5,
Timeout = 60000,
UpstreamType = "HostIP",
UpstreamInfo = new Tencentcloud.Inputs.TseCngwServiceUpstreamInfoArgs
{
Algorithm = "round-robin",
AutoScalingCvmPort = 0,
Host = "arunma.cn",
Port = 8012,
SlowStart = 0,
},
});
var cngwServiceRateLimit = new Tencentcloud.TseCngwServiceRateLimit("cngwServiceRateLimit", new()
{
GatewayId = cngwGateway.TseCngwGatewayId,
LimitDetail = new Tencentcloud.Inputs.TseCngwServiceRateLimitLimitDetailArgs
{
Enabled = true,
Header = "req",
HideClientHeaders = true,
IsDelay = true,
LimitBy = "header",
LineUpTime = 15,
Policy = "redis",
ResponseType = "default",
QpsThresholds = new[]
{
new Tencentcloud.Inputs.TseCngwServiceRateLimitLimitDetailQpsThresholdArgs
{
Max = 100,
Unit = "hour",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.Vpc;
import com.pulumi.tencentcloud.VpcArgs;
import com.pulumi.tencentcloud.Subnet;
import com.pulumi.tencentcloud.SubnetArgs;
import com.pulumi.tencentcloud.TseCngwGateway;
import com.pulumi.tencentcloud.TseCngwGatewayArgs;
import com.pulumi.tencentcloud.inputs.TseCngwGatewayNodeConfigArgs;
import com.pulumi.tencentcloud.inputs.TseCngwGatewayVpcConfigArgs;
import com.pulumi.tencentcloud.TseCngwService;
import com.pulumi.tencentcloud.TseCngwServiceArgs;
import com.pulumi.tencentcloud.inputs.TseCngwServiceUpstreamInfoArgs;
import com.pulumi.tencentcloud.TseCngwServiceRateLimit;
import com.pulumi.tencentcloud.TseCngwServiceRateLimitArgs;
import com.pulumi.tencentcloud.inputs.TseCngwServiceRateLimitLimitDetailArgs;
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) {
final var config = ctx.config();
final var availabilityZone = config.get("availabilityZone").orElse("ap-guangzhou-4");
var vpc = new Vpc("vpc", VpcArgs.builder()
.cidrBlock("10.0.0.0/16")
.build());
var subnet = new Subnet("subnet", SubnetArgs.builder()
.vpcId(vpc.vpcId())
.availabilityZone(availabilityZone)
.cidrBlock("10.0.1.0/24")
.build());
var cngwGateway = new TseCngwGateway("cngwGateway", TseCngwGatewayArgs.builder()
.description("terraform test1")
.enableCls(true)
.engineRegion("ap-guangzhou")
.featureVersion("STANDARD")
.gatewayVersion("2.5.1")
.ingressClassName("tse-nginx-ingress")
.internetMaxBandwidthOut(0)
.tradeType(0)
.type("kong")
.nodeConfig(TseCngwGatewayNodeConfigArgs.builder()
.number(2)
.specification("1c2g")
.build())
.vpcConfig(TseCngwGatewayVpcConfigArgs.builder()
.subnetId(subnet.subnetId())
.vpcId(vpc.vpcId())
.build())
.tags(Map.of("createdBy", "terraform"))
.build());
var cngwService = new TseCngwService("cngwService", TseCngwServiceArgs.builder()
.gatewayId(cngwGateway.tseCngwGatewayId())
.path("/test")
.protocol("http")
.retries(5)
.timeout(60000)
.upstreamType("HostIP")
.upstreamInfo(TseCngwServiceUpstreamInfoArgs.builder()
.algorithm("round-robin")
.autoScalingCvmPort(0)
.host("arunma.cn")
.port(8012)
.slowStart(0)
.build())
.build());
var cngwServiceRateLimit = new TseCngwServiceRateLimit("cngwServiceRateLimit", TseCngwServiceRateLimitArgs.builder()
.gatewayId(cngwGateway.tseCngwGatewayId())
.limitDetail(TseCngwServiceRateLimitLimitDetailArgs.builder()
.enabled(true)
.header("req")
.hideClientHeaders(true)
.isDelay(true)
.limitBy("header")
.lineUpTime(15)
.policy("redis")
.responseType("default")
.qpsThresholds(TseCngwServiceRateLimitLimitDetailQpsThresholdArgs.builder()
.max(100)
.unit("hour")
.build())
.build())
.build());
}
}
configuration:
availabilityZone:
type: string
default: ap-guangzhou-4
resources:
vpc:
type: tencentcloud:Vpc
properties:
cidrBlock: 10.0.0.0/16
subnet:
type: tencentcloud:Subnet
properties:
vpcId: ${vpc.vpcId}
availabilityZone: ${availabilityZone}
cidrBlock: 10.0.1.0/24
cngwGateway:
type: tencentcloud:TseCngwGateway
properties:
description: terraform test1
enableCls: true
engineRegion: ap-guangzhou
featureVersion: STANDARD
gatewayVersion: 2.5.1
ingressClassName: tse-nginx-ingress
internetMaxBandwidthOut: 0
tradeType: 0
type: kong
nodeConfig:
number: 2
specification: 1c2g
vpcConfig:
subnetId: ${subnet.subnetId}
vpcId: ${vpc.vpcId}
tags:
createdBy: terraform
cngwService:
type: tencentcloud:TseCngwService
properties:
gatewayId: ${cngwGateway.tseCngwGatewayId}
path: /test
protocol: http
retries: 5
timeout: 60000
upstreamType: HostIP
upstreamInfo:
algorithm: round-robin
autoScalingCvmPort: 0
host: arunma.cn
port: 8012
slowStart: 0
cngwServiceRateLimit:
type: tencentcloud:TseCngwServiceRateLimit
properties:
gatewayId: ${cngwGateway.tseCngwGatewayId}
limitDetail:
enabled: true
header: req
hideClientHeaders: true
isDelay: true
limitBy: header
lineUpTime: 15
policy: redis
responseType: default
qpsThresholds:
- max: 100
unit: hour
Create TseCngwServiceRateLimit Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TseCngwServiceRateLimit(name: string, args: TseCngwServiceRateLimitArgs, opts?: CustomResourceOptions);
@overload
def TseCngwServiceRateLimit(resource_name: str,
args: TseCngwServiceRateLimitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TseCngwServiceRateLimit(resource_name: str,
opts: Optional[ResourceOptions] = None,
gateway_id: Optional[str] = None,
limit_detail: Optional[TseCngwServiceRateLimitLimitDetailArgs] = None,
name: Optional[str] = None,
tse_cngw_service_rate_limit_id: Optional[str] = None)
func NewTseCngwServiceRateLimit(ctx *Context, name string, args TseCngwServiceRateLimitArgs, opts ...ResourceOption) (*TseCngwServiceRateLimit, error)
public TseCngwServiceRateLimit(string name, TseCngwServiceRateLimitArgs args, CustomResourceOptions? opts = null)
public TseCngwServiceRateLimit(String name, TseCngwServiceRateLimitArgs args)
public TseCngwServiceRateLimit(String name, TseCngwServiceRateLimitArgs args, CustomResourceOptions options)
type: tencentcloud:TseCngwServiceRateLimit
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 TseCngwServiceRateLimitArgs
- 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 TseCngwServiceRateLimitArgs
- 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 TseCngwServiceRateLimitArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TseCngwServiceRateLimitArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TseCngwServiceRateLimitArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TseCngwServiceRateLimit 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 TseCngwServiceRateLimit resource accepts the following input properties:
- Gateway
Id string - gateway ID.
- Limit
Detail TseCngw Service Rate Limit Limit Detail - rate limit configuration.
- Name string
- service name or service ID.
- Tse
Cngw stringService Rate Limit Id - ID of the resource.
- Gateway
Id string - gateway ID.
- Limit
Detail TseCngw Service Rate Limit Limit Detail Args - rate limit configuration.
- Name string
- service name or service ID.
- Tse
Cngw stringService Rate Limit Id - ID of the resource.
- gateway
Id String - gateway ID.
- limit
Detail TseCngw Service Rate Limit Limit Detail - rate limit configuration.
- name String
- service name or service ID.
- tse
Cngw StringService Rate Limit Id - ID of the resource.
- gateway
Id string - gateway ID.
- limit
Detail TseCngw Service Rate Limit Limit Detail - rate limit configuration.
- name string
- service name or service ID.
- tse
Cngw stringService Rate Limit Id - ID of the resource.
- gateway_
id str - gateway ID.
- limit_
detail TseCngw Service Rate Limit Limit Detail Args - rate limit configuration.
- name str
- service name or service ID.
- tse_
cngw_ strservice_ rate_ limit_ id - ID of the resource.
- gateway
Id String - gateway ID.
- limit
Detail Property Map - rate limit configuration.
- name String
- service name or service ID.
- tse
Cngw StringService Rate Limit Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TseCngwServiceRateLimit resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing TseCngwServiceRateLimit Resource
Get an existing TseCngwServiceRateLimit 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?: TseCngwServiceRateLimitState, opts?: CustomResourceOptions): TseCngwServiceRateLimit
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
gateway_id: Optional[str] = None,
limit_detail: Optional[TseCngwServiceRateLimitLimitDetailArgs] = None,
name: Optional[str] = None,
tse_cngw_service_rate_limit_id: Optional[str] = None) -> TseCngwServiceRateLimit
func GetTseCngwServiceRateLimit(ctx *Context, name string, id IDInput, state *TseCngwServiceRateLimitState, opts ...ResourceOption) (*TseCngwServiceRateLimit, error)
public static TseCngwServiceRateLimit Get(string name, Input<string> id, TseCngwServiceRateLimitState? state, CustomResourceOptions? opts = null)
public static TseCngwServiceRateLimit get(String name, Output<String> id, TseCngwServiceRateLimitState state, CustomResourceOptions options)
resources: _: type: tencentcloud:TseCngwServiceRateLimit 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.
- Gateway
Id string - gateway ID.
- Limit
Detail TseCngw Service Rate Limit Limit Detail - rate limit configuration.
- Name string
- service name or service ID.
- Tse
Cngw stringService Rate Limit Id - ID of the resource.
- Gateway
Id string - gateway ID.
- Limit
Detail TseCngw Service Rate Limit Limit Detail Args - rate limit configuration.
- Name string
- service name or service ID.
- Tse
Cngw stringService Rate Limit Id - ID of the resource.
- gateway
Id String - gateway ID.
- limit
Detail TseCngw Service Rate Limit Limit Detail - rate limit configuration.
- name String
- service name or service ID.
- tse
Cngw StringService Rate Limit Id - ID of the resource.
- gateway
Id string - gateway ID.
- limit
Detail TseCngw Service Rate Limit Limit Detail - rate limit configuration.
- name string
- service name or service ID.
- tse
Cngw stringService Rate Limit Id - ID of the resource.
- gateway_
id str - gateway ID.
- limit_
detail TseCngw Service Rate Limit Limit Detail Args - rate limit configuration.
- name str
- service name or service ID.
- tse_
cngw_ strservice_ rate_ limit_ id - ID of the resource.
- gateway
Id String - gateway ID.
- limit
Detail Property Map - rate limit configuration.
- name String
- service name or service ID.
- tse
Cngw StringService Rate Limit Id - ID of the resource.
Supporting Types
TseCngwServiceRateLimitLimitDetail, TseCngwServiceRateLimitLimitDetailArgs
- Enabled bool
- status of service rate limit.
- Hide
Client boolHeaders - whether to hide the headers of client.
- Is
Delay bool - whether to enable request queuing.
- Limit
By string - basis for service rate limit.Reference value:
ip
,service
,consumer
,credential
,path
,header
. - Qps
Thresholds List<TseCngw Service Rate Limit Limit Detail Qps Threshold> - qps threshold.
- Response
Type string - response strategy.Reference value:
url
: forward request according to url,text
: response configuration,default
: return directly. - External
Redis TseCngw Service Rate Limit Limit Detail External Redis - external redis information, maybe null.
- Header string
- request headers that require rate limit.
- Line
Up doubleTime - queue time.
- Path string
- request paths that require rate limit.
- Policy string
- counter policy.Reference value:
local
,redis
,external_redis
. - Rate
Limit TseResponse Cngw Service Rate Limit Limit Detail Rate Limit Response - response configuration, the response strategy is text, maybe null.
- Rate
Limit stringResponse Url - request forwarding address, maybe null.
- Enabled bool
- status of service rate limit.
- Hide
Client boolHeaders - whether to hide the headers of client.
- Is
Delay bool - whether to enable request queuing.
- Limit
By string - basis for service rate limit.Reference value:
ip
,service
,consumer
,credential
,path
,header
. - Qps
Thresholds []TseCngw Service Rate Limit Limit Detail Qps Threshold - qps threshold.
- Response
Type string - response strategy.Reference value:
url
: forward request according to url,text
: response configuration,default
: return directly. - External
Redis TseCngw Service Rate Limit Limit Detail External Redis - external redis information, maybe null.
- Header string
- request headers that require rate limit.
- Line
Up float64Time - queue time.
- Path string
- request paths that require rate limit.
- Policy string
- counter policy.Reference value:
local
,redis
,external_redis
. - Rate
Limit TseResponse Cngw Service Rate Limit Limit Detail Rate Limit Response - response configuration, the response strategy is text, maybe null.
- Rate
Limit stringResponse Url - request forwarding address, maybe null.
- enabled Boolean
- status of service rate limit.
- hide
Client BooleanHeaders - whether to hide the headers of client.
- is
Delay Boolean - whether to enable request queuing.
- limit
By String - basis for service rate limit.Reference value:
ip
,service
,consumer
,credential
,path
,header
. - qps
Thresholds List<TseCngw Service Rate Limit Limit Detail Qps Threshold> - qps threshold.
- response
Type String - response strategy.Reference value:
url
: forward request according to url,text
: response configuration,default
: return directly. - external
Redis TseCngw Service Rate Limit Limit Detail External Redis - external redis information, maybe null.
- header String
- request headers that require rate limit.
- line
Up DoubleTime - queue time.
- path String
- request paths that require rate limit.
- policy String
- counter policy.Reference value:
local
,redis
,external_redis
. - rate
Limit TseResponse Cngw Service Rate Limit Limit Detail Rate Limit Response - response configuration, the response strategy is text, maybe null.
- rate
Limit StringResponse Url - request forwarding address, maybe null.
- enabled boolean
- status of service rate limit.
- hide
Client booleanHeaders - whether to hide the headers of client.
- is
Delay boolean - whether to enable request queuing.
- limit
By string - basis for service rate limit.Reference value:
ip
,service
,consumer
,credential
,path
,header
. - qps
Thresholds TseCngw Service Rate Limit Limit Detail Qps Threshold[] - qps threshold.
- response
Type string - response strategy.Reference value:
url
: forward request according to url,text
: response configuration,default
: return directly. - external
Redis TseCngw Service Rate Limit Limit Detail External Redis - external redis information, maybe null.
- header string
- request headers that require rate limit.
- line
Up numberTime - queue time.
- path string
- request paths that require rate limit.
- policy string
- counter policy.Reference value:
local
,redis
,external_redis
. - rate
Limit TseResponse Cngw Service Rate Limit Limit Detail Rate Limit Response - response configuration, the response strategy is text, maybe null.
- rate
Limit stringResponse Url - request forwarding address, maybe null.
- enabled bool
- status of service rate limit.
- hide_
client_ boolheaders - whether to hide the headers of client.
- is_
delay bool - whether to enable request queuing.
- limit_
by str - basis for service rate limit.Reference value:
ip
,service
,consumer
,credential
,path
,header
. - qps_
thresholds Sequence[TseCngw Service Rate Limit Limit Detail Qps Threshold] - qps threshold.
- response_
type str - response strategy.Reference value:
url
: forward request according to url,text
: response configuration,default
: return directly. - external_
redis TseCngw Service Rate Limit Limit Detail External Redis - external redis information, maybe null.
- header str
- request headers that require rate limit.
- line_
up_ floattime - queue time.
- path str
- request paths that require rate limit.
- policy str
- counter policy.Reference value:
local
,redis
,external_redis
. - rate_
limit_ Tseresponse Cngw Service Rate Limit Limit Detail Rate Limit Response - response configuration, the response strategy is text, maybe null.
- rate_
limit_ strresponse_ url - request forwarding address, maybe null.
- enabled Boolean
- status of service rate limit.
- hide
Client BooleanHeaders - whether to hide the headers of client.
- is
Delay Boolean - whether to enable request queuing.
- limit
By String - basis for service rate limit.Reference value:
ip
,service
,consumer
,credential
,path
,header
. - qps
Thresholds List<Property Map> - qps threshold.
- response
Type String - response strategy.Reference value:
url
: forward request according to url,text
: response configuration,default
: return directly. - external
Redis Property Map - external redis information, maybe null.
- header String
- request headers that require rate limit.
- line
Up NumberTime - queue time.
- path String
- request paths that require rate limit.
- policy String
- counter policy.Reference value:
local
,redis
,external_redis
. - rate
Limit Property MapResponse - response configuration, the response strategy is text, maybe null.
- rate
Limit StringResponse Url - request forwarding address, maybe null.
TseCngwServiceRateLimitLimitDetailExternalRedis, TseCngwServiceRateLimitLimitDetailExternalRedisArgs
- Redis
Host string - redis ip, maybe null.
- Redis
Password string - redis password, maybe null.
- Redis
Port double - redis port, maybe null.
- Redis
Timeout double - redis timeout, unit:
ms
, maybe null.
- Redis
Host string - redis ip, maybe null.
- Redis
Password string - redis password, maybe null.
- Redis
Port float64 - redis port, maybe null.
- Redis
Timeout float64 - redis timeout, unit:
ms
, maybe null.
- redis
Host String - redis ip, maybe null.
- redis
Password String - redis password, maybe null.
- redis
Port Double - redis port, maybe null.
- redis
Timeout Double - redis timeout, unit:
ms
, maybe null.
- redis
Host string - redis ip, maybe null.
- redis
Password string - redis password, maybe null.
- redis
Port number - redis port, maybe null.
- redis
Timeout number - redis timeout, unit:
ms
, maybe null.
- redis_
host str - redis ip, maybe null.
- redis_
password str - redis password, maybe null.
- redis_
port float - redis port, maybe null.
- redis_
timeout float - redis timeout, unit:
ms
, maybe null.
- redis
Host String - redis ip, maybe null.
- redis
Password String - redis password, maybe null.
- redis
Port Number - redis port, maybe null.
- redis
Timeout Number - redis timeout, unit:
ms
, maybe null.
TseCngwServiceRateLimitLimitDetailQpsThreshold, TseCngwServiceRateLimitLimitDetailQpsThresholdArgs
TseCngwServiceRateLimitLimitDetailRateLimitResponse, TseCngwServiceRateLimitLimitDetailRateLimitResponseArgs
- Body string
- custom response body, maybe bull.
- Headers
List<Tse
Cngw Service Rate Limit Limit Detail Rate Limit Response Header> - headrs.
- Http
Status double - http status code.
- Body string
- custom response body, maybe bull.
- Headers
[]Tse
Cngw Service Rate Limit Limit Detail Rate Limit Response Header - headrs.
- Http
Status float64 - http status code.
- body String
- custom response body, maybe bull.
- headers
List<Tse
Cngw Service Rate Limit Limit Detail Rate Limit Response Header> - headrs.
- http
Status Double - http status code.
- body string
- custom response body, maybe bull.
- headers
Tse
Cngw Service Rate Limit Limit Detail Rate Limit Response Header[] - headrs.
- http
Status number - http status code.
- body str
- custom response body, maybe bull.
- headers
Sequence[Tse
Cngw Service Rate Limit Limit Detail Rate Limit Response Header] - headrs.
- http_
status float - http status code.
- body String
- custom response body, maybe bull.
- headers List<Property Map>
- headrs.
- http
Status Number - http status code.
TseCngwServiceRateLimitLimitDetailRateLimitResponseHeader, TseCngwServiceRateLimitLimitDetailRateLimitResponseHeaderArgs
Import
tse cngw_service_rate_limit can be imported using the id, e.g.
$ pulumi import tencentcloud:index/tseCngwServiceRateLimit:TseCngwServiceRateLimit cngw_service_rate_limit gatewayId#name
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
tencentcloud
Terraform Provider.