published on Monday, Mar 9, 2026 by Byteplus
published on Monday, Mar 9, 2026 by Byteplus
健康检查是确保应用程序是否可用的关键功能。ALB 通过定期对后端服务器进行健康检查,来验证这些服务器是否可以接受新的请求。当一个后端服务器不能正常响应 ALB 的健康检查请求时,来自客户端的流量不会被路由到该服务器。ALB 会将流量转发至其他状态为正常的服务器上。从而保证了服务的连续性和可靠性。ALB 健康检查是基于服务器组进行的。服务器组启用健康检查后,ALB 定期检查服务器组内的后端服务器状态。
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
const aLBHealthCheckTemplateDemo = new bytepluscc.alb.HealthCheckTemplate("ALBHealthCheckTemplateDemo", {
description: "asdfgh",
healthCheckDomain: "test.com",
healthCheckHttpCode: "http_2xx,http_3xx",
healthCheckHttpVersion: "HTTP1.0",
healthCheckInterval: 2,
healthCheckMethod: "HEAD",
healthCheckPort: 0,
healthCheckProtocol: "HTTP",
healthCheckTemplateName: "test-test-1001",
healthCheckTimeout: 2,
healthCheckUri: "/",
healthyThreshold: 3,
unhealthyThreshold: 3,
projectName: "default",
tags: [{
key: "env",
value: "test",
}],
});
import pulumi
import pulumi_bytepluscc as bytepluscc
a_lb_health_check_template_demo = bytepluscc.alb.HealthCheckTemplate("ALBHealthCheckTemplateDemo",
description="asdfgh",
health_check_domain="test.com",
health_check_http_code="http_2xx,http_3xx",
health_check_http_version="HTTP1.0",
health_check_interval=2,
health_check_method="HEAD",
health_check_port=0,
health_check_protocol="HTTP",
health_check_template_name="test-test-1001",
health_check_timeout=2,
health_check_uri="/",
healthy_threshold=3,
unhealthy_threshold=3,
project_name="default",
tags=[{
"key": "env",
"value": "test",
}])
package main
import (
"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/alb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := alb.NewHealthCheckTemplate(ctx, "ALBHealthCheckTemplateDemo", &alb.HealthCheckTemplateArgs{
Description: pulumi.String("asdfgh"),
HealthCheckDomain: pulumi.String("test.com"),
HealthCheckHttpCode: pulumi.String("http_2xx,http_3xx"),
HealthCheckHttpVersion: pulumi.String("HTTP1.0"),
HealthCheckInterval: pulumi.Int(2),
HealthCheckMethod: pulumi.String("HEAD"),
HealthCheckPort: pulumi.Int(0),
HealthCheckProtocol: pulumi.String("HTTP"),
HealthCheckTemplateName: pulumi.String("test-test-1001"),
HealthCheckTimeout: pulumi.Int(2),
HealthCheckUri: pulumi.String("/"),
HealthyThreshold: pulumi.Int(3),
UnhealthyThreshold: pulumi.Int(3),
ProjectName: pulumi.String("default"),
Tags: alb.HealthCheckTemplateTagArray{
&alb.HealthCheckTemplateTagArgs{
Key: pulumi.String("env"),
Value: pulumi.String("test"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
return await Deployment.RunAsync(() =>
{
var aLBHealthCheckTemplateDemo = new Bytepluscc.Alb.HealthCheckTemplate("ALBHealthCheckTemplateDemo", new()
{
Description = "asdfgh",
HealthCheckDomain = "test.com",
HealthCheckHttpCode = "http_2xx,http_3xx",
HealthCheckHttpVersion = "HTTP1.0",
HealthCheckInterval = 2,
HealthCheckMethod = "HEAD",
HealthCheckPort = 0,
HealthCheckProtocol = "HTTP",
HealthCheckTemplateName = "test-test-1001",
HealthCheckTimeout = 2,
HealthCheckUri = "/",
HealthyThreshold = 3,
UnhealthyThreshold = 3,
ProjectName = "default",
Tags = new[]
{
new Bytepluscc.Alb.Inputs.HealthCheckTemplateTagArgs
{
Key = "env",
Value = "test",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.byteplus.bytepluscc.alb.HealthCheckTemplate;
import com.byteplus.bytepluscc.alb.HealthCheckTemplateArgs;
import com.pulumi.bytepluscc.alb.inputs.HealthCheckTemplateTagArgs;
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 aLBHealthCheckTemplateDemo = new HealthCheckTemplate("aLBHealthCheckTemplateDemo", HealthCheckTemplateArgs.builder()
.description("asdfgh")
.healthCheckDomain("test.com")
.healthCheckHttpCode("http_2xx,http_3xx")
.healthCheckHttpVersion("HTTP1.0")
.healthCheckInterval(2)
.healthCheckMethod("HEAD")
.healthCheckPort(0)
.healthCheckProtocol("HTTP")
.healthCheckTemplateName("test-test-1001")
.healthCheckTimeout(2)
.healthCheckUri("/")
.healthyThreshold(3)
.unhealthyThreshold(3)
.projectName("default")
.tags(HealthCheckTemplateTagArgs.builder()
.key("env")
.value("test")
.build())
.build());
}
}
resources:
aLBHealthCheckTemplateDemo:
type: bytepluscc:alb:HealthCheckTemplate
name: ALBHealthCheckTemplateDemo
properties:
description: asdfgh
healthCheckDomain: test.com
healthCheckHttpCode: http_2xx,http_3xx
healthCheckHttpVersion: HTTP1.0
healthCheckInterval: 2
healthCheckMethod: HEAD
healthCheckPort: 0
healthCheckProtocol: HTTP
healthCheckTemplateName: test-test-1001
healthCheckTimeout: 2
healthCheckUri: /
healthyThreshold: 3
unhealthyThreshold: 3
projectName: default
tags:
- key: env
value: test
Create HealthCheckTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HealthCheckTemplate(name: string, args: HealthCheckTemplateArgs, opts?: CustomResourceOptions);@overload
def HealthCheckTemplate(resource_name: str,
args: HealthCheckTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def HealthCheckTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
health_check_template_name: Optional[str] = None,
health_check_port: Optional[int] = None,
health_check_domain: Optional[str] = None,
health_check_http_version: Optional[str] = None,
health_check_interval: Optional[int] = None,
health_check_method: Optional[str] = None,
description: Optional[str] = None,
health_check_protocol: Optional[str] = None,
health_check_http_code: Optional[str] = None,
health_check_timeout: Optional[int] = None,
health_check_uri: Optional[str] = None,
healthy_threshold: Optional[int] = None,
project_name: Optional[str] = None,
tags: Optional[Sequence[HealthCheckTemplateTagArgs]] = None,
unhealthy_threshold: Optional[int] = None)func NewHealthCheckTemplate(ctx *Context, name string, args HealthCheckTemplateArgs, opts ...ResourceOption) (*HealthCheckTemplate, error)public HealthCheckTemplate(string name, HealthCheckTemplateArgs args, CustomResourceOptions? opts = null)
public HealthCheckTemplate(String name, HealthCheckTemplateArgs args)
public HealthCheckTemplate(String name, HealthCheckTemplateArgs args, CustomResourceOptions options)
type: bytepluscc:alb:HealthCheckTemplate
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 HealthCheckTemplateArgs
- 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 HealthCheckTemplateArgs
- 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 HealthCheckTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HealthCheckTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HealthCheckTemplateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var healthCheckTemplateResource = new Bytepluscc.Alb.HealthCheckTemplate("healthCheckTemplateResource", new()
{
HealthCheckTemplateName = "string",
HealthCheckPort = 0,
HealthCheckDomain = "string",
HealthCheckHttpVersion = "string",
HealthCheckInterval = 0,
HealthCheckMethod = "string",
Description = "string",
HealthCheckProtocol = "string",
HealthCheckHttpCode = "string",
HealthCheckTimeout = 0,
HealthCheckUri = "string",
HealthyThreshold = 0,
ProjectName = "string",
Tags = new[]
{
new Bytepluscc.Alb.Inputs.HealthCheckTemplateTagArgs
{
Key = "string",
Value = "string",
},
},
UnhealthyThreshold = 0,
});
example, err := alb.NewHealthCheckTemplate(ctx, "healthCheckTemplateResource", &alb.HealthCheckTemplateArgs{
HealthCheckTemplateName: pulumi.String("string"),
HealthCheckPort: pulumi.Int(0),
HealthCheckDomain: pulumi.String("string"),
HealthCheckHttpVersion: pulumi.String("string"),
HealthCheckInterval: pulumi.Int(0),
HealthCheckMethod: pulumi.String("string"),
Description: pulumi.String("string"),
HealthCheckProtocol: pulumi.String("string"),
HealthCheckHttpCode: pulumi.String("string"),
HealthCheckTimeout: pulumi.Int(0),
HealthCheckUri: pulumi.String("string"),
HealthyThreshold: pulumi.Int(0),
ProjectName: pulumi.String("string"),
Tags: alb.HealthCheckTemplateTagArray{
&alb.HealthCheckTemplateTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
UnhealthyThreshold: pulumi.Int(0),
})
var healthCheckTemplateResource = new HealthCheckTemplate("healthCheckTemplateResource", HealthCheckTemplateArgs.builder()
.healthCheckTemplateName("string")
.healthCheckPort(0)
.healthCheckDomain("string")
.healthCheckHttpVersion("string")
.healthCheckInterval(0)
.healthCheckMethod("string")
.description("string")
.healthCheckProtocol("string")
.healthCheckHttpCode("string")
.healthCheckTimeout(0)
.healthCheckUri("string")
.healthyThreshold(0)
.projectName("string")
.tags(HealthCheckTemplateTagArgs.builder()
.key("string")
.value("string")
.build())
.unhealthyThreshold(0)
.build());
health_check_template_resource = bytepluscc.alb.HealthCheckTemplate("healthCheckTemplateResource",
health_check_template_name="string",
health_check_port=0,
health_check_domain="string",
health_check_http_version="string",
health_check_interval=0,
health_check_method="string",
description="string",
health_check_protocol="string",
health_check_http_code="string",
health_check_timeout=0,
health_check_uri="string",
healthy_threshold=0,
project_name="string",
tags=[{
"key": "string",
"value": "string",
}],
unhealthy_threshold=0)
const healthCheckTemplateResource = new bytepluscc.alb.HealthCheckTemplate("healthCheckTemplateResource", {
healthCheckTemplateName: "string",
healthCheckPort: 0,
healthCheckDomain: "string",
healthCheckHttpVersion: "string",
healthCheckInterval: 0,
healthCheckMethod: "string",
description: "string",
healthCheckProtocol: "string",
healthCheckHttpCode: "string",
healthCheckTimeout: 0,
healthCheckUri: "string",
healthyThreshold: 0,
projectName: "string",
tags: [{
key: "string",
value: "string",
}],
unhealthyThreshold: 0,
});
type: bytepluscc:alb:HealthCheckTemplate
properties:
description: string
healthCheckDomain: string
healthCheckHttpCode: string
healthCheckHttpVersion: string
healthCheckInterval: 0
healthCheckMethod: string
healthCheckPort: 0
healthCheckProtocol: string
healthCheckTemplateName: string
healthCheckTimeout: 0
healthCheckUri: string
healthyThreshold: 0
projectName: string
tags:
- key: string
value: string
unhealthyThreshold: 0
HealthCheckTemplate 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 HealthCheckTemplate resource accepts the following input properties:
- Health
Check stringTemplate Name - 健康检查模板的名称。不能以http://或https://开头。必须以字母或中文开头,可包含数字、点(.)、下划线(_)和短横线(-)。长度限制在1~128字符之间。
- Description string
- 健康检查描述。不能以http://或https://开头。必须以字母或中文开头,可包含数字、英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。) 。长度限制为1 ~ 255个字符。不填默认为空字符串。
- Health
Check stringDomain - 健康检查的域名。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。要求如下:需至少包含一个‘.’,且不允许以‘.’开头结尾。单个字符串由字母、数字、‘-’、‘.’字符组成,‘-’不得出现在字符串的头部或尾部。长度限制为1 ~ 128个字符。不填则此参数为空,负载均衡默认使用各后端服务器的私网IP地址进行健康检查。
- Health
Check stringHttp Code - 健康检查正常的HTTP状态码。多个状态码用以半角逗号分隔,只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:http2xx(默认)。http3xx(默认) 。http4xx 。http5xx 。
- Health
Check stringHttp Version - 健康检查HTTP协议版本。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:HTTP1.0(默认值)。HTTP1.1。
- Health
Check intInterval - 执行健康检查的时间间隔,默认为2,取值1-300s 。
- Health
Check stringMethod - 健康检查的方法。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:GETHEAD(默认方法)
- Health
Check intPort - 健康检查端口。取值如下:0:使用后端服务器端口进行健康检查。1-65535:使用您指定的端口进行健康检查。
- Health
Check stringProtocol - 健康检查的协议。HTTPTCP。
- Health
Check intTimeout - 健康检查的响应超时时间,默认为2,取值1-60s 。
- Health
Check stringUri - 健康检查的路径。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。要求如下:必须以字符‘/’开头。仅包含字母、数字、‘-’、‘_’、‘/’、‘.’、‘%’、‘?’、‘#’、‘&’、‘=’字符。长度限制为1 ~ 128个字符。不填默认为“/”。
- Healthy
Threshold int - 健康检查的健康阈值,默认为3,取值2-10次。
- Project
Name string - 健康检查模板所属项目名称。
-
List<Byteplus.
Health Check Template Tag> - Unhealthy
Threshold int - 健康检查的不健康阈值,默认为3,取值2-10次。
- Health
Check stringTemplate Name - 健康检查模板的名称。不能以http://或https://开头。必须以字母或中文开头,可包含数字、点(.)、下划线(_)和短横线(-)。长度限制在1~128字符之间。
- Description string
- 健康检查描述。不能以http://或https://开头。必须以字母或中文开头,可包含数字、英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。) 。长度限制为1 ~ 255个字符。不填默认为空字符串。
- Health
Check stringDomain - 健康检查的域名。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。要求如下:需至少包含一个‘.’,且不允许以‘.’开头结尾。单个字符串由字母、数字、‘-’、‘.’字符组成,‘-’不得出现在字符串的头部或尾部。长度限制为1 ~ 128个字符。不填则此参数为空,负载均衡默认使用各后端服务器的私网IP地址进行健康检查。
- Health
Check stringHttp Code - 健康检查正常的HTTP状态码。多个状态码用以半角逗号分隔,只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:http2xx(默认)。http3xx(默认) 。http4xx 。http5xx 。
- Health
Check stringHttp Version - 健康检查HTTP协议版本。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:HTTP1.0(默认值)。HTTP1.1。
- Health
Check intInterval - 执行健康检查的时间间隔,默认为2,取值1-300s 。
- Health
Check stringMethod - 健康检查的方法。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:GETHEAD(默认方法)
- Health
Check intPort - 健康检查端口。取值如下:0:使用后端服务器端口进行健康检查。1-65535:使用您指定的端口进行健康检查。
- Health
Check stringProtocol - 健康检查的协议。HTTPTCP。
- Health
Check intTimeout - 健康检查的响应超时时间,默认为2,取值1-60s 。
- Health
Check stringUri - 健康检查的路径。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。要求如下:必须以字符‘/’开头。仅包含字母、数字、‘-’、‘_’、‘/’、‘.’、‘%’、‘?’、‘#’、‘&’、‘=’字符。长度限制为1 ~ 128个字符。不填默认为“/”。
- Healthy
Threshold int - 健康检查的健康阈值,默认为3,取值2-10次。
- Project
Name string - 健康检查模板所属项目名称。
-
[]Health
Check Template Tag Args - Unhealthy
Threshold int - 健康检查的不健康阈值,默认为3,取值2-10次。
- health
Check StringTemplate Name - 健康检查模板的名称。不能以http://或https://开头。必须以字母或中文开头,可包含数字、点(.)、下划线(_)和短横线(-)。长度限制在1~128字符之间。
- description String
- 健康检查描述。不能以http://或https://开头。必须以字母或中文开头,可包含数字、英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。) 。长度限制为1 ~ 255个字符。不填默认为空字符串。
- health
Check StringDomain - 健康检查的域名。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。要求如下:需至少包含一个‘.’,且不允许以‘.’开头结尾。单个字符串由字母、数字、‘-’、‘.’字符组成,‘-’不得出现在字符串的头部或尾部。长度限制为1 ~ 128个字符。不填则此参数为空,负载均衡默认使用各后端服务器的私网IP地址进行健康检查。
- health
Check StringHttp Code - 健康检查正常的HTTP状态码。多个状态码用以半角逗号分隔,只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:http2xx(默认)。http3xx(默认) 。http4xx 。http5xx 。
- health
Check StringHttp Version - 健康检查HTTP协议版本。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:HTTP1.0(默认值)。HTTP1.1。
- health
Check IntegerInterval - 执行健康检查的时间间隔,默认为2,取值1-300s 。
- health
Check StringMethod - 健康检查的方法。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:GETHEAD(默认方法)
- health
Check IntegerPort - 健康检查端口。取值如下:0:使用后端服务器端口进行健康检查。1-65535:使用您指定的端口进行健康检查。
- health
Check StringProtocol - 健康检查的协议。HTTPTCP。
- health
Check IntegerTimeout - 健康检查的响应超时时间,默认为2,取值1-60s 。
- health
Check StringUri - 健康检查的路径。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。要求如下:必须以字符‘/’开头。仅包含字母、数字、‘-’、‘_’、‘/’、‘.’、‘%’、‘?’、‘#’、‘&’、‘=’字符。长度限制为1 ~ 128个字符。不填默认为“/”。
- healthy
Threshold Integer - 健康检查的健康阈值,默认为3,取值2-10次。
- project
Name String - 健康检查模板所属项目名称。
-
List<Health
Check Template Tag> - unhealthy
Threshold Integer - 健康检查的不健康阈值,默认为3,取值2-10次。
- health
Check stringTemplate Name - 健康检查模板的名称。不能以http://或https://开头。必须以字母或中文开头,可包含数字、点(.)、下划线(_)和短横线(-)。长度限制在1~128字符之间。
- description string
- 健康检查描述。不能以http://或https://开头。必须以字母或中文开头,可包含数字、英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。) 。长度限制为1 ~ 255个字符。不填默认为空字符串。
- health
Check stringDomain - 健康检查的域名。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。要求如下:需至少包含一个‘.’,且不允许以‘.’开头结尾。单个字符串由字母、数字、‘-’、‘.’字符组成,‘-’不得出现在字符串的头部或尾部。长度限制为1 ~ 128个字符。不填则此参数为空,负载均衡默认使用各后端服务器的私网IP地址进行健康检查。
- health
Check stringHttp Code - 健康检查正常的HTTP状态码。多个状态码用以半角逗号分隔,只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:http2xx(默认)。http3xx(默认) 。http4xx 。http5xx 。
- health
Check stringHttp Version - 健康检查HTTP协议版本。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:HTTP1.0(默认值)。HTTP1.1。
- health
Check numberInterval - 执行健康检查的时间间隔,默认为2,取值1-300s 。
- health
Check stringMethod - 健康检查的方法。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:GETHEAD(默认方法)
- health
Check numberPort - 健康检查端口。取值如下:0:使用后端服务器端口进行健康检查。1-65535:使用您指定的端口进行健康检查。
- health
Check stringProtocol - 健康检查的协议。HTTPTCP。
- health
Check numberTimeout - 健康检查的响应超时时间,默认为2,取值1-60s 。
- health
Check stringUri - 健康检查的路径。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。要求如下:必须以字符‘/’开头。仅包含字母、数字、‘-’、‘_’、‘/’、‘.’、‘%’、‘?’、‘#’、‘&’、‘=’字符。长度限制为1 ~ 128个字符。不填默认为“/”。
- healthy
Threshold number - 健康检查的健康阈值,默认为3,取值2-10次。
- project
Name string - 健康检查模板所属项目名称。
-
Health
Check Template Tag[] - unhealthy
Threshold number - 健康检查的不健康阈值,默认为3,取值2-10次。
- health_
check_ strtemplate_ name - 健康检查模板的名称。不能以http://或https://开头。必须以字母或中文开头,可包含数字、点(.)、下划线(_)和短横线(-)。长度限制在1~128字符之间。
- description str
- 健康检查描述。不能以http://或https://开头。必须以字母或中文开头,可包含数字、英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。) 。长度限制为1 ~ 255个字符。不填默认为空字符串。
- health_
check_ strdomain - 健康检查的域名。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。要求如下:需至少包含一个‘.’,且不允许以‘.’开头结尾。单个字符串由字母、数字、‘-’、‘.’字符组成,‘-’不得出现在字符串的头部或尾部。长度限制为1 ~ 128个字符。不填则此参数为空,负载均衡默认使用各后端服务器的私网IP地址进行健康检查。
- health_
check_ strhttp_ code - 健康检查正常的HTTP状态码。多个状态码用以半角逗号分隔,只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:http2xx(默认)。http3xx(默认) 。http4xx 。http5xx 。
- health_
check_ strhttp_ version - 健康检查HTTP协议版本。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:HTTP1.0(默认值)。HTTP1.1。
- health_
check_ intinterval - 执行健康检查的时间间隔,默认为2,取值1-300s 。
- health_
check_ strmethod - 健康检查的方法。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:GETHEAD(默认方法)
- health_
check_ intport - 健康检查端口。取值如下:0:使用后端服务器端口进行健康检查。1-65535:使用您指定的端口进行健康检查。
- health_
check_ strprotocol - 健康检查的协议。HTTPTCP。
- health_
check_ inttimeout - 健康检查的响应超时时间,默认为2,取值1-60s 。
- health_
check_ struri - 健康检查的路径。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。要求如下:必须以字符‘/’开头。仅包含字母、数字、‘-’、‘_’、‘/’、‘.’、‘%’、‘?’、‘#’、‘&’、‘=’字符。长度限制为1 ~ 128个字符。不填默认为“/”。
- healthy_
threshold int - 健康检查的健康阈值,默认为3,取值2-10次。
- project_
name str - 健康检查模板所属项目名称。
-
Sequence[Health
Check Template Tag Args] - unhealthy_
threshold int - 健康检查的不健康阈值,默认为3,取值2-10次。
- health
Check StringTemplate Name - 健康检查模板的名称。不能以http://或https://开头。必须以字母或中文开头,可包含数字、点(.)、下划线(_)和短横线(-)。长度限制在1~128字符之间。
- description String
- 健康检查描述。不能以http://或https://开头。必须以字母或中文开头,可包含数字、英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。) 。长度限制为1 ~ 255个字符。不填默认为空字符串。
- health
Check StringDomain - 健康检查的域名。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。要求如下:需至少包含一个‘.’,且不允许以‘.’开头结尾。单个字符串由字母、数字、‘-’、‘.’字符组成,‘-’不得出现在字符串的头部或尾部。长度限制为1 ~ 128个字符。不填则此参数为空,负载均衡默认使用各后端服务器的私网IP地址进行健康检查。
- health
Check StringHttp Code - 健康检查正常的HTTP状态码。多个状态码用以半角逗号分隔,只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:http2xx(默认)。http3xx(默认) 。http4xx 。http5xx 。
- health
Check StringHttp Version - 健康检查HTTP协议版本。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:HTTP1.0(默认值)。HTTP1.1。
- health
Check NumberInterval - 执行健康检查的时间间隔,默认为2,取值1-300s 。
- health
Check StringMethod - 健康检查的方法。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:GETHEAD(默认方法)
- health
Check NumberPort - 健康检查端口。取值如下:0:使用后端服务器端口进行健康检查。1-65535:使用您指定的端口进行健康检查。
- health
Check StringProtocol - 健康检查的协议。HTTPTCP。
- health
Check NumberTimeout - 健康检查的响应超时时间,默认为2,取值1-60s 。
- health
Check StringUri - 健康检查的路径。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。要求如下:必须以字符‘/’开头。仅包含字母、数字、‘-’、‘_’、‘/’、‘.’、‘%’、‘?’、‘#’、‘&’、‘=’字符。长度限制为1 ~ 128个字符。不填默认为“/”。
- healthy
Threshold Number - 健康检查的健康阈值,默认为3,取值2-10次。
- project
Name String - 健康检查模板所属项目名称。
- List<Property Map>
- unhealthy
Threshold Number - 健康检查的不健康阈值,默认为3,取值2-10次。
Outputs
All input properties are implicitly available as output properties. Additionally, the HealthCheckTemplate resource produces the following output properties:
- Create
Time string - 健康检查模版的创建时间。
- Health
Check stringTemplate Id - 健康检查模板 ID。
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - 健康检查模版最近一次的操作时间。
- Create
Time string - 健康检查模版的创建时间。
- Health
Check stringTemplate Id - 健康检查模板 ID。
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - 健康检查模版最近一次的操作时间。
- create
Time String - 健康检查模版的创建时间。
- health
Check StringTemplate Id - 健康检查模板 ID。
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - 健康检查模版最近一次的操作时间。
- create
Time string - 健康检查模版的创建时间。
- health
Check stringTemplate Id - 健康检查模板 ID。
- id string
- The provider-assigned unique ID for this managed resource.
- update
Time string - 健康检查模版最近一次的操作时间。
- create_
time str - 健康检查模版的创建时间。
- health_
check_ strtemplate_ id - 健康检查模板 ID。
- id str
- The provider-assigned unique ID for this managed resource.
- update_
time str - 健康检查模版最近一次的操作时间。
- create
Time String - 健康检查模版的创建时间。
- health
Check StringTemplate Id - 健康检查模板 ID。
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - 健康检查模版最近一次的操作时间。
Look up Existing HealthCheckTemplate Resource
Get an existing HealthCheckTemplate 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?: HealthCheckTemplateState, opts?: CustomResourceOptions): HealthCheckTemplate@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
health_check_domain: Optional[str] = None,
health_check_http_code: Optional[str] = None,
health_check_http_version: Optional[str] = None,
health_check_interval: Optional[int] = None,
health_check_method: Optional[str] = None,
health_check_port: Optional[int] = None,
health_check_protocol: Optional[str] = None,
health_check_template_id: Optional[str] = None,
health_check_template_name: Optional[str] = None,
health_check_timeout: Optional[int] = None,
health_check_uri: Optional[str] = None,
healthy_threshold: Optional[int] = None,
project_name: Optional[str] = None,
tags: Optional[Sequence[HealthCheckTemplateTagArgs]] = None,
unhealthy_threshold: Optional[int] = None,
update_time: Optional[str] = None) -> HealthCheckTemplatefunc GetHealthCheckTemplate(ctx *Context, name string, id IDInput, state *HealthCheckTemplateState, opts ...ResourceOption) (*HealthCheckTemplate, error)public static HealthCheckTemplate Get(string name, Input<string> id, HealthCheckTemplateState? state, CustomResourceOptions? opts = null)public static HealthCheckTemplate get(String name, Output<String> id, HealthCheckTemplateState state, CustomResourceOptions options)resources: _: type: bytepluscc:alb:HealthCheckTemplate 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.
- Create
Time string - 健康检查模版的创建时间。
- Description string
- 健康检查描述。不能以http://或https://开头。必须以字母或中文开头,可包含数字、英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。) 。长度限制为1 ~ 255个字符。不填默认为空字符串。
- Health
Check stringDomain - 健康检查的域名。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。要求如下:需至少包含一个‘.’,且不允许以‘.’开头结尾。单个字符串由字母、数字、‘-’、‘.’字符组成,‘-’不得出现在字符串的头部或尾部。长度限制为1 ~ 128个字符。不填则此参数为空,负载均衡默认使用各后端服务器的私网IP地址进行健康检查。
- Health
Check stringHttp Code - 健康检查正常的HTTP状态码。多个状态码用以半角逗号分隔,只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:http2xx(默认)。http3xx(默认) 。http4xx 。http5xx 。
- Health
Check stringHttp Version - 健康检查HTTP协议版本。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:HTTP1.0(默认值)。HTTP1.1。
- Health
Check intInterval - 执行健康检查的时间间隔,默认为2,取值1-300s 。
- Health
Check stringMethod - 健康检查的方法。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:GETHEAD(默认方法)
- Health
Check intPort - 健康检查端口。取值如下:0:使用后端服务器端口进行健康检查。1-65535:使用您指定的端口进行健康检查。
- Health
Check stringProtocol - 健康检查的协议。HTTPTCP。
- Health
Check stringTemplate Id - 健康检查模板 ID。
- Health
Check stringTemplate Name - 健康检查模板的名称。不能以http://或https://开头。必须以字母或中文开头,可包含数字、点(.)、下划线(_)和短横线(-)。长度限制在1~128字符之间。
- Health
Check intTimeout - 健康检查的响应超时时间,默认为2,取值1-60s 。
- Health
Check stringUri - 健康检查的路径。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。要求如下:必须以字符‘/’开头。仅包含字母、数字、‘-’、‘_’、‘/’、‘.’、‘%’、‘?’、‘#’、‘&’、‘=’字符。长度限制为1 ~ 128个字符。不填默认为“/”。
- Healthy
Threshold int - 健康检查的健康阈值,默认为3,取值2-10次。
- Project
Name string - 健康检查模板所属项目名称。
-
List<Byteplus.
Health Check Template Tag> - Unhealthy
Threshold int - 健康检查的不健康阈值,默认为3,取值2-10次。
- Update
Time string - 健康检查模版最近一次的操作时间。
- Create
Time string - 健康检查模版的创建时间。
- Description string
- 健康检查描述。不能以http://或https://开头。必须以字母或中文开头,可包含数字、英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。) 。长度限制为1 ~ 255个字符。不填默认为空字符串。
- Health
Check stringDomain - 健康检查的域名。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。要求如下:需至少包含一个‘.’,且不允许以‘.’开头结尾。单个字符串由字母、数字、‘-’、‘.’字符组成,‘-’不得出现在字符串的头部或尾部。长度限制为1 ~ 128个字符。不填则此参数为空,负载均衡默认使用各后端服务器的私网IP地址进行健康检查。
- Health
Check stringHttp Code - 健康检查正常的HTTP状态码。多个状态码用以半角逗号分隔,只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:http2xx(默认)。http3xx(默认) 。http4xx 。http5xx 。
- Health
Check stringHttp Version - 健康检查HTTP协议版本。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:HTTP1.0(默认值)。HTTP1.1。
- Health
Check intInterval - 执行健康检查的时间间隔,默认为2,取值1-300s 。
- Health
Check stringMethod - 健康检查的方法。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:GETHEAD(默认方法)
- Health
Check intPort - 健康检查端口。取值如下:0:使用后端服务器端口进行健康检查。1-65535:使用您指定的端口进行健康检查。
- Health
Check stringProtocol - 健康检查的协议。HTTPTCP。
- Health
Check stringTemplate Id - 健康检查模板 ID。
- Health
Check stringTemplate Name - 健康检查模板的名称。不能以http://或https://开头。必须以字母或中文开头,可包含数字、点(.)、下划线(_)和短横线(-)。长度限制在1~128字符之间。
- Health
Check intTimeout - 健康检查的响应超时时间,默认为2,取值1-60s 。
- Health
Check stringUri - 健康检查的路径。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。要求如下:必须以字符‘/’开头。仅包含字母、数字、‘-’、‘_’、‘/’、‘.’、‘%’、‘?’、‘#’、‘&’、‘=’字符。长度限制为1 ~ 128个字符。不填默认为“/”。
- Healthy
Threshold int - 健康检查的健康阈值,默认为3,取值2-10次。
- Project
Name string - 健康检查模板所属项目名称。
-
[]Health
Check Template Tag Args - Unhealthy
Threshold int - 健康检查的不健康阈值,默认为3,取值2-10次。
- Update
Time string - 健康检查模版最近一次的操作时间。
- create
Time String - 健康检查模版的创建时间。
- description String
- 健康检查描述。不能以http://或https://开头。必须以字母或中文开头,可包含数字、英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。) 。长度限制为1 ~ 255个字符。不填默认为空字符串。
- health
Check StringDomain - 健康检查的域名。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。要求如下:需至少包含一个‘.’,且不允许以‘.’开头结尾。单个字符串由字母、数字、‘-’、‘.’字符组成,‘-’不得出现在字符串的头部或尾部。长度限制为1 ~ 128个字符。不填则此参数为空,负载均衡默认使用各后端服务器的私网IP地址进行健康检查。
- health
Check StringHttp Code - 健康检查正常的HTTP状态码。多个状态码用以半角逗号分隔,只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:http2xx(默认)。http3xx(默认) 。http4xx 。http5xx 。
- health
Check StringHttp Version - 健康检查HTTP协议版本。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:HTTP1.0(默认值)。HTTP1.1。
- health
Check IntegerInterval - 执行健康检查的时间间隔,默认为2,取值1-300s 。
- health
Check StringMethod - 健康检查的方法。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:GETHEAD(默认方法)
- health
Check IntegerPort - 健康检查端口。取值如下:0:使用后端服务器端口进行健康检查。1-65535:使用您指定的端口进行健康检查。
- health
Check StringProtocol - 健康检查的协议。HTTPTCP。
- health
Check StringTemplate Id - 健康检查模板 ID。
- health
Check StringTemplate Name - 健康检查模板的名称。不能以http://或https://开头。必须以字母或中文开头,可包含数字、点(.)、下划线(_)和短横线(-)。长度限制在1~128字符之间。
- health
Check IntegerTimeout - 健康检查的响应超时时间,默认为2,取值1-60s 。
- health
Check StringUri - 健康检查的路径。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。要求如下:必须以字符‘/’开头。仅包含字母、数字、‘-’、‘_’、‘/’、‘.’、‘%’、‘?’、‘#’、‘&’、‘=’字符。长度限制为1 ~ 128个字符。不填默认为“/”。
- healthy
Threshold Integer - 健康检查的健康阈值,默认为3,取值2-10次。
- project
Name String - 健康检查模板所属项目名称。
-
List<Health
Check Template Tag> - unhealthy
Threshold Integer - 健康检查的不健康阈值,默认为3,取值2-10次。
- update
Time String - 健康检查模版最近一次的操作时间。
- create
Time string - 健康检查模版的创建时间。
- description string
- 健康检查描述。不能以http://或https://开头。必须以字母或中文开头,可包含数字、英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。) 。长度限制为1 ~ 255个字符。不填默认为空字符串。
- health
Check stringDomain - 健康检查的域名。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。要求如下:需至少包含一个‘.’,且不允许以‘.’开头结尾。单个字符串由字母、数字、‘-’、‘.’字符组成,‘-’不得出现在字符串的头部或尾部。长度限制为1 ~ 128个字符。不填则此参数为空,负载均衡默认使用各后端服务器的私网IP地址进行健康检查。
- health
Check stringHttp Code - 健康检查正常的HTTP状态码。多个状态码用以半角逗号分隔,只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:http2xx(默认)。http3xx(默认) 。http4xx 。http5xx 。
- health
Check stringHttp Version - 健康检查HTTP协议版本。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:HTTP1.0(默认值)。HTTP1.1。
- health
Check numberInterval - 执行健康检查的时间间隔,默认为2,取值1-300s 。
- health
Check stringMethod - 健康检查的方法。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:GETHEAD(默认方法)
- health
Check numberPort - 健康检查端口。取值如下:0:使用后端服务器端口进行健康检查。1-65535:使用您指定的端口进行健康检查。
- health
Check stringProtocol - 健康检查的协议。HTTPTCP。
- health
Check stringTemplate Id - 健康检查模板 ID。
- health
Check stringTemplate Name - 健康检查模板的名称。不能以http://或https://开头。必须以字母或中文开头,可包含数字、点(.)、下划线(_)和短横线(-)。长度限制在1~128字符之间。
- health
Check numberTimeout - 健康检查的响应超时时间,默认为2,取值1-60s 。
- health
Check stringUri - 健康检查的路径。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。要求如下:必须以字符‘/’开头。仅包含字母、数字、‘-’、‘_’、‘/’、‘.’、‘%’、‘?’、‘#’、‘&’、‘=’字符。长度限制为1 ~ 128个字符。不填默认为“/”。
- healthy
Threshold number - 健康检查的健康阈值,默认为3,取值2-10次。
- project
Name string - 健康检查模板所属项目名称。
-
Health
Check Template Tag[] - unhealthy
Threshold number - 健康检查的不健康阈值,默认为3,取值2-10次。
- update
Time string - 健康检查模版最近一次的操作时间。
- create_
time str - 健康检查模版的创建时间。
- description str
- 健康检查描述。不能以http://或https://开头。必须以字母或中文开头,可包含数字、英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。) 。长度限制为1 ~ 255个字符。不填默认为空字符串。
- health_
check_ strdomain - 健康检查的域名。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。要求如下:需至少包含一个‘.’,且不允许以‘.’开头结尾。单个字符串由字母、数字、‘-’、‘.’字符组成,‘-’不得出现在字符串的头部或尾部。长度限制为1 ~ 128个字符。不填则此参数为空,负载均衡默认使用各后端服务器的私网IP地址进行健康检查。
- health_
check_ strhttp_ code - 健康检查正常的HTTP状态码。多个状态码用以半角逗号分隔,只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:http2xx(默认)。http3xx(默认) 。http4xx 。http5xx 。
- health_
check_ strhttp_ version - 健康检查HTTP协议版本。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:HTTP1.0(默认值)。HTTP1.1。
- health_
check_ intinterval - 执行健康检查的时间间隔,默认为2,取值1-300s 。
- health_
check_ strmethod - 健康检查的方法。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:GETHEAD(默认方法)
- health_
check_ intport - 健康检查端口。取值如下:0:使用后端服务器端口进行健康检查。1-65535:使用您指定的端口进行健康检查。
- health_
check_ strprotocol - 健康检查的协议。HTTPTCP。
- health_
check_ strtemplate_ id - 健康检查模板 ID。
- health_
check_ strtemplate_ name - 健康检查模板的名称。不能以http://或https://开头。必须以字母或中文开头,可包含数字、点(.)、下划线(_)和短横线(-)。长度限制在1~128字符之间。
- health_
check_ inttimeout - 健康检查的响应超时时间,默认为2,取值1-60s 。
- health_
check_ struri - 健康检查的路径。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。要求如下:必须以字符‘/’开头。仅包含字母、数字、‘-’、‘_’、‘/’、‘.’、‘%’、‘?’、‘#’、‘&’、‘=’字符。长度限制为1 ~ 128个字符。不填默认为“/”。
- healthy_
threshold int - 健康检查的健康阈值,默认为3,取值2-10次。
- project_
name str - 健康检查模板所属项目名称。
-
Sequence[Health
Check Template Tag Args] - unhealthy_
threshold int - 健康检查的不健康阈值,默认为3,取值2-10次。
- update_
time str - 健康检查模版最近一次的操作时间。
- create
Time String - 健康检查模版的创建时间。
- description String
- 健康检查描述。不能以http://或https://开头。必须以字母或中文开头,可包含数字、英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。) 。长度限制为1 ~ 255个字符。不填默认为空字符串。
- health
Check StringDomain - 健康检查的域名。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。要求如下:需至少包含一个‘.’,且不允许以‘.’开头结尾。单个字符串由字母、数字、‘-’、‘.’字符组成,‘-’不得出现在字符串的头部或尾部。长度限制为1 ~ 128个字符。不填则此参数为空,负载均衡默认使用各后端服务器的私网IP地址进行健康检查。
- health
Check StringHttp Code - 健康检查正常的HTTP状态码。多个状态码用以半角逗号分隔,只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:http2xx(默认)。http3xx(默认) 。http4xx 。http5xx 。
- health
Check StringHttp Version - 健康检查HTTP协议版本。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:HTTP1.0(默认值)。HTTP1.1。
- health
Check NumberInterval - 执行健康检查的时间间隔,默认为2,取值1-300s 。
- health
Check StringMethod - 健康检查的方法。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。取值如下:GETHEAD(默认方法)
- health
Check NumberPort - 健康检查端口。取值如下:0:使用后端服务器端口进行健康检查。1-65535:使用您指定的端口进行健康检查。
- health
Check StringProtocol - 健康检查的协议。HTTPTCP。
- health
Check StringTemplate Id - 健康检查模板 ID。
- health
Check StringTemplate Name - 健康检查模板的名称。不能以http://或https://开头。必须以字母或中文开头,可包含数字、点(.)、下划线(_)和短横线(-)。长度限制在1~128字符之间。
- health
Check NumberTimeout - 健康检查的响应超时时间,默认为2,取值1-60s 。
- health
Check StringUri - 健康检查的路径。只有 HealthCheckProtocol 设置为 HTTP 时,该参数才生效。要求如下:必须以字符‘/’开头。仅包含字母、数字、‘-’、‘_’、‘/’、‘.’、‘%’、‘?’、‘#’、‘&’、‘=’字符。长度限制为1 ~ 128个字符。不填默认为“/”。
- healthy
Threshold Number - 健康检查的健康阈值,默认为3,取值2-10次。
- project
Name String - 健康检查模板所属项目名称。
- List<Property Map>
- unhealthy
Threshold Number - 健康检查的不健康阈值,默认为3,取值2-10次。
- update
Time String - 健康检查模版最近一次的操作时间。
Supporting Types
HealthCheckTemplateTag, HealthCheckTemplateTagArgs
- Key string
- 用户标签的标签键。具体规则如下:长度限制为1~128个字符。大小写敏感。不能以sys:的任意大小写组合开头。不能以空格开头或结尾。允许包含各国语言文字、数字、空格()、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、减号(-)和@。同一资源的标签键不允许重复。
- Value string
- 用户标签的标签值。如果传入该参数,则必须先传入Tags.N.Key。具体规则如下:长度限制为0~256个字符。大小写敏感。不能以空格开头或结尾。允许包含各国语言文字、数字、空格()、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、减号(-)和@。
- Key string
- 用户标签的标签键。具体规则如下:长度限制为1~128个字符。大小写敏感。不能以sys:的任意大小写组合开头。不能以空格开头或结尾。允许包含各国语言文字、数字、空格()、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、减号(-)和@。同一资源的标签键不允许重复。
- Value string
- 用户标签的标签值。如果传入该参数,则必须先传入Tags.N.Key。具体规则如下:长度限制为0~256个字符。大小写敏感。不能以空格开头或结尾。允许包含各国语言文字、数字、空格()、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、减号(-)和@。
- key String
- 用户标签的标签键。具体规则如下:长度限制为1~128个字符。大小写敏感。不能以sys:的任意大小写组合开头。不能以空格开头或结尾。允许包含各国语言文字、数字、空格()、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、减号(-)和@。同一资源的标签键不允许重复。
- value String
- 用户标签的标签值。如果传入该参数,则必须先传入Tags.N.Key。具体规则如下:长度限制为0~256个字符。大小写敏感。不能以空格开头或结尾。允许包含各国语言文字、数字、空格()、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、减号(-)和@。
- key string
- 用户标签的标签键。具体规则如下:长度限制为1~128个字符。大小写敏感。不能以sys:的任意大小写组合开头。不能以空格开头或结尾。允许包含各国语言文字、数字、空格()、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、减号(-)和@。同一资源的标签键不允许重复。
- value string
- 用户标签的标签值。如果传入该参数,则必须先传入Tags.N.Key。具体规则如下:长度限制为0~256个字符。大小写敏感。不能以空格开头或结尾。允许包含各国语言文字、数字、空格()、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、减号(-)和@。
- key String
- 用户标签的标签键。具体规则如下:长度限制为1~128个字符。大小写敏感。不能以sys:的任意大小写组合开头。不能以空格开头或结尾。允许包含各国语言文字、数字、空格()、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、减号(-)和@。同一资源的标签键不允许重复。
- value String
- 用户标签的标签值。如果传入该参数,则必须先传入Tags.N.Key。具体规则如下:长度限制为0~256个字符。大小写敏感。不能以空格开头或结尾。允许包含各国语言文字、数字、空格()、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、减号(-)和@。
Import
$ pulumi import bytepluscc:alb/healthCheckTemplate:HealthCheckTemplate example "health_check_template_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
published on Monday, Mar 9, 2026 by Byteplus
