tencentcloud.DayuL4Rule
Explore with Pulumi AI
Use this resource to create dayu layer 4 rule
NOTE: This resource only support resource Anti-DDoS of type
bgpip
andnet
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const testRule = new tencentcloud.DayuL4Rule("testRule", {
dPort: 60,
healthCheckHealthNum: 5,
healthCheckInterval: 35,
healthCheckSwitch: true,
healthCheckTimeout: 30,
healthCheckUnhealthNum: 10,
protocol: "TCP",
resourceId: "bgpip-00000294",
resourceType: "bgpip",
sPort: 80,
sessionSwitch: false,
sessionTime: 300,
sourceLists: [
{
source: "1.1.1.1",
weight: 100,
},
{
source: "2.2.2.2",
weight: 50,
},
],
sourceType: 2,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
test_rule = tencentcloud.DayuL4Rule("testRule",
d_port=60,
health_check_health_num=5,
health_check_interval=35,
health_check_switch=True,
health_check_timeout=30,
health_check_unhealth_num=10,
protocol="TCP",
resource_id="bgpip-00000294",
resource_type="bgpip",
s_port=80,
session_switch=False,
session_time=300,
source_lists=[
{
"source": "1.1.1.1",
"weight": 100,
},
{
"source": "2.2.2.2",
"weight": 50,
},
],
source_type=2)
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.NewDayuL4Rule(ctx, "testRule", &tencentcloud.DayuL4RuleArgs{
DPort: pulumi.Float64(60),
HealthCheckHealthNum: pulumi.Float64(5),
HealthCheckInterval: pulumi.Float64(35),
HealthCheckSwitch: pulumi.Bool(true),
HealthCheckTimeout: pulumi.Float64(30),
HealthCheckUnhealthNum: pulumi.Float64(10),
Protocol: pulumi.String("TCP"),
ResourceId: pulumi.String("bgpip-00000294"),
ResourceType: pulumi.String("bgpip"),
SPort: pulumi.Float64(80),
SessionSwitch: pulumi.Bool(false),
SessionTime: pulumi.Float64(300),
SourceLists: tencentcloud.DayuL4RuleSourceListArray{
&tencentcloud.DayuL4RuleSourceListArgs{
Source: pulumi.String("1.1.1.1"),
Weight: pulumi.Float64(100),
},
&tencentcloud.DayuL4RuleSourceListArgs{
Source: pulumi.String("2.2.2.2"),
Weight: pulumi.Float64(50),
},
},
SourceType: pulumi.Float64(2),
})
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 testRule = new Tencentcloud.DayuL4Rule("testRule", new()
{
DPort = 60,
HealthCheckHealthNum = 5,
HealthCheckInterval = 35,
HealthCheckSwitch = true,
HealthCheckTimeout = 30,
HealthCheckUnhealthNum = 10,
Protocol = "TCP",
ResourceId = "bgpip-00000294",
ResourceType = "bgpip",
SPort = 80,
SessionSwitch = false,
SessionTime = 300,
SourceLists = new[]
{
new Tencentcloud.Inputs.DayuL4RuleSourceListArgs
{
Source = "1.1.1.1",
Weight = 100,
},
new Tencentcloud.Inputs.DayuL4RuleSourceListArgs
{
Source = "2.2.2.2",
Weight = 50,
},
},
SourceType = 2,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.DayuL4Rule;
import com.pulumi.tencentcloud.DayuL4RuleArgs;
import com.pulumi.tencentcloud.inputs.DayuL4RuleSourceListArgs;
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 testRule = new DayuL4Rule("testRule", DayuL4RuleArgs.builder()
.dPort(60)
.healthCheckHealthNum(5)
.healthCheckInterval(35)
.healthCheckSwitch(true)
.healthCheckTimeout(30)
.healthCheckUnhealthNum(10)
.protocol("TCP")
.resourceId("bgpip-00000294")
.resourceType("bgpip")
.sPort(80)
.sessionSwitch(false)
.sessionTime(300)
.sourceLists(
DayuL4RuleSourceListArgs.builder()
.source("1.1.1.1")
.weight(100)
.build(),
DayuL4RuleSourceListArgs.builder()
.source("2.2.2.2")
.weight(50)
.build())
.sourceType(2)
.build());
}
}
resources:
testRule:
type: tencentcloud:DayuL4Rule
properties:
dPort: 60
healthCheckHealthNum: 5
healthCheckInterval: 35
healthCheckSwitch: true
healthCheckTimeout: 30
healthCheckUnhealthNum: 10
protocol: TCP
resourceId: bgpip-00000294
resourceType: bgpip
sPort: 80
sessionSwitch: false
sessionTime: 300
sourceLists:
- source: 1.1.1.1
weight: 100
- source: 2.2.2.2
weight: 50
sourceType: 2
Create DayuL4Rule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DayuL4Rule(name: string, args: DayuL4RuleArgs, opts?: CustomResourceOptions);
@overload
def DayuL4Rule(resource_name: str,
args: DayuL4RuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DayuL4Rule(resource_name: str,
opts: Optional[ResourceOptions] = None,
protocol: Optional[str] = None,
source_type: Optional[float] = None,
source_lists: Optional[Sequence[DayuL4RuleSourceListArgs]] = None,
s_port: Optional[float] = None,
d_port: Optional[float] = None,
resource_type: Optional[str] = None,
resource_id: Optional[str] = None,
health_check_switch: Optional[bool] = None,
name: Optional[str] = None,
health_check_unhealth_num: Optional[float] = None,
health_check_timeout: Optional[float] = None,
health_check_interval: Optional[float] = None,
session_switch: Optional[bool] = None,
session_time: Optional[float] = None,
health_check_health_num: Optional[float] = None,
dayu_l4_rule_id: Optional[str] = None)
func NewDayuL4Rule(ctx *Context, name string, args DayuL4RuleArgs, opts ...ResourceOption) (*DayuL4Rule, error)
public DayuL4Rule(string name, DayuL4RuleArgs args, CustomResourceOptions? opts = null)
public DayuL4Rule(String name, DayuL4RuleArgs args)
public DayuL4Rule(String name, DayuL4RuleArgs args, CustomResourceOptions options)
type: tencentcloud:DayuL4Rule
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 DayuL4RuleArgs
- 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 DayuL4RuleArgs
- 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 DayuL4RuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DayuL4RuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DayuL4RuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DayuL4Rule 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 DayuL4Rule resource accepts the following input properties:
- DPort double
- The destination port of the L4 rule.
- Protocol string
- Protocol of the rule. Valid values:
http
,https
. Whensource_type
is 1(host source), the value of this field can only set withtcp
. - Resource
Id string - ID of the resource that the layer 4 rule works for.
- Resource
Type string - Type of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - SPort double
- The source port of the L4 rule.
- Source
Lists List<DayuL4Rule Source List> - Source list of the rule, it can be a set of ip sources or a set of domain sources. The number of items ranges from 1 to 20.
- Source
Type double - Source type,
1
for source of host,2
for source of IP. - Dayu
L4Rule stringId - ID of the resource.
- Health
Check doubleHealth Num - Health threshold of health check, and the default is 3. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is 2-10.
- Health
Check doubleInterval - Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
- Health
Check boolSwitch - Indicates whether health check is enabled. The default is
false
. Only valid when source list has more than one source item. - Health
Check doubleTimeout - HTTP Status Code. The default is 26 and value range is 2-60.
- Health
Check doubleUnhealth Num - Unhealthy threshold of health check, and the default is 3. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is 2-10.
- Name string
- Name of the rule. When the
resource_type
isnet
, this field should be set with valid domain. - Session
Switch bool - Indicate that the session will keep or not, and default value is
false
. - Session
Time double - Session keep time, only valid when
session_switch
is true, the available value ranges from 1 to 300 and unit is second.
- DPort float64
- The destination port of the L4 rule.
- Protocol string
- Protocol of the rule. Valid values:
http
,https
. Whensource_type
is 1(host source), the value of this field can only set withtcp
. - Resource
Id string - ID of the resource that the layer 4 rule works for.
- Resource
Type string - Type of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - SPort float64
- The source port of the L4 rule.
- Source
Lists []DayuL4Rule Source List Args - Source list of the rule, it can be a set of ip sources or a set of domain sources. The number of items ranges from 1 to 20.
- Source
Type float64 - Source type,
1
for source of host,2
for source of IP. - Dayu
L4Rule stringId - ID of the resource.
- Health
Check float64Health Num - Health threshold of health check, and the default is 3. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is 2-10.
- Health
Check float64Interval - Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
- Health
Check boolSwitch - Indicates whether health check is enabled. The default is
false
. Only valid when source list has more than one source item. - Health
Check float64Timeout - HTTP Status Code. The default is 26 and value range is 2-60.
- Health
Check float64Unhealth Num - Unhealthy threshold of health check, and the default is 3. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is 2-10.
- Name string
- Name of the rule. When the
resource_type
isnet
, this field should be set with valid domain. - Session
Switch bool - Indicate that the session will keep or not, and default value is
false
. - Session
Time float64 - Session keep time, only valid when
session_switch
is true, the available value ranges from 1 to 300 and unit is second.
- d
Port Double - The destination port of the L4 rule.
- protocol String
- Protocol of the rule. Valid values:
http
,https
. Whensource_type
is 1(host source), the value of this field can only set withtcp
. - resource
Id String - ID of the resource that the layer 4 rule works for.
- resource
Type String - Type of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - s
Port Double - The source port of the L4 rule.
- source
Lists List<DayuL4Rule Source List> - Source list of the rule, it can be a set of ip sources or a set of domain sources. The number of items ranges from 1 to 20.
- source
Type Double - Source type,
1
for source of host,2
for source of IP. - dayu
L4Rule StringId - ID of the resource.
- health
Check DoubleHealth Num - Health threshold of health check, and the default is 3. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is 2-10.
- health
Check DoubleInterval - Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
- health
Check BooleanSwitch - Indicates whether health check is enabled. The default is
false
. Only valid when source list has more than one source item. - health
Check DoubleTimeout - HTTP Status Code. The default is 26 and value range is 2-60.
- health
Check DoubleUnhealth Num - Unhealthy threshold of health check, and the default is 3. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is 2-10.
- name String
- Name of the rule. When the
resource_type
isnet
, this field should be set with valid domain. - session
Switch Boolean - Indicate that the session will keep or not, and default value is
false
. - session
Time Double - Session keep time, only valid when
session_switch
is true, the available value ranges from 1 to 300 and unit is second.
- d
Port number - The destination port of the L4 rule.
- protocol string
- Protocol of the rule. Valid values:
http
,https
. Whensource_type
is 1(host source), the value of this field can only set withtcp
. - resource
Id string - ID of the resource that the layer 4 rule works for.
- resource
Type string - Type of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - s
Port number - The source port of the L4 rule.
- source
Lists DayuL4Rule Source List[] - Source list of the rule, it can be a set of ip sources or a set of domain sources. The number of items ranges from 1 to 20.
- source
Type number - Source type,
1
for source of host,2
for source of IP. - dayu
L4Rule stringId - ID of the resource.
- health
Check numberHealth Num - Health threshold of health check, and the default is 3. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is 2-10.
- health
Check numberInterval - Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
- health
Check booleanSwitch - Indicates whether health check is enabled. The default is
false
. Only valid when source list has more than one source item. - health
Check numberTimeout - HTTP Status Code. The default is 26 and value range is 2-60.
- health
Check numberUnhealth Num - Unhealthy threshold of health check, and the default is 3. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is 2-10.
- name string
- Name of the rule. When the
resource_type
isnet
, this field should be set with valid domain. - session
Switch boolean - Indicate that the session will keep or not, and default value is
false
. - session
Time number - Session keep time, only valid when
session_switch
is true, the available value ranges from 1 to 300 and unit is second.
- d_
port float - The destination port of the L4 rule.
- protocol str
- Protocol of the rule. Valid values:
http
,https
. Whensource_type
is 1(host source), the value of this field can only set withtcp
. - resource_
id str - ID of the resource that the layer 4 rule works for.
- resource_
type str - Type of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - s_
port float - The source port of the L4 rule.
- source_
lists Sequence[DayuL4Rule Source List Args] - Source list of the rule, it can be a set of ip sources or a set of domain sources. The number of items ranges from 1 to 20.
- source_
type float - Source type,
1
for source of host,2
for source of IP. - dayu_
l4_ strrule_ id - ID of the resource.
- health_
check_ floathealth_ num - Health threshold of health check, and the default is 3. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is 2-10.
- health_
check_ floatinterval - Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
- health_
check_ boolswitch - Indicates whether health check is enabled. The default is
false
. Only valid when source list has more than one source item. - health_
check_ floattimeout - HTTP Status Code. The default is 26 and value range is 2-60.
- health_
check_ floatunhealth_ num - Unhealthy threshold of health check, and the default is 3. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is 2-10.
- name str
- Name of the rule. When the
resource_type
isnet
, this field should be set with valid domain. - session_
switch bool - Indicate that the session will keep or not, and default value is
false
. - session_
time float - Session keep time, only valid when
session_switch
is true, the available value ranges from 1 to 300 and unit is second.
- d
Port Number - The destination port of the L4 rule.
- protocol String
- Protocol of the rule. Valid values:
http
,https
. Whensource_type
is 1(host source), the value of this field can only set withtcp
. - resource
Id String - ID of the resource that the layer 4 rule works for.
- resource
Type String - Type of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - s
Port Number - The source port of the L4 rule.
- source
Lists List<Property Map> - Source list of the rule, it can be a set of ip sources or a set of domain sources. The number of items ranges from 1 to 20.
- source
Type Number - Source type,
1
for source of host,2
for source of IP. - dayu
L4Rule StringId - ID of the resource.
- health
Check NumberHealth Num - Health threshold of health check, and the default is 3. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is 2-10.
- health
Check NumberInterval - Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
- health
Check BooleanSwitch - Indicates whether health check is enabled. The default is
false
. Only valid when source list has more than one source item. - health
Check NumberTimeout - HTTP Status Code. The default is 26 and value range is 2-60.
- health
Check NumberUnhealth Num - Unhealthy threshold of health check, and the default is 3. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is 2-10.
- name String
- Name of the rule. When the
resource_type
isnet
, this field should be set with valid domain. - session
Switch Boolean - Indicate that the session will keep or not, and default value is
false
. - session
Time Number - Session keep time, only valid when
session_switch
is true, the available value ranges from 1 to 300 and unit is second.
Outputs
All input properties are implicitly available as output properties. Additionally, the DayuL4Rule resource produces the following output properties:
Look up Existing DayuL4Rule Resource
Get an existing DayuL4Rule 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?: DayuL4RuleState, opts?: CustomResourceOptions): DayuL4Rule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
d_port: Optional[float] = None,
dayu_l4_rule_id: Optional[str] = None,
health_check_health_num: Optional[float] = None,
health_check_interval: Optional[float] = None,
health_check_switch: Optional[bool] = None,
health_check_timeout: Optional[float] = None,
health_check_unhealth_num: Optional[float] = None,
lb_type: Optional[float] = None,
name: Optional[str] = None,
protocol: Optional[str] = None,
resource_id: Optional[str] = None,
resource_type: Optional[str] = None,
rule_id: Optional[str] = None,
s_port: Optional[float] = None,
session_switch: Optional[bool] = None,
session_time: Optional[float] = None,
source_lists: Optional[Sequence[DayuL4RuleSourceListArgs]] = None,
source_type: Optional[float] = None) -> DayuL4Rule
func GetDayuL4Rule(ctx *Context, name string, id IDInput, state *DayuL4RuleState, opts ...ResourceOption) (*DayuL4Rule, error)
public static DayuL4Rule Get(string name, Input<string> id, DayuL4RuleState? state, CustomResourceOptions? opts = null)
public static DayuL4Rule get(String name, Output<String> id, DayuL4RuleState state, CustomResourceOptions options)
resources: _: type: tencentcloud:DayuL4Rule 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.
- DPort double
- The destination port of the L4 rule.
- Dayu
L4Rule stringId - ID of the resource.
- Health
Check doubleHealth Num - Health threshold of health check, and the default is 3. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is 2-10.
- Health
Check doubleInterval - Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
- Health
Check boolSwitch - Indicates whether health check is enabled. The default is
false
. Only valid when source list has more than one source item. - Health
Check doubleTimeout - HTTP Status Code. The default is 26 and value range is 2-60.
- Health
Check doubleUnhealth Num - Unhealthy threshold of health check, and the default is 3. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is 2-10.
- Lb
Type double - LB type of the rule. Valid values:
1
,2
.1
for weight cycling and2
for IP hash. - Name string
- Name of the rule. When the
resource_type
isnet
, this field should be set with valid domain. - Protocol string
- Protocol of the rule. Valid values:
http
,https
. Whensource_type
is 1(host source), the value of this field can only set withtcp
. - Resource
Id string - ID of the resource that the layer 4 rule works for.
- Resource
Type string - Type of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - Rule
Id string - ID of the layer 4 rule.
- SPort double
- The source port of the L4 rule.
- Session
Switch bool - Indicate that the session will keep or not, and default value is
false
. - Session
Time double - Session keep time, only valid when
session_switch
is true, the available value ranges from 1 to 300 and unit is second. - Source
Lists List<DayuL4Rule Source List> - Source list of the rule, it can be a set of ip sources or a set of domain sources. The number of items ranges from 1 to 20.
- Source
Type double - Source type,
1
for source of host,2
for source of IP.
- DPort float64
- The destination port of the L4 rule.
- Dayu
L4Rule stringId - ID of the resource.
- Health
Check float64Health Num - Health threshold of health check, and the default is 3. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is 2-10.
- Health
Check float64Interval - Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
- Health
Check boolSwitch - Indicates whether health check is enabled. The default is
false
. Only valid when source list has more than one source item. - Health
Check float64Timeout - HTTP Status Code. The default is 26 and value range is 2-60.
- Health
Check float64Unhealth Num - Unhealthy threshold of health check, and the default is 3. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is 2-10.
- Lb
Type float64 - LB type of the rule. Valid values:
1
,2
.1
for weight cycling and2
for IP hash. - Name string
- Name of the rule. When the
resource_type
isnet
, this field should be set with valid domain. - Protocol string
- Protocol of the rule. Valid values:
http
,https
. Whensource_type
is 1(host source), the value of this field can only set withtcp
. - Resource
Id string - ID of the resource that the layer 4 rule works for.
- Resource
Type string - Type of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - Rule
Id string - ID of the layer 4 rule.
- SPort float64
- The source port of the L4 rule.
- Session
Switch bool - Indicate that the session will keep or not, and default value is
false
. - Session
Time float64 - Session keep time, only valid when
session_switch
is true, the available value ranges from 1 to 300 and unit is second. - Source
Lists []DayuL4Rule Source List Args - Source list of the rule, it can be a set of ip sources or a set of domain sources. The number of items ranges from 1 to 20.
- Source
Type float64 - Source type,
1
for source of host,2
for source of IP.
- d
Port Double - The destination port of the L4 rule.
- dayu
L4Rule StringId - ID of the resource.
- health
Check DoubleHealth Num - Health threshold of health check, and the default is 3. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is 2-10.
- health
Check DoubleInterval - Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
- health
Check BooleanSwitch - Indicates whether health check is enabled. The default is
false
. Only valid when source list has more than one source item. - health
Check DoubleTimeout - HTTP Status Code. The default is 26 and value range is 2-60.
- health
Check DoubleUnhealth Num - Unhealthy threshold of health check, and the default is 3. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is 2-10.
- lb
Type Double - LB type of the rule. Valid values:
1
,2
.1
for weight cycling and2
for IP hash. - name String
- Name of the rule. When the
resource_type
isnet
, this field should be set with valid domain. - protocol String
- Protocol of the rule. Valid values:
http
,https
. Whensource_type
is 1(host source), the value of this field can only set withtcp
. - resource
Id String - ID of the resource that the layer 4 rule works for.
- resource
Type String - Type of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - rule
Id String - ID of the layer 4 rule.
- s
Port Double - The source port of the L4 rule.
- session
Switch Boolean - Indicate that the session will keep or not, and default value is
false
. - session
Time Double - Session keep time, only valid when
session_switch
is true, the available value ranges from 1 to 300 and unit is second. - source
Lists List<DayuL4Rule Source List> - Source list of the rule, it can be a set of ip sources or a set of domain sources. The number of items ranges from 1 to 20.
- source
Type Double - Source type,
1
for source of host,2
for source of IP.
- d
Port number - The destination port of the L4 rule.
- dayu
L4Rule stringId - ID of the resource.
- health
Check numberHealth Num - Health threshold of health check, and the default is 3. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is 2-10.
- health
Check numberInterval - Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
- health
Check booleanSwitch - Indicates whether health check is enabled. The default is
false
. Only valid when source list has more than one source item. - health
Check numberTimeout - HTTP Status Code. The default is 26 and value range is 2-60.
- health
Check numberUnhealth Num - Unhealthy threshold of health check, and the default is 3. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is 2-10.
- lb
Type number - LB type of the rule. Valid values:
1
,2
.1
for weight cycling and2
for IP hash. - name string
- Name of the rule. When the
resource_type
isnet
, this field should be set with valid domain. - protocol string
- Protocol of the rule. Valid values:
http
,https
. Whensource_type
is 1(host source), the value of this field can only set withtcp
. - resource
Id string - ID of the resource that the layer 4 rule works for.
- resource
Type string - Type of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - rule
Id string - ID of the layer 4 rule.
- s
Port number - The source port of the L4 rule.
- session
Switch boolean - Indicate that the session will keep or not, and default value is
false
. - session
Time number - Session keep time, only valid when
session_switch
is true, the available value ranges from 1 to 300 and unit is second. - source
Lists DayuL4Rule Source List[] - Source list of the rule, it can be a set of ip sources or a set of domain sources. The number of items ranges from 1 to 20.
- source
Type number - Source type,
1
for source of host,2
for source of IP.
- d_
port float - The destination port of the L4 rule.
- dayu_
l4_ strrule_ id - ID of the resource.
- health_
check_ floathealth_ num - Health threshold of health check, and the default is 3. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is 2-10.
- health_
check_ floatinterval - Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
- health_
check_ boolswitch - Indicates whether health check is enabled. The default is
false
. Only valid when source list has more than one source item. - health_
check_ floattimeout - HTTP Status Code. The default is 26 and value range is 2-60.
- health_
check_ floatunhealth_ num - Unhealthy threshold of health check, and the default is 3. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is 2-10.
- lb_
type float - LB type of the rule. Valid values:
1
,2
.1
for weight cycling and2
for IP hash. - name str
- Name of the rule. When the
resource_type
isnet
, this field should be set with valid domain. - protocol str
- Protocol of the rule. Valid values:
http
,https
. Whensource_type
is 1(host source), the value of this field can only set withtcp
. - resource_
id str - ID of the resource that the layer 4 rule works for.
- resource_
type str - Type of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - rule_
id str - ID of the layer 4 rule.
- s_
port float - The source port of the L4 rule.
- session_
switch bool - Indicate that the session will keep or not, and default value is
false
. - session_
time float - Session keep time, only valid when
session_switch
is true, the available value ranges from 1 to 300 and unit is second. - source_
lists Sequence[DayuL4Rule Source List Args] - Source list of the rule, it can be a set of ip sources or a set of domain sources. The number of items ranges from 1 to 20.
- source_
type float - Source type,
1
for source of host,2
for source of IP.
- d
Port Number - The destination port of the L4 rule.
- dayu
L4Rule StringId - ID of the resource.
- health
Check NumberHealth Num - Health threshold of health check, and the default is 3. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is 2-10.
- health
Check NumberInterval - Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
- health
Check BooleanSwitch - Indicates whether health check is enabled. The default is
false
. Only valid when source list has more than one source item. - health
Check NumberTimeout - HTTP Status Code. The default is 26 and value range is 2-60.
- health
Check NumberUnhealth Num - Unhealthy threshold of health check, and the default is 3. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is 2-10.
- lb
Type Number - LB type of the rule. Valid values:
1
,2
.1
for weight cycling and2
for IP hash. - name String
- Name of the rule. When the
resource_type
isnet
, this field should be set with valid domain. - protocol String
- Protocol of the rule. Valid values:
http
,https
. Whensource_type
is 1(host source), the value of this field can only set withtcp
. - resource
Id String - ID of the resource that the layer 4 rule works for.
- resource
Type String - Type of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - rule
Id String - ID of the layer 4 rule.
- s
Port Number - The source port of the L4 rule.
- session
Switch Boolean - Indicate that the session will keep or not, and default value is
false
. - session
Time Number - Session keep time, only valid when
session_switch
is true, the available value ranges from 1 to 300 and unit is second. - source
Lists List<Property Map> - Source list of the rule, it can be a set of ip sources or a set of domain sources. The number of items ranges from 1 to 20.
- source
Type Number - Source type,
1
for source of host,2
for source of IP.
Supporting Types
DayuL4RuleSourceList, DayuL4RuleSourceListArgs
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.