tencentcloud.DayuL7Rule
Explore with Pulumi AI
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
. - Resource
Id string - ID of the resource that the layer 7 rule works for.
- Resource
Type string - Type of the resource that the layer 7 rule works for, valid value is
bgpip
. - Source
Lists 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.
- Source
Type double - Source type,
1
for source of host,2
for source of IP. - Switch bool
- Indicate the rule will take effect or not.
- Dayu
L7Rule stringId - ID of the resource.
- Health
Check doubleCode - 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 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. Valid value ranges: [10~60]sec. The default is 15 sec.
- Health
Check stringMethod - Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
- Health
Check stringPath - Path of health check. The default is
/
. - Health
Check boolSwitch - Indicates whether health check is enabled. The default is
false
. - 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.
- Ssl
Id string - SSL ID, when the
protocol
ishttps
, 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
. - Resource
Id string - ID of the resource that the layer 7 rule works for.
- Resource
Type string - Type of the resource that the layer 7 rule works for, valid value is
bgpip
. - Source
Lists []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.
- Source
Type float64 - Source type,
1
for source of host,2
for source of IP. - Switch bool
- Indicate the rule will take effect or not.
- Dayu
L7Rule stringId - ID of the resource.
- Health
Check float64Code - 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 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. Valid value ranges: [10~60]sec. The default is 15 sec.
- Health
Check stringMethod - Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
- Health
Check stringPath - Path of health check. The default is
/
. - Health
Check boolSwitch - Indicates whether health check is enabled. The default is
false
. - 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.
- Ssl
Id string - SSL ID, when the
protocol
ishttps
, 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
. - resource
Id String - ID of the resource that the layer 7 rule works for.
- resource
Type String - Type of the resource that the layer 7 rule works for, valid value is
bgpip
. - source
Lists 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.
- source
Type Double - Source type,
1
for source of host,2
for source of IP. - switch_ Boolean
- Indicate the rule will take effect or not.
- dayu
L7Rule StringId - ID of the resource.
- health
Check DoubleCode - 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 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. Valid value ranges: [10~60]sec. The default is 15 sec.
- health
Check StringMethod - Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
- health
Check StringPath - Path of health check. The default is
/
. - health
Check BooleanSwitch - Indicates whether health check is enabled. The default is
false
. - 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.
- ssl
Id String - SSL ID, when the
protocol
ishttps
, 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
. - resource
Id string - ID of the resource that the layer 7 rule works for.
- resource
Type string - Type of the resource that the layer 7 rule works for, valid value is
bgpip
. - source
Lists 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.
- source
Type number - Source type,
1
for source of host,2
for source of IP. - switch boolean
- Indicate the rule will take effect or not.
- dayu
L7Rule stringId - ID of the resource.
- health
Check numberCode - 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 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. Valid value ranges: [10~60]sec. The default is 15 sec.
- health
Check stringMethod - Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
- health
Check stringPath - Path of health check. The default is
/
. - health
Check booleanSwitch - Indicates whether health check is enabled. The default is
false
. - 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.
- ssl
Id string - SSL ID, when the
protocol
ishttps
, 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_ strrule_ id - ID of the resource.
- health_
check_ floatcode - 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_ 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. Valid value ranges: [10~60]sec. The default is 15 sec.
- health_
check_ strmethod - Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
- health_
check_ strpath - Path of health check. The default is
/
. - health_
check_ boolswitch - Indicates whether health check is enabled. The default is
false
. - 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.
- ssl_
id str - SSL ID, when the
protocol
ishttps
, 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
. - resource
Id String - ID of the resource that the layer 7 rule works for.
- resource
Type String - Type of the resource that the layer 7 rule works for, valid value is
bgpip
. - source
Lists 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.
- source
Type Number - Source type,
1
for source of host,2
for source of IP. - switch Boolean
- Indicate the rule will take effect or not.
- dayu
L7Rule StringId - ID of the resource.
- health
Check NumberCode - 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 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. Valid value ranges: [10~60]sec. The default is 15 sec.
- health
Check StringMethod - Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
- health
Check StringPath - Path of health check. The default is
/
. - health
Check BooleanSwitch - Indicates whether health check is enabled. The default is
false
. - 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.
- ssl
Id String - SSL ID, when the
protocol
ishttps
, 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.
- Rule
Id 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.
- Rule
Id 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.
- rule
Id 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.
- rule
Id 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.
- rule
Id 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.
- Dayu
L7Rule stringId - ID of the resource.
- Domain string
- Domain that the layer 7 rule works for. Valid string length ranges from 0 to 80.
- Health
Check doubleCode - 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 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. Valid value ranges: [10~60]sec. The default is 15 sec.
- Health
Check stringMethod - Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
- Health
Check stringPath - Path of health check. The default is
/
. - Health
Check boolSwitch - Indicates whether health check is enabled. The default is
false
. - 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.
- Protocol string
- Protocol of the rule. Valid values:
http
,https
. - Resource
Id string - ID of the resource that the layer 7 rule works for.
- Resource
Type string - Type of the resource that the layer 7 rule works for, valid value is
bgpip
. - Rule
Id string - ID of the layer 7 rule.
- Source
Lists 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.
- Source
Type double - Source type,
1
for source of host,2
for source of IP. - Ssl
Id string - SSL ID, when the
protocol
ishttps
, 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.
- Dayu
L7Rule stringId - ID of the resource.
- Domain string
- Domain that the layer 7 rule works for. Valid string length ranges from 0 to 80.
- Health
Check float64Code - 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 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. Valid value ranges: [10~60]sec. The default is 15 sec.
- Health
Check stringMethod - Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
- Health
Check stringPath - Path of health check. The default is
/
. - Health
Check boolSwitch - Indicates whether health check is enabled. The default is
false
. - 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.
- Protocol string
- Protocol of the rule. Valid values:
http
,https
. - Resource
Id string - ID of the resource that the layer 7 rule works for.
- Resource
Type string - Type of the resource that the layer 7 rule works for, valid value is
bgpip
. - Rule
Id string - ID of the layer 7 rule.
- Source
Lists []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.
- Source
Type float64 - Source type,
1
for source of host,2
for source of IP. - Ssl
Id string - SSL ID, when the
protocol
ishttps
, 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.
- dayu
L7Rule StringId - ID of the resource.
- domain String
- Domain that the layer 7 rule works for. Valid string length ranges from 0 to 80.
- health
Check DoubleCode - 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 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. Valid value ranges: [10~60]sec. The default is 15 sec.
- health
Check StringMethod - Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
- health
Check StringPath - Path of health check. The default is
/
. - health
Check BooleanSwitch - Indicates whether health check is enabled. The default is
false
. - 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.
- protocol String
- Protocol of the rule. Valid values:
http
,https
. - resource
Id String - ID of the resource that the layer 7 rule works for.
- resource
Type String - Type of the resource that the layer 7 rule works for, valid value is
bgpip
. - rule
Id String - ID of the layer 7 rule.
- source
Lists 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.
- source
Type Double - Source type,
1
for source of host,2
for source of IP. - ssl
Id String - SSL ID, when the
protocol
ishttps
, 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.
- dayu
L7Rule stringId - ID of the resource.
- domain string
- Domain that the layer 7 rule works for. Valid string length ranges from 0 to 80.
- health
Check numberCode - 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 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. Valid value ranges: [10~60]sec. The default is 15 sec.
- health
Check stringMethod - Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
- health
Check stringPath - Path of health check. The default is
/
. - health
Check booleanSwitch - Indicates whether health check is enabled. The default is
false
. - 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.
- protocol string
- Protocol of the rule. Valid values:
http
,https
. - resource
Id string - ID of the resource that the layer 7 rule works for.
- resource
Type string - Type of the resource that the layer 7 rule works for, valid value is
bgpip
. - rule
Id string - ID of the layer 7 rule.
- source
Lists 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.
- source
Type number - Source type,
1
for source of host,2
for source of IP. - ssl
Id string - SSL ID, when the
protocol
ishttps
, 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_ strrule_ id - ID of the resource.
- domain str
- Domain that the layer 7 rule works for. Valid string length ranges from 0 to 80.
- health_
check_ floatcode - 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_ 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. Valid value ranges: [10~60]sec. The default is 15 sec.
- health_
check_ strmethod - Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
- health_
check_ strpath - Path of health check. The default is
/
. - health_
check_ boolswitch - Indicates whether health check is enabled. The default is
false
. - 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.
- 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
ishttps
, 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.
- dayu
L7Rule StringId - ID of the resource.
- domain String
- Domain that the layer 7 rule works for. Valid string length ranges from 0 to 80.
- health
Check NumberCode - 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 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. Valid value ranges: [10~60]sec. The default is 15 sec.
- health
Check StringMethod - Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
- health
Check StringPath - Path of health check. The default is
/
. - health
Check BooleanSwitch - Indicates whether health check is enabled. The default is
false
. - 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.
- protocol String
- Protocol of the rule. Valid values:
http
,https
. - resource
Id String - ID of the resource that the layer 7 rule works for.
- resource
Type String - Type of the resource that the layer 7 rule works for, valid value is
bgpip
. - rule
Id String - ID of the layer 7 rule.
- source
Lists 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.
- source
Type Number - Source type,
1
for source of host,2
for source of IP. - ssl
Id String - SSL ID, when the
protocol
ishttps
, 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.