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

tencentcloud.DayuL7Rule

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 7 rule

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const testRule = new tencentcloud.DayuL7Rule("testRule", {
        domain: "zhaoshaona.com",
        healthCheckCode: 31,
        healthCheckHealthNum: 5,
        healthCheckInterval: 30,
        healthCheckMethod: "GET",
        healthCheckPath: "/",
        healthCheckSwitch: true,
        healthCheckUnhealthNum: 10,
        protocol: "https",
        resourceId: "bgpip-00000294",
        resourceType: "bgpip",
        sourceLists: [
            "1.1.1.1:80",
            "2.2.2.2",
        ],
        sourceType: 2,
        sslId: "%s",
        "switch": true,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    test_rule = tencentcloud.DayuL7Rule("testRule",
        domain="zhaoshaona.com",
        health_check_code=31,
        health_check_health_num=5,
        health_check_interval=30,
        health_check_method="GET",
        health_check_path="/",
        health_check_switch=True,
        health_check_unhealth_num=10,
        protocol="https",
        resource_id="bgpip-00000294",
        resource_type="bgpip",
        source_lists=[
            "1.1.1.1:80",
            "2.2.2.2",
        ],
        source_type=2,
        ssl_id="%s",
        switch=True)
    
    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.NewDayuL7Rule(ctx, "testRule", &tencentcloud.DayuL7RuleArgs{
    			Domain:                 pulumi.String("zhaoshaona.com"),
    			HealthCheckCode:        pulumi.Float64(31),
    			HealthCheckHealthNum:   pulumi.Float64(5),
    			HealthCheckInterval:    pulumi.Float64(30),
    			HealthCheckMethod:      pulumi.String("GET"),
    			HealthCheckPath:        pulumi.String("/"),
    			HealthCheckSwitch:      pulumi.Bool(true),
    			HealthCheckUnhealthNum: pulumi.Float64(10),
    			Protocol:               pulumi.String("https"),
    			ResourceId:             pulumi.String("bgpip-00000294"),
    			ResourceType:           pulumi.String("bgpip"),
    			SourceLists: pulumi.StringArray{
    				pulumi.String("1.1.1.1:80"),
    				pulumi.String("2.2.2.2"),
    			},
    			SourceType: pulumi.Float64(2),
    			SslId:      pulumi.String("%s"),
    			Switch:     pulumi.Bool(true),
    		})
    		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.DayuL7Rule("testRule", new()
        {
            Domain = "zhaoshaona.com",
            HealthCheckCode = 31,
            HealthCheckHealthNum = 5,
            HealthCheckInterval = 30,
            HealthCheckMethod = "GET",
            HealthCheckPath = "/",
            HealthCheckSwitch = true,
            HealthCheckUnhealthNum = 10,
            Protocol = "https",
            ResourceId = "bgpip-00000294",
            ResourceType = "bgpip",
            SourceLists = new[]
            {
                "1.1.1.1:80",
                "2.2.2.2",
            },
            SourceType = 2,
            SslId = "%s",
            Switch = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.DayuL7Rule;
    import com.pulumi.tencentcloud.DayuL7RuleArgs;
    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 DayuL7Rule("testRule", DayuL7RuleArgs.builder()
                .domain("zhaoshaona.com")
                .healthCheckCode(31)
                .healthCheckHealthNum(5)
                .healthCheckInterval(30)
                .healthCheckMethod("GET")
                .healthCheckPath("/")
                .healthCheckSwitch(true)
                .healthCheckUnhealthNum(10)
                .protocol("https")
                .resourceId("bgpip-00000294")
                .resourceType("bgpip")
                .sourceLists(            
                    "1.1.1.1:80",
                    "2.2.2.2")
                .sourceType(2)
                .sslId("%s")
                .switch_(true)
                .build());
    
        }
    }
    
    resources:
      testRule:
        type: tencentcloud:DayuL7Rule
        properties:
          domain: zhaoshaona.com
          healthCheckCode: 31
          healthCheckHealthNum: 5
          healthCheckInterval: 30
          healthCheckMethod: GET
          healthCheckPath: /
          healthCheckSwitch: true
          healthCheckUnhealthNum: 10
          protocol: https
          resourceId: bgpip-00000294
          resourceType: bgpip
          sourceLists:
            - 1.1.1.1:80
            - 2.2.2.2
          sourceType: 2
          sslId: '%s'
          switch: true
    

    Create DayuL7Rule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DayuL7Rule(name: string, args: DayuL7RuleArgs, opts?: CustomResourceOptions);
    @overload
    def DayuL7Rule(resource_name: str,
                   args: DayuL7RuleArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def DayuL7Rule(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   protocol: Optional[str] = None,
                   domain: Optional[str] = None,
                   switch: Optional[bool] = None,
                   source_type: Optional[float] = None,
                   source_lists: Optional[Sequence[str]] = None,
                   resource_type: Optional[str] = None,
                   resource_id: Optional[str] = None,
                   health_check_interval: Optional[float] = None,
                   health_check_unhealth_num: Optional[float] = None,
                   name: Optional[str] = None,
                   health_check_switch: Optional[bool] = None,
                   health_check_path: Optional[str] = None,
                   health_check_method: Optional[str] = None,
                   dayu_l7_rule_id: Optional[str] = None,
                   health_check_health_num: Optional[float] = None,
                   ssl_id: Optional[str] = None,
                   health_check_code: Optional[float] = None)
    func NewDayuL7Rule(ctx *Context, name string, args DayuL7RuleArgs, opts ...ResourceOption) (*DayuL7Rule, error)
    public DayuL7Rule(string name, DayuL7RuleArgs args, CustomResourceOptions? opts = null)
    public DayuL7Rule(String name, DayuL7RuleArgs args)
    public DayuL7Rule(String name, DayuL7RuleArgs args, CustomResourceOptions options)
    
    type: tencentcloud:DayuL7Rule
    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 DayuL7RuleArgs
    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 DayuL7RuleArgs
    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 DayuL7RuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DayuL7RuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DayuL7RuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    DayuL7Rule 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 DayuL7Rule resource accepts the following input properties:

    Domain string
    Domain that the layer 7 rule works for. Valid string length ranges from 0 to 80.
    Protocol string
    Protocol of the rule. Valid values: http, https.
    ResourceId string
    ID of the resource that the layer 7 rule works for.
    ResourceType string
    Type of the resource that the layer 7 rule works for, valid value is bgpip.
    SourceLists List<string>
    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 16.
    SourceType double
    Source type, 1 for source of host, 2 for source of IP.
    Switch bool
    Indicate the rule will take effect or not.
    DayuL7RuleId string
    ID of the resource.
    HealthCheckCode double
    HTTP Status Code. The default is 26. Valid value ranges: [1~31]. 1 means the return value '1xx' is health. 2 means the return value '2xx' is health. 4 means the return value '3xx' is health. 8 means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values.
    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. Valid value ranges: [10~60]sec. The default is 15 sec.
    HealthCheckMethod string
    Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
    HealthCheckPath string
    Path of health check. The default is /.
    HealthCheckSwitch bool
    Indicates whether health check is enabled. The default is false.
    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.
    SslId string
    SSL ID, when the protocol is https, the field should be set with valid SSL id.
    Domain string
    Domain that the layer 7 rule works for. Valid string length ranges from 0 to 80.
    Protocol string
    Protocol of the rule. Valid values: http, https.
    ResourceId string
    ID of the resource that the layer 7 rule works for.
    ResourceType string
    Type of the resource that the layer 7 rule works for, valid value is bgpip.
    SourceLists []string
    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 16.
    SourceType float64
    Source type, 1 for source of host, 2 for source of IP.
    Switch bool
    Indicate the rule will take effect or not.
    DayuL7RuleId string
    ID of the resource.
    HealthCheckCode float64
    HTTP Status Code. The default is 26. Valid value ranges: [1~31]. 1 means the return value '1xx' is health. 2 means the return value '2xx' is health. 4 means the return value '3xx' is health. 8 means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values.
    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. Valid value ranges: [10~60]sec. The default is 15 sec.
    HealthCheckMethod string
    Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
    HealthCheckPath string
    Path of health check. The default is /.
    HealthCheckSwitch bool
    Indicates whether health check is enabled. The default is false.
    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.
    SslId string
    SSL ID, when the protocol is https, the field should be set with valid SSL id.
    domain String
    Domain that the layer 7 rule works for. Valid string length ranges from 0 to 80.
    protocol String
    Protocol of the rule. Valid values: http, https.
    resourceId String
    ID of the resource that the layer 7 rule works for.
    resourceType String
    Type of the resource that the layer 7 rule works for, valid value is bgpip.
    sourceLists List<String>
    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 16.
    sourceType Double
    Source type, 1 for source of host, 2 for source of IP.
    switch_ Boolean
    Indicate the rule will take effect or not.
    dayuL7RuleId String
    ID of the resource.
    healthCheckCode Double
    HTTP Status Code. The default is 26. Valid value ranges: [1~31]. 1 means the return value '1xx' is health. 2 means the return value '2xx' is health. 4 means the return value '3xx' is health. 8 means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values.
    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. Valid value ranges: [10~60]sec. The default is 15 sec.
    healthCheckMethod String
    Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
    healthCheckPath String
    Path of health check. The default is /.
    healthCheckSwitch Boolean
    Indicates whether health check is enabled. The default is false.
    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.
    sslId String
    SSL ID, when the protocol is https, the field should be set with valid SSL id.
    domain string
    Domain that the layer 7 rule works for. Valid string length ranges from 0 to 80.
    protocol string
    Protocol of the rule. Valid values: http, https.
    resourceId string
    ID of the resource that the layer 7 rule works for.
    resourceType string
    Type of the resource that the layer 7 rule works for, valid value is bgpip.
    sourceLists string[]
    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 16.
    sourceType number
    Source type, 1 for source of host, 2 for source of IP.
    switch boolean
    Indicate the rule will take effect or not.
    dayuL7RuleId string
    ID of the resource.
    healthCheckCode number
    HTTP Status Code. The default is 26. Valid value ranges: [1~31]. 1 means the return value '1xx' is health. 2 means the return value '2xx' is health. 4 means the return value '3xx' is health. 8 means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values.
    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. Valid value ranges: [10~60]sec. The default is 15 sec.
    healthCheckMethod string
    Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
    healthCheckPath string
    Path of health check. The default is /.
    healthCheckSwitch boolean
    Indicates whether health check is enabled. The default is false.
    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.
    sslId string
    SSL ID, when the protocol is https, the field should be set with valid SSL id.
    domain str
    Domain that the layer 7 rule works for. Valid string length ranges from 0 to 80.
    protocol str
    Protocol of the rule. Valid values: http, https.
    resource_id str
    ID of the resource that the layer 7 rule works for.
    resource_type str
    Type of the resource that the layer 7 rule works for, valid value is bgpip.
    source_lists Sequence[str]
    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 16.
    source_type float
    Source type, 1 for source of host, 2 for source of IP.
    switch bool
    Indicate the rule will take effect or not.
    dayu_l7_rule_id str
    ID of the resource.
    health_check_code float
    HTTP Status Code. The default is 26. Valid value ranges: [1~31]. 1 means the return value '1xx' is health. 2 means the return value '2xx' is health. 4 means the return value '3xx' is health. 8 means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values.
    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. Valid value ranges: [10~60]sec. The default is 15 sec.
    health_check_method str
    Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
    health_check_path str
    Path of health check. The default is /.
    health_check_switch bool
    Indicates whether health check is enabled. The default is false.
    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.
    ssl_id str
    SSL ID, when the protocol is https, the field should be set with valid SSL id.
    domain String
    Domain that the layer 7 rule works for. Valid string length ranges from 0 to 80.
    protocol String
    Protocol of the rule. Valid values: http, https.
    resourceId String
    ID of the resource that the layer 7 rule works for.
    resourceType String
    Type of the resource that the layer 7 rule works for, valid value is bgpip.
    sourceLists List<String>
    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 16.
    sourceType Number
    Source type, 1 for source of host, 2 for source of IP.
    switch Boolean
    Indicate the rule will take effect or not.
    dayuL7RuleId String
    ID of the resource.
    healthCheckCode Number
    HTTP Status Code. The default is 26. Valid value ranges: [1~31]. 1 means the return value '1xx' is health. 2 means the return value '2xx' is health. 4 means the return value '3xx' is health. 8 means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values.
    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. Valid value ranges: [10~60]sec. The default is 15 sec.
    healthCheckMethod String
    Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
    healthCheckPath String
    Path of health check. The default is /.
    healthCheckSwitch Boolean
    Indicates whether health check is enabled. The default is false.
    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.
    sslId String
    SSL ID, when the protocol is https, the field should be set with valid SSL id.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DayuL7Rule resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId string
    ID of the layer 7 rule.
    Status double
    Status of the rule. 0 for create/modify success, 2 for create/modify fail, 3 for delete success, 5 for delete failed, 6 for waiting to be created/modified, 7 for waiting to be deleted and 8 for waiting to get SSL ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId string
    ID of the layer 7 rule.
    Status float64
    Status of the rule. 0 for create/modify success, 2 for create/modify fail, 3 for delete success, 5 for delete failed, 6 for waiting to be created/modified, 7 for waiting to be deleted and 8 for waiting to get SSL ID.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId String
    ID of the layer 7 rule.
    status Double
    Status of the rule. 0 for create/modify success, 2 for create/modify fail, 3 for delete success, 5 for delete failed, 6 for waiting to be created/modified, 7 for waiting to be deleted and 8 for waiting to get SSL ID.
    id string
    The provider-assigned unique ID for this managed resource.
    ruleId string
    ID of the layer 7 rule.
    status number
    Status of the rule. 0 for create/modify success, 2 for create/modify fail, 3 for delete success, 5 for delete failed, 6 for waiting to be created/modified, 7 for waiting to be deleted and 8 for waiting to get SSL ID.
    id str
    The provider-assigned unique ID for this managed resource.
    rule_id str
    ID of the layer 7 rule.
    status float
    Status of the rule. 0 for create/modify success, 2 for create/modify fail, 3 for delete success, 5 for delete failed, 6 for waiting to be created/modified, 7 for waiting to be deleted and 8 for waiting to get SSL ID.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId String
    ID of the layer 7 rule.
    status Number
    Status of the rule. 0 for create/modify success, 2 for create/modify fail, 3 for delete success, 5 for delete failed, 6 for waiting to be created/modified, 7 for waiting to be deleted and 8 for waiting to get SSL ID.

    Look up Existing DayuL7Rule Resource

    Get an existing DayuL7Rule 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?: DayuL7RuleState, opts?: CustomResourceOptions): DayuL7Rule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            dayu_l7_rule_id: Optional[str] = None,
            domain: Optional[str] = None,
            health_check_code: Optional[float] = None,
            health_check_health_num: Optional[float] = None,
            health_check_interval: Optional[float] = None,
            health_check_method: Optional[str] = None,
            health_check_path: Optional[str] = None,
            health_check_switch: Optional[bool] = None,
            health_check_unhealth_num: 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,
            source_lists: Optional[Sequence[str]] = None,
            source_type: Optional[float] = None,
            ssl_id: Optional[str] = None,
            status: Optional[float] = None,
            switch: Optional[bool] = None) -> DayuL7Rule
    func GetDayuL7Rule(ctx *Context, name string, id IDInput, state *DayuL7RuleState, opts ...ResourceOption) (*DayuL7Rule, error)
    public static DayuL7Rule Get(string name, Input<string> id, DayuL7RuleState? state, CustomResourceOptions? opts = null)
    public static DayuL7Rule get(String name, Output<String> id, DayuL7RuleState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:DayuL7Rule    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:
    DayuL7RuleId string
    ID of the resource.
    Domain string
    Domain that the layer 7 rule works for. Valid string length ranges from 0 to 80.
    HealthCheckCode double
    HTTP Status Code. The default is 26. Valid value ranges: [1~31]. 1 means the return value '1xx' is health. 2 means the return value '2xx' is health. 4 means the return value '3xx' is health. 8 means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values.
    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. Valid value ranges: [10~60]sec. The default is 15 sec.
    HealthCheckMethod string
    Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
    HealthCheckPath string
    Path of health check. The default is /.
    HealthCheckSwitch bool
    Indicates whether health check is enabled. The default is false.
    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.
    Protocol string
    Protocol of the rule. Valid values: http, https.
    ResourceId string
    ID of the resource that the layer 7 rule works for.
    ResourceType string
    Type of the resource that the layer 7 rule works for, valid value is bgpip.
    RuleId string
    ID of the layer 7 rule.
    SourceLists List<string>
    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 16.
    SourceType double
    Source type, 1 for source of host, 2 for source of IP.
    SslId string
    SSL ID, when the protocol is https, the field should be set with valid SSL id.
    Status double
    Status of the rule. 0 for create/modify success, 2 for create/modify fail, 3 for delete success, 5 for delete failed, 6 for waiting to be created/modified, 7 for waiting to be deleted and 8 for waiting to get SSL ID.
    Switch bool
    Indicate the rule will take effect or not.
    DayuL7RuleId string
    ID of the resource.
    Domain string
    Domain that the layer 7 rule works for. Valid string length ranges from 0 to 80.
    HealthCheckCode float64
    HTTP Status Code. The default is 26. Valid value ranges: [1~31]. 1 means the return value '1xx' is health. 2 means the return value '2xx' is health. 4 means the return value '3xx' is health. 8 means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values.
    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. Valid value ranges: [10~60]sec. The default is 15 sec.
    HealthCheckMethod string
    Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
    HealthCheckPath string
    Path of health check. The default is /.
    HealthCheckSwitch bool
    Indicates whether health check is enabled. The default is false.
    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.
    Protocol string
    Protocol of the rule. Valid values: http, https.
    ResourceId string
    ID of the resource that the layer 7 rule works for.
    ResourceType string
    Type of the resource that the layer 7 rule works for, valid value is bgpip.
    RuleId string
    ID of the layer 7 rule.
    SourceLists []string
    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 16.
    SourceType float64
    Source type, 1 for source of host, 2 for source of IP.
    SslId string
    SSL ID, when the protocol is https, the field should be set with valid SSL id.
    Status float64
    Status of the rule. 0 for create/modify success, 2 for create/modify fail, 3 for delete success, 5 for delete failed, 6 for waiting to be created/modified, 7 for waiting to be deleted and 8 for waiting to get SSL ID.
    Switch bool
    Indicate the rule will take effect or not.
    dayuL7RuleId String
    ID of the resource.
    domain String
    Domain that the layer 7 rule works for. Valid string length ranges from 0 to 80.
    healthCheckCode Double
    HTTP Status Code. The default is 26. Valid value ranges: [1~31]. 1 means the return value '1xx' is health. 2 means the return value '2xx' is health. 4 means the return value '3xx' is health. 8 means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values.
    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. Valid value ranges: [10~60]sec. The default is 15 sec.
    healthCheckMethod String
    Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
    healthCheckPath String
    Path of health check. The default is /.
    healthCheckSwitch Boolean
    Indicates whether health check is enabled. The default is false.
    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.
    protocol String
    Protocol of the rule. Valid values: http, https.
    resourceId String
    ID of the resource that the layer 7 rule works for.
    resourceType String
    Type of the resource that the layer 7 rule works for, valid value is bgpip.
    ruleId String
    ID of the layer 7 rule.
    sourceLists List<String>
    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 16.
    sourceType Double
    Source type, 1 for source of host, 2 for source of IP.
    sslId String
    SSL ID, when the protocol is https, the field should be set with valid SSL id.
    status Double
    Status of the rule. 0 for create/modify success, 2 for create/modify fail, 3 for delete success, 5 for delete failed, 6 for waiting to be created/modified, 7 for waiting to be deleted and 8 for waiting to get SSL ID.
    switch_ Boolean
    Indicate the rule will take effect or not.
    dayuL7RuleId string
    ID of the resource.
    domain string
    Domain that the layer 7 rule works for. Valid string length ranges from 0 to 80.
    healthCheckCode number
    HTTP Status Code. The default is 26. Valid value ranges: [1~31]. 1 means the return value '1xx' is health. 2 means the return value '2xx' is health. 4 means the return value '3xx' is health. 8 means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values.
    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. Valid value ranges: [10~60]sec. The default is 15 sec.
    healthCheckMethod string
    Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
    healthCheckPath string
    Path of health check. The default is /.
    healthCheckSwitch boolean
    Indicates whether health check is enabled. The default is false.
    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.
    protocol string
    Protocol of the rule. Valid values: http, https.
    resourceId string
    ID of the resource that the layer 7 rule works for.
    resourceType string
    Type of the resource that the layer 7 rule works for, valid value is bgpip.
    ruleId string
    ID of the layer 7 rule.
    sourceLists string[]
    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 16.
    sourceType number
    Source type, 1 for source of host, 2 for source of IP.
    sslId string
    SSL ID, when the protocol is https, the field should be set with valid SSL id.
    status number
    Status of the rule. 0 for create/modify success, 2 for create/modify fail, 3 for delete success, 5 for delete failed, 6 for waiting to be created/modified, 7 for waiting to be deleted and 8 for waiting to get SSL ID.
    switch boolean
    Indicate the rule will take effect or not.
    dayu_l7_rule_id str
    ID of the resource.
    domain str
    Domain that the layer 7 rule works for. Valid string length ranges from 0 to 80.
    health_check_code float
    HTTP Status Code. The default is 26. Valid value ranges: [1~31]. 1 means the return value '1xx' is health. 2 means the return value '2xx' is health. 4 means the return value '3xx' is health. 8 means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values.
    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. Valid value ranges: [10~60]sec. The default is 15 sec.
    health_check_method str
    Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
    health_check_path str
    Path of health check. The default is /.
    health_check_switch bool
    Indicates whether health check is enabled. The default is false.
    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.
    protocol str
    Protocol of the rule. Valid values: http, https.
    resource_id str
    ID of the resource that the layer 7 rule works for.
    resource_type str
    Type of the resource that the layer 7 rule works for, valid value is bgpip.
    rule_id str
    ID of the layer 7 rule.
    source_lists Sequence[str]
    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 16.
    source_type float
    Source type, 1 for source of host, 2 for source of IP.
    ssl_id str
    SSL ID, when the protocol is https, the field should be set with valid SSL id.
    status float
    Status of the rule. 0 for create/modify success, 2 for create/modify fail, 3 for delete success, 5 for delete failed, 6 for waiting to be created/modified, 7 for waiting to be deleted and 8 for waiting to get SSL ID.
    switch bool
    Indicate the rule will take effect or not.
    dayuL7RuleId String
    ID of the resource.
    domain String
    Domain that the layer 7 rule works for. Valid string length ranges from 0 to 80.
    healthCheckCode Number
    HTTP Status Code. The default is 26. Valid value ranges: [1~31]. 1 means the return value '1xx' is health. 2 means the return value '2xx' is health. 4 means the return value '3xx' is health. 8 means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values.
    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. Valid value ranges: [10~60]sec. The default is 15 sec.
    healthCheckMethod String
    Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
    healthCheckPath String
    Path of health check. The default is /.
    healthCheckSwitch Boolean
    Indicates whether health check is enabled. The default is false.
    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.
    protocol String
    Protocol of the rule. Valid values: http, https.
    resourceId String
    ID of the resource that the layer 7 rule works for.
    resourceType String
    Type of the resource that the layer 7 rule works for, valid value is bgpip.
    ruleId String
    ID of the layer 7 rule.
    sourceLists List<String>
    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 16.
    sourceType Number
    Source type, 1 for source of host, 2 for source of IP.
    sslId String
    SSL ID, when the protocol is https, the field should be set with valid SSL id.
    status Number
    Status of the rule. 0 for create/modify success, 2 for create/modify fail, 3 for delete success, 5 for delete failed, 6 for waiting to be created/modified, 7 for waiting to be deleted and 8 for waiting to get SSL ID.
    switch Boolean
    Indicate the rule will take effect or not.

    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