1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. DayuL4Rule
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.DayuL4Rule

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this resource to create dayu layer 4 rule

    NOTE: This resource only support resource Anti-DDoS of type bgpip and net

    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. When source_type is 1(host source), the value of this field can only set with tcp.
    ResourceId string
    ID of the resource that the layer 4 rule works for.
    ResourceType string
    Type of the resource that the layer 4 rule works for. Valid values: bgpip and net.
    SPort double
    The source port of the L4 rule.
    SourceLists List<DayuL4RuleSourceList>
    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.
    SourceType double
    Source type, 1 for source of host, 2 for source of IP.
    DayuL4RuleId string
    ID of the resource.
    HealthCheckHealthNum double
    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.
    HealthCheckInterval double
    Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
    HealthCheckSwitch bool
    Indicates whether health check is enabled. The default is false. Only valid when source list has more than one source item.
    HealthCheckTimeout double
    HTTP Status Code. The default is 26 and value range is 2-60.
    HealthCheckUnhealthNum double
    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 is net, this field should be set with valid domain.
    SessionSwitch bool
    Indicate that the session will keep or not, and default value is false.
    SessionTime 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. When source_type is 1(host source), the value of this field can only set with tcp.
    ResourceId string
    ID of the resource that the layer 4 rule works for.
    ResourceType string
    Type of the resource that the layer 4 rule works for. Valid values: bgpip and net.
    SPort float64
    The source port of the L4 rule.
    SourceLists []DayuL4RuleSourceListArgs
    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.
    SourceType float64
    Source type, 1 for source of host, 2 for source of IP.
    DayuL4RuleId string
    ID of the resource.
    HealthCheckHealthNum float64
    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.
    HealthCheckInterval float64
    Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
    HealthCheckSwitch bool
    Indicates whether health check is enabled. The default is false. Only valid when source list has more than one source item.
    HealthCheckTimeout float64
    HTTP Status Code. The default is 26 and value range is 2-60.
    HealthCheckUnhealthNum float64
    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 is net, this field should be set with valid domain.
    SessionSwitch bool
    Indicate that the session will keep or not, and default value is false.
    SessionTime float64
    Session keep time, only valid when session_switch is true, the available value ranges from 1 to 300 and unit is second.
    dPort Double
    The destination port of the L4 rule.
    protocol String
    Protocol of the rule. Valid values: http, https. When source_type is 1(host source), the value of this field can only set with tcp.
    resourceId String
    ID of the resource that the layer 4 rule works for.
    resourceType String
    Type of the resource that the layer 4 rule works for. Valid values: bgpip and net.
    sPort Double
    The source port of the L4 rule.
    sourceLists List<DayuL4RuleSourceList>
    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.
    sourceType Double
    Source type, 1 for source of host, 2 for source of IP.
    dayuL4RuleId String
    ID of the resource.
    healthCheckHealthNum Double
    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.
    healthCheckInterval Double
    Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
    healthCheckSwitch Boolean
    Indicates whether health check is enabled. The default is false. Only valid when source list has more than one source item.
    healthCheckTimeout Double
    HTTP Status Code. The default is 26 and value range is 2-60.
    healthCheckUnhealthNum Double
    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 is net, this field should be set with valid domain.
    sessionSwitch Boolean
    Indicate that the session will keep or not, and default value is false.
    sessionTime Double
    Session keep time, only valid when session_switch is true, the available value ranges from 1 to 300 and unit is second.
    dPort number
    The destination port of the L4 rule.
    protocol string
    Protocol of the rule. Valid values: http, https. When source_type is 1(host source), the value of this field can only set with tcp.
    resourceId string
    ID of the resource that the layer 4 rule works for.
    resourceType string
    Type of the resource that the layer 4 rule works for. Valid values: bgpip and net.
    sPort number
    The source port of the L4 rule.
    sourceLists DayuL4RuleSourceList[]
    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.
    sourceType number
    Source type, 1 for source of host, 2 for source of IP.
    dayuL4RuleId string
    ID of the resource.
    healthCheckHealthNum number
    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.
    healthCheckInterval number
    Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
    healthCheckSwitch boolean
    Indicates whether health check is enabled. The default is false. Only valid when source list has more than one source item.
    healthCheckTimeout number
    HTTP Status Code. The default is 26 and value range is 2-60.
    healthCheckUnhealthNum number
    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 is net, this field should be set with valid domain.
    sessionSwitch boolean
    Indicate that the session will keep or not, and default value is false.
    sessionTime 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. When source_type is 1(host source), the value of this field can only set with tcp.
    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 and net.
    s_port float
    The source port of the L4 rule.
    source_lists Sequence[DayuL4RuleSourceListArgs]
    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_rule_id str
    ID of the resource.
    health_check_health_num float
    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_interval float
    Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
    health_check_switch bool
    Indicates whether health check is enabled. The default is false. Only valid when source list has more than one source item.
    health_check_timeout float
    HTTP Status Code. The default is 26 and value range is 2-60.
    health_check_unhealth_num float
    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 is net, 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.
    dPort Number
    The destination port of the L4 rule.
    protocol String
    Protocol of the rule. Valid values: http, https. When source_type is 1(host source), the value of this field can only set with tcp.
    resourceId String
    ID of the resource that the layer 4 rule works for.
    resourceType String
    Type of the resource that the layer 4 rule works for. Valid values: bgpip and net.
    sPort Number
    The source port of the L4 rule.
    sourceLists 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.
    sourceType Number
    Source type, 1 for source of host, 2 for source of IP.
    dayuL4RuleId String
    ID of the resource.
    healthCheckHealthNum Number
    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.
    healthCheckInterval Number
    Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
    healthCheckSwitch Boolean
    Indicates whether health check is enabled. The default is false. Only valid when source list has more than one source item.
    healthCheckTimeout Number
    HTTP Status Code. The default is 26 and value range is 2-60.
    healthCheckUnhealthNum Number
    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 is net, this field should be set with valid domain.
    sessionSwitch Boolean
    Indicate that the session will keep or not, and default value is false.
    sessionTime 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:

    Id string
    The provider-assigned unique ID for this managed resource.
    LbType double
    LB type of the rule. Valid values: 1, 2. 1 for weight cycling and 2 for IP hash.
    RuleId string
    ID of the layer 4 rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    LbType float64
    LB type of the rule. Valid values: 1, 2. 1 for weight cycling and 2 for IP hash.
    RuleId string
    ID of the layer 4 rule.
    id String
    The provider-assigned unique ID for this managed resource.
    lbType Double
    LB type of the rule. Valid values: 1, 2. 1 for weight cycling and 2 for IP hash.
    ruleId String
    ID of the layer 4 rule.
    id string
    The provider-assigned unique ID for this managed resource.
    lbType number
    LB type of the rule. Valid values: 1, 2. 1 for weight cycling and 2 for IP hash.
    ruleId string
    ID of the layer 4 rule.
    id str
    The provider-assigned unique ID for this managed resource.
    lb_type float
    LB type of the rule. Valid values: 1, 2. 1 for weight cycling and 2 for IP hash.
    rule_id str
    ID of the layer 4 rule.
    id String
    The provider-assigned unique ID for this managed resource.
    lbType Number
    LB type of the rule. Valid values: 1, 2. 1 for weight cycling and 2 for IP hash.
    ruleId String
    ID of the layer 4 rule.

    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.
    The following state arguments are supported:
    DPort double
    The destination port of the L4 rule.
    DayuL4RuleId string
    ID of the resource.
    HealthCheckHealthNum double
    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.
    HealthCheckInterval double
    Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
    HealthCheckSwitch bool
    Indicates whether health check is enabled. The default is false. Only valid when source list has more than one source item.
    HealthCheckTimeout double
    HTTP Status Code. The default is 26 and value range is 2-60.
    HealthCheckUnhealthNum double
    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.
    LbType double
    LB type of the rule. Valid values: 1, 2. 1 for weight cycling and 2 for IP hash.
    Name string
    Name of the rule. When the resource_type is net, this field should be set with valid domain.
    Protocol string
    Protocol of the rule. Valid values: http, https. When source_type is 1(host source), the value of this field can only set with tcp.
    ResourceId string
    ID of the resource that the layer 4 rule works for.
    ResourceType string
    Type of the resource that the layer 4 rule works for. Valid values: bgpip and net.
    RuleId string
    ID of the layer 4 rule.
    SPort double
    The source port of the L4 rule.
    SessionSwitch bool
    Indicate that the session will keep or not, and default value is false.
    SessionTime double
    Session keep time, only valid when session_switch is true, the available value ranges from 1 to 300 and unit is second.
    SourceLists List<DayuL4RuleSourceList>
    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.
    SourceType double
    Source type, 1 for source of host, 2 for source of IP.
    DPort float64
    The destination port of the L4 rule.
    DayuL4RuleId string
    ID of the resource.
    HealthCheckHealthNum float64
    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.
    HealthCheckInterval float64
    Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
    HealthCheckSwitch bool
    Indicates whether health check is enabled. The default is false. Only valid when source list has more than one source item.
    HealthCheckTimeout float64
    HTTP Status Code. The default is 26 and value range is 2-60.
    HealthCheckUnhealthNum float64
    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.
    LbType float64
    LB type of the rule. Valid values: 1, 2. 1 for weight cycling and 2 for IP hash.
    Name string
    Name of the rule. When the resource_type is net, this field should be set with valid domain.
    Protocol string
    Protocol of the rule. Valid values: http, https. When source_type is 1(host source), the value of this field can only set with tcp.
    ResourceId string
    ID of the resource that the layer 4 rule works for.
    ResourceType string
    Type of the resource that the layer 4 rule works for. Valid values: bgpip and net.
    RuleId string
    ID of the layer 4 rule.
    SPort float64
    The source port of the L4 rule.
    SessionSwitch bool
    Indicate that the session will keep or not, and default value is false.
    SessionTime float64
    Session keep time, only valid when session_switch is true, the available value ranges from 1 to 300 and unit is second.
    SourceLists []DayuL4RuleSourceListArgs
    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.
    SourceType float64
    Source type, 1 for source of host, 2 for source of IP.
    dPort Double
    The destination port of the L4 rule.
    dayuL4RuleId String
    ID of the resource.
    healthCheckHealthNum Double
    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.
    healthCheckInterval Double
    Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
    healthCheckSwitch Boolean
    Indicates whether health check is enabled. The default is false. Only valid when source list has more than one source item.
    healthCheckTimeout Double
    HTTP Status Code. The default is 26 and value range is 2-60.
    healthCheckUnhealthNum Double
    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.
    lbType Double
    LB type of the rule. Valid values: 1, 2. 1 for weight cycling and 2 for IP hash.
    name String
    Name of the rule. When the resource_type is net, this field should be set with valid domain.
    protocol String
    Protocol of the rule. Valid values: http, https. When source_type is 1(host source), the value of this field can only set with tcp.
    resourceId String
    ID of the resource that the layer 4 rule works for.
    resourceType String
    Type of the resource that the layer 4 rule works for. Valid values: bgpip and net.
    ruleId String
    ID of the layer 4 rule.
    sPort Double
    The source port of the L4 rule.
    sessionSwitch Boolean
    Indicate that the session will keep or not, and default value is false.
    sessionTime Double
    Session keep time, only valid when session_switch is true, the available value ranges from 1 to 300 and unit is second.
    sourceLists List<DayuL4RuleSourceList>
    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.
    sourceType Double
    Source type, 1 for source of host, 2 for source of IP.
    dPort number
    The destination port of the L4 rule.
    dayuL4RuleId string
    ID of the resource.
    healthCheckHealthNum number
    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.
    healthCheckInterval number
    Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
    healthCheckSwitch boolean
    Indicates whether health check is enabled. The default is false. Only valid when source list has more than one source item.
    healthCheckTimeout number
    HTTP Status Code. The default is 26 and value range is 2-60.
    healthCheckUnhealthNum number
    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.
    lbType number
    LB type of the rule. Valid values: 1, 2. 1 for weight cycling and 2 for IP hash.
    name string
    Name of the rule. When the resource_type is net, this field should be set with valid domain.
    protocol string
    Protocol of the rule. Valid values: http, https. When source_type is 1(host source), the value of this field can only set with tcp.
    resourceId string
    ID of the resource that the layer 4 rule works for.
    resourceType string
    Type of the resource that the layer 4 rule works for. Valid values: bgpip and net.
    ruleId string
    ID of the layer 4 rule.
    sPort number
    The source port of the L4 rule.
    sessionSwitch boolean
    Indicate that the session will keep or not, and default value is false.
    sessionTime number
    Session keep time, only valid when session_switch is true, the available value ranges from 1 to 300 and unit is second.
    sourceLists DayuL4RuleSourceList[]
    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.
    sourceType 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_rule_id str
    ID of the resource.
    health_check_health_num float
    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_interval float
    Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
    health_check_switch bool
    Indicates whether health check is enabled. The default is false. Only valid when source list has more than one source item.
    health_check_timeout float
    HTTP Status Code. The default is 26 and value range is 2-60.
    health_check_unhealth_num float
    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 and 2 for IP hash.
    name str
    Name of the rule. When the resource_type is net, this field should be set with valid domain.
    protocol str
    Protocol of the rule. Valid values: http, https. When source_type is 1(host source), the value of this field can only set with tcp.
    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 and net.
    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[DayuL4RuleSourceListArgs]
    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.
    dPort Number
    The destination port of the L4 rule.
    dayuL4RuleId String
    ID of the resource.
    healthCheckHealthNum Number
    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.
    healthCheckInterval Number
    Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
    healthCheckSwitch Boolean
    Indicates whether health check is enabled. The default is false. Only valid when source list has more than one source item.
    healthCheckTimeout Number
    HTTP Status Code. The default is 26 and value range is 2-60.
    healthCheckUnhealthNum Number
    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.
    lbType Number
    LB type of the rule. Valid values: 1, 2. 1 for weight cycling and 2 for IP hash.
    name String
    Name of the rule. When the resource_type is net, this field should be set with valid domain.
    protocol String
    Protocol of the rule. Valid values: http, https. When source_type is 1(host source), the value of this field can only set with tcp.
    resourceId String
    ID of the resource that the layer 4 rule works for.
    resourceType String
    Type of the resource that the layer 4 rule works for. Valid values: bgpip and net.
    ruleId String
    ID of the layer 4 rule.
    sPort Number
    The source port of the L4 rule.
    sessionSwitch Boolean
    Indicate that the session will keep or not, and default value is false.
    sessionTime Number
    Session keep time, only valid when session_switch is true, the available value ranges from 1 to 300 and unit is second.
    sourceLists 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.
    sourceType Number
    Source type, 1 for source of host, 2 for source of IP.

    Supporting Types

    DayuL4RuleSourceList, DayuL4RuleSourceListArgs

    Source string
    Source IP or domain, valid format of ip is like 1.1.1.1 and valid format of host source is like abc.com.
    Weight double
    Weight of the source, the valid value ranges from 0 to 100.
    Source string
    Source IP or domain, valid format of ip is like 1.1.1.1 and valid format of host source is like abc.com.
    Weight float64
    Weight of the source, the valid value ranges from 0 to 100.
    source String
    Source IP or domain, valid format of ip is like 1.1.1.1 and valid format of host source is like abc.com.
    weight Double
    Weight of the source, the valid value ranges from 0 to 100.
    source string
    Source IP or domain, valid format of ip is like 1.1.1.1 and valid format of host source is like abc.com.
    weight number
    Weight of the source, the valid value ranges from 0 to 100.
    source str
    Source IP or domain, valid format of ip is like 1.1.1.1 and valid format of host source is like abc.com.
    weight float
    Weight of the source, the valid value ranges from 0 to 100.
    source String
    Source IP or domain, valid format of ip is like 1.1.1.1 and valid format of host source is like abc.com.
    weight Number
    Weight of the source, the valid value ranges from 0 to 100.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack