1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. alb
  5. HealthCheckTemplate
Alibaba Cloud v3.81.0 published on Monday, Jun 23, 2025 by Pulumi

alicloud.alb.HealthCheckTemplate

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.81.0 published on Monday, Jun 23, 2025 by Pulumi

    Provides a Application Load Balancer (ALB) Health Check Template resource.

    Health check template.

    For information about Application Load Balancer (ALB) Health Check Template and how to use it, see What is Health Check Template.

    NOTE: Available since v1.134.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const example = new alicloud.alb.HealthCheckTemplate("example", {healthCheckTemplateName: name});
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    example = alicloud.alb.HealthCheckTemplate("example", health_check_template_name=name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/alb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := alb.NewHealthCheckTemplate(ctx, "example", &alb.HealthCheckTemplateArgs{
    			HealthCheckTemplateName: pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var example = new AliCloud.Alb.HealthCheckTemplate("example", new()
        {
            HealthCheckTemplateName = name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.alb.HealthCheckTemplate;
    import com.pulumi.alicloud.alb.HealthCheckTemplateArgs;
    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) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            var example = new HealthCheckTemplate("example", HealthCheckTemplateArgs.builder()
                .healthCheckTemplateName(name)
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      example:
        type: alicloud:alb:HealthCheckTemplate
        properties:
          healthCheckTemplateName: ${name}
    

    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_host: Optional[str] = None,
                            health_check_protocol: Optional[str] = None,
                            dry_run: Optional[bool] = None,
                            health_check_http_version: Optional[str] = None,
                            health_check_interval: Optional[int] = None,
                            health_check_method: Optional[str] = None,
                            health_check_path: Optional[str] = None,
                            health_check_connect_port: Optional[int] = None,
                            health_check_codes: Optional[Sequence[str]] = None,
                            health_check_timeout: Optional[int] = None,
                            healthy_threshold: Optional[int] = None,
                            resource_group_id: Optional[str] = None,
                            tags: Optional[Mapping[str, str]] = 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: alicloud: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 AliCloud.Alb.HealthCheckTemplate("healthCheckTemplateResource", new()
    {
        HealthCheckTemplateName = "string",
        HealthCheckHost = "string",
        HealthCheckProtocol = "string",
        DryRun = false,
        HealthCheckHttpVersion = "string",
        HealthCheckInterval = 0,
        HealthCheckMethod = "string",
        HealthCheckPath = "string",
        HealthCheckConnectPort = 0,
        HealthCheckCodes = new[]
        {
            "string",
        },
        HealthCheckTimeout = 0,
        HealthyThreshold = 0,
        ResourceGroupId = "string",
        Tags = 
        {
            { "string", "string" },
        },
        UnhealthyThreshold = 0,
    });
    
    example, err := alb.NewHealthCheckTemplate(ctx, "healthCheckTemplateResource", &alb.HealthCheckTemplateArgs{
    	HealthCheckTemplateName: pulumi.String("string"),
    	HealthCheckHost:         pulumi.String("string"),
    	HealthCheckProtocol:     pulumi.String("string"),
    	DryRun:                  pulumi.Bool(false),
    	HealthCheckHttpVersion:  pulumi.String("string"),
    	HealthCheckInterval:     pulumi.Int(0),
    	HealthCheckMethod:       pulumi.String("string"),
    	HealthCheckPath:         pulumi.String("string"),
    	HealthCheckConnectPort:  pulumi.Int(0),
    	HealthCheckCodes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	HealthCheckTimeout: pulumi.Int(0),
    	HealthyThreshold:   pulumi.Int(0),
    	ResourceGroupId:    pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	UnhealthyThreshold: pulumi.Int(0),
    })
    
    var healthCheckTemplateResource = new HealthCheckTemplate("healthCheckTemplateResource", HealthCheckTemplateArgs.builder()
        .healthCheckTemplateName("string")
        .healthCheckHost("string")
        .healthCheckProtocol("string")
        .dryRun(false)
        .healthCheckHttpVersion("string")
        .healthCheckInterval(0)
        .healthCheckMethod("string")
        .healthCheckPath("string")
        .healthCheckConnectPort(0)
        .healthCheckCodes("string")
        .healthCheckTimeout(0)
        .healthyThreshold(0)
        .resourceGroupId("string")
        .tags(Map.of("string", "string"))
        .unhealthyThreshold(0)
        .build());
    
    health_check_template_resource = alicloud.alb.HealthCheckTemplate("healthCheckTemplateResource",
        health_check_template_name="string",
        health_check_host="string",
        health_check_protocol="string",
        dry_run=False,
        health_check_http_version="string",
        health_check_interval=0,
        health_check_method="string",
        health_check_path="string",
        health_check_connect_port=0,
        health_check_codes=["string"],
        health_check_timeout=0,
        healthy_threshold=0,
        resource_group_id="string",
        tags={
            "string": "string",
        },
        unhealthy_threshold=0)
    
    const healthCheckTemplateResource = new alicloud.alb.HealthCheckTemplate("healthCheckTemplateResource", {
        healthCheckTemplateName: "string",
        healthCheckHost: "string",
        healthCheckProtocol: "string",
        dryRun: false,
        healthCheckHttpVersion: "string",
        healthCheckInterval: 0,
        healthCheckMethod: "string",
        healthCheckPath: "string",
        healthCheckConnectPort: 0,
        healthCheckCodes: ["string"],
        healthCheckTimeout: 0,
        healthyThreshold: 0,
        resourceGroupId: "string",
        tags: {
            string: "string",
        },
        unhealthyThreshold: 0,
    });
    
    type: alicloud:alb:HealthCheckTemplate
    properties:
        dryRun: false
        healthCheckCodes:
            - string
        healthCheckConnectPort: 0
        healthCheckHost: string
        healthCheckHttpVersion: string
        healthCheckInterval: 0
        healthCheckMethod: string
        healthCheckPath: string
        healthCheckProtocol: string
        healthCheckTemplateName: string
        healthCheckTimeout: 0
        healthyThreshold: 0
        resourceGroupId: string
        tags:
            string: 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:

    HealthCheckTemplateName string
    The name of the health check template. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.
    DryRun bool
    Whether to PreCheck only this request, value: true: sends a check request and does not create a resource. Check items include whether required parameters, request format, and business restrictions have been filled in. If the check fails, the corresponding error is returned. If the check passes, the error code DryRunOperation is returned. false (default): Sends a normal request, returns the http_2xx status code after the check, and directly performs the operation.
    HealthCheckCodes List<string>
    The HTTP code of the health check. The default value is http_2xx. The normal HTTP code for health check. Separate multiple codes with commas (,). Valid values: http_2xx, http_3xx, http_4xx, or http_5xx.
    HealthCheckConnectPort int
    The number of the port that is used for health checks. Valid values: 0 to 65535. Default value: 0. This value indicates that the backend server is used for health checks.
    HealthCheckHost string
    The domain name that is used for health checks. Valid values: $SERVER_IP (default value): The private IP addresses of backend servers. If the $_ip parameter is set or the HealthCheckHost parameter is not set, SLB uses the private IP addresses of backend servers as the domain names for health checks. domain: The domain name must be 1 to 80 characters in length, and can contain only letters, digits, periods (.),and hyphens (-).
    HealthCheckHttpVersion string
    The version of the HTTP protocol. Valid values: HTTP 1.0 and HTTP 1.1. Default value: HTTP 1.1.
    HealthCheckInterval int
    The time interval between two consecutive health checks. Valid values: 1 to 50. Unit: seconds. Default value: 2.
    HealthCheckMethod string
    The health check method. Valid values: GET and HEAD. Default value: HEAD.
    HealthCheckPath string
    The URL that is used for health checks. The URL must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), percent signs (%), question marks (?), number signs (#), and ampersands (&). The URL can also contain the following extended characters: _ ; ~ ! ( )* [ ] @ $ ^ : ' , +. The URL must start with a forward slash (/).
    HealthCheckProtocol string
    The protocol used for the health check. Value: HTTP (default): Sends a HEAD or GET request to simulate the browser's access behavior to check whether the server application is healthy. HTTPS: Sends a HEAD or GET request to simulate the browser's access behavior to check whether the server application is healthy. (Data encryption is more secure than HTTP.) TCP: Sends a SYN handshake packet to check whether the server port is alive. gRPC: Check whether the server application is healthy by sending a POST or GET request.
    HealthCheckTimeout int
    The timeout period of a health check response. If the backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the health check fails. Valid values: 1 to 300. Unit: seconds. Default value: 5.
    HealthyThreshold int
    The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy (from fail to success).
    ResourceGroupId string
    The ID of the resource group
    Tags Dictionary<string, string>
    The tag of the resource
    UnhealthyThreshold int
    Specifies the number of times that an healthy backend server must consecutively fail health checks before it is declared unhealthy (from success to fail).
    HealthCheckTemplateName string
    The name of the health check template. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.
    DryRun bool
    Whether to PreCheck only this request, value: true: sends a check request and does not create a resource. Check items include whether required parameters, request format, and business restrictions have been filled in. If the check fails, the corresponding error is returned. If the check passes, the error code DryRunOperation is returned. false (default): Sends a normal request, returns the http_2xx status code after the check, and directly performs the operation.
    HealthCheckCodes []string
    The HTTP code of the health check. The default value is http_2xx. The normal HTTP code for health check. Separate multiple codes with commas (,). Valid values: http_2xx, http_3xx, http_4xx, or http_5xx.
    HealthCheckConnectPort int
    The number of the port that is used for health checks. Valid values: 0 to 65535. Default value: 0. This value indicates that the backend server is used for health checks.
    HealthCheckHost string
    The domain name that is used for health checks. Valid values: $SERVER_IP (default value): The private IP addresses of backend servers. If the $_ip parameter is set or the HealthCheckHost parameter is not set, SLB uses the private IP addresses of backend servers as the domain names for health checks. domain: The domain name must be 1 to 80 characters in length, and can contain only letters, digits, periods (.),and hyphens (-).
    HealthCheckHttpVersion string
    The version of the HTTP protocol. Valid values: HTTP 1.0 and HTTP 1.1. Default value: HTTP 1.1.
    HealthCheckInterval int
    The time interval between two consecutive health checks. Valid values: 1 to 50. Unit: seconds. Default value: 2.
    HealthCheckMethod string
    The health check method. Valid values: GET and HEAD. Default value: HEAD.
    HealthCheckPath string
    The URL that is used for health checks. The URL must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), percent signs (%), question marks (?), number signs (#), and ampersands (&). The URL can also contain the following extended characters: _ ; ~ ! ( )* [ ] @ $ ^ : ' , +. The URL must start with a forward slash (/).
    HealthCheckProtocol string
    The protocol used for the health check. Value: HTTP (default): Sends a HEAD or GET request to simulate the browser's access behavior to check whether the server application is healthy. HTTPS: Sends a HEAD or GET request to simulate the browser's access behavior to check whether the server application is healthy. (Data encryption is more secure than HTTP.) TCP: Sends a SYN handshake packet to check whether the server port is alive. gRPC: Check whether the server application is healthy by sending a POST or GET request.
    HealthCheckTimeout int
    The timeout period of a health check response. If the backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the health check fails. Valid values: 1 to 300. Unit: seconds. Default value: 5.
    HealthyThreshold int
    The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy (from fail to success).
    ResourceGroupId string
    The ID of the resource group
    Tags map[string]string
    The tag of the resource
    UnhealthyThreshold int
    Specifies the number of times that an healthy backend server must consecutively fail health checks before it is declared unhealthy (from success to fail).
    healthCheckTemplateName String
    The name of the health check template. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.
    dryRun Boolean
    Whether to PreCheck only this request, value: true: sends a check request and does not create a resource. Check items include whether required parameters, request format, and business restrictions have been filled in. If the check fails, the corresponding error is returned. If the check passes, the error code DryRunOperation is returned. false (default): Sends a normal request, returns the http_2xx status code after the check, and directly performs the operation.
    healthCheckCodes List<String>
    The HTTP code of the health check. The default value is http_2xx. The normal HTTP code for health check. Separate multiple codes with commas (,). Valid values: http_2xx, http_3xx, http_4xx, or http_5xx.
    healthCheckConnectPort Integer
    The number of the port that is used for health checks. Valid values: 0 to 65535. Default value: 0. This value indicates that the backend server is used for health checks.
    healthCheckHost String
    The domain name that is used for health checks. Valid values: $SERVER_IP (default value): The private IP addresses of backend servers. If the $_ip parameter is set or the HealthCheckHost parameter is not set, SLB uses the private IP addresses of backend servers as the domain names for health checks. domain: The domain name must be 1 to 80 characters in length, and can contain only letters, digits, periods (.),and hyphens (-).
    healthCheckHttpVersion String
    The version of the HTTP protocol. Valid values: HTTP 1.0 and HTTP 1.1. Default value: HTTP 1.1.
    healthCheckInterval Integer
    The time interval between two consecutive health checks. Valid values: 1 to 50. Unit: seconds. Default value: 2.
    healthCheckMethod String
    The health check method. Valid values: GET and HEAD. Default value: HEAD.
    healthCheckPath String
    The URL that is used for health checks. The URL must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), percent signs (%), question marks (?), number signs (#), and ampersands (&). The URL can also contain the following extended characters: _ ; ~ ! ( )* [ ] @ $ ^ : ' , +. The URL must start with a forward slash (/).
    healthCheckProtocol String
    The protocol used for the health check. Value: HTTP (default): Sends a HEAD or GET request to simulate the browser's access behavior to check whether the server application is healthy. HTTPS: Sends a HEAD or GET request to simulate the browser's access behavior to check whether the server application is healthy. (Data encryption is more secure than HTTP.) TCP: Sends a SYN handshake packet to check whether the server port is alive. gRPC: Check whether the server application is healthy by sending a POST or GET request.
    healthCheckTimeout Integer
    The timeout period of a health check response. If the backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the health check fails. Valid values: 1 to 300. Unit: seconds. Default value: 5.
    healthyThreshold Integer
    The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy (from fail to success).
    resourceGroupId String
    The ID of the resource group
    tags Map<String,String>
    The tag of the resource
    unhealthyThreshold Integer
    Specifies the number of times that an healthy backend server must consecutively fail health checks before it is declared unhealthy (from success to fail).
    healthCheckTemplateName string
    The name of the health check template. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.
    dryRun boolean
    Whether to PreCheck only this request, value: true: sends a check request and does not create a resource. Check items include whether required parameters, request format, and business restrictions have been filled in. If the check fails, the corresponding error is returned. If the check passes, the error code DryRunOperation is returned. false (default): Sends a normal request, returns the http_2xx status code after the check, and directly performs the operation.
    healthCheckCodes string[]
    The HTTP code of the health check. The default value is http_2xx. The normal HTTP code for health check. Separate multiple codes with commas (,). Valid values: http_2xx, http_3xx, http_4xx, or http_5xx.
    healthCheckConnectPort number
    The number of the port that is used for health checks. Valid values: 0 to 65535. Default value: 0. This value indicates that the backend server is used for health checks.
    healthCheckHost string
    The domain name that is used for health checks. Valid values: $SERVER_IP (default value): The private IP addresses of backend servers. If the $_ip parameter is set or the HealthCheckHost parameter is not set, SLB uses the private IP addresses of backend servers as the domain names for health checks. domain: The domain name must be 1 to 80 characters in length, and can contain only letters, digits, periods (.),and hyphens (-).
    healthCheckHttpVersion string
    The version of the HTTP protocol. Valid values: HTTP 1.0 and HTTP 1.1. Default value: HTTP 1.1.
    healthCheckInterval number
    The time interval between two consecutive health checks. Valid values: 1 to 50. Unit: seconds. Default value: 2.
    healthCheckMethod string
    The health check method. Valid values: GET and HEAD. Default value: HEAD.
    healthCheckPath string
    The URL that is used for health checks. The URL must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), percent signs (%), question marks (?), number signs (#), and ampersands (&). The URL can also contain the following extended characters: _ ; ~ ! ( )* [ ] @ $ ^ : ' , +. The URL must start with a forward slash (/).
    healthCheckProtocol string
    The protocol used for the health check. Value: HTTP (default): Sends a HEAD or GET request to simulate the browser's access behavior to check whether the server application is healthy. HTTPS: Sends a HEAD or GET request to simulate the browser's access behavior to check whether the server application is healthy. (Data encryption is more secure than HTTP.) TCP: Sends a SYN handshake packet to check whether the server port is alive. gRPC: Check whether the server application is healthy by sending a POST or GET request.
    healthCheckTimeout number
    The timeout period of a health check response. If the backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the health check fails. Valid values: 1 to 300. Unit: seconds. Default value: 5.
    healthyThreshold number
    The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy (from fail to success).
    resourceGroupId string
    The ID of the resource group
    tags {[key: string]: string}
    The tag of the resource
    unhealthyThreshold number
    Specifies the number of times that an healthy backend server must consecutively fail health checks before it is declared unhealthy (from success to fail).
    health_check_template_name str
    The name of the health check template. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.
    dry_run bool
    Whether to PreCheck only this request, value: true: sends a check request and does not create a resource. Check items include whether required parameters, request format, and business restrictions have been filled in. If the check fails, the corresponding error is returned. If the check passes, the error code DryRunOperation is returned. false (default): Sends a normal request, returns the http_2xx status code after the check, and directly performs the operation.
    health_check_codes Sequence[str]
    The HTTP code of the health check. The default value is http_2xx. The normal HTTP code for health check. Separate multiple codes with commas (,). Valid values: http_2xx, http_3xx, http_4xx, or http_5xx.
    health_check_connect_port int
    The number of the port that is used for health checks. Valid values: 0 to 65535. Default value: 0. This value indicates that the backend server is used for health checks.
    health_check_host str
    The domain name that is used for health checks. Valid values: $SERVER_IP (default value): The private IP addresses of backend servers. If the $_ip parameter is set or the HealthCheckHost parameter is not set, SLB uses the private IP addresses of backend servers as the domain names for health checks. domain: The domain name must be 1 to 80 characters in length, and can contain only letters, digits, periods (.),and hyphens (-).
    health_check_http_version str
    The version of the HTTP protocol. Valid values: HTTP 1.0 and HTTP 1.1. Default value: HTTP 1.1.
    health_check_interval int
    The time interval between two consecutive health checks. Valid values: 1 to 50. Unit: seconds. Default value: 2.
    health_check_method str
    The health check method. Valid values: GET and HEAD. Default value: HEAD.
    health_check_path str
    The URL that is used for health checks. The URL must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), percent signs (%), question marks (?), number signs (#), and ampersands (&). The URL can also contain the following extended characters: _ ; ~ ! ( )* [ ] @ $ ^ : ' , +. The URL must start with a forward slash (/).
    health_check_protocol str
    The protocol used for the health check. Value: HTTP (default): Sends a HEAD or GET request to simulate the browser's access behavior to check whether the server application is healthy. HTTPS: Sends a HEAD or GET request to simulate the browser's access behavior to check whether the server application is healthy. (Data encryption is more secure than HTTP.) TCP: Sends a SYN handshake packet to check whether the server port is alive. gRPC: Check whether the server application is healthy by sending a POST or GET request.
    health_check_timeout int
    The timeout period of a health check response. If the backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the health check fails. Valid values: 1 to 300. Unit: seconds. Default value: 5.
    healthy_threshold int
    The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy (from fail to success).
    resource_group_id str
    The ID of the resource group
    tags Mapping[str, str]
    The tag of the resource
    unhealthy_threshold int
    Specifies the number of times that an healthy backend server must consecutively fail health checks before it is declared unhealthy (from success to fail).
    healthCheckTemplateName String
    The name of the health check template. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.
    dryRun Boolean
    Whether to PreCheck only this request, value: true: sends a check request and does not create a resource. Check items include whether required parameters, request format, and business restrictions have been filled in. If the check fails, the corresponding error is returned. If the check passes, the error code DryRunOperation is returned. false (default): Sends a normal request, returns the http_2xx status code after the check, and directly performs the operation.
    healthCheckCodes List<String>
    The HTTP code of the health check. The default value is http_2xx. The normal HTTP code for health check. Separate multiple codes with commas (,). Valid values: http_2xx, http_3xx, http_4xx, or http_5xx.
    healthCheckConnectPort Number
    The number of the port that is used for health checks. Valid values: 0 to 65535. Default value: 0. This value indicates that the backend server is used for health checks.
    healthCheckHost String
    The domain name that is used for health checks. Valid values: $SERVER_IP (default value): The private IP addresses of backend servers. If the $_ip parameter is set or the HealthCheckHost parameter is not set, SLB uses the private IP addresses of backend servers as the domain names for health checks. domain: The domain name must be 1 to 80 characters in length, and can contain only letters, digits, periods (.),and hyphens (-).
    healthCheckHttpVersion String
    The version of the HTTP protocol. Valid values: HTTP 1.0 and HTTP 1.1. Default value: HTTP 1.1.
    healthCheckInterval Number
    The time interval between two consecutive health checks. Valid values: 1 to 50. Unit: seconds. Default value: 2.
    healthCheckMethod String
    The health check method. Valid values: GET and HEAD. Default value: HEAD.
    healthCheckPath String
    The URL that is used for health checks. The URL must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), percent signs (%), question marks (?), number signs (#), and ampersands (&). The URL can also contain the following extended characters: _ ; ~ ! ( )* [ ] @ $ ^ : ' , +. The URL must start with a forward slash (/).
    healthCheckProtocol String
    The protocol used for the health check. Value: HTTP (default): Sends a HEAD or GET request to simulate the browser's access behavior to check whether the server application is healthy. HTTPS: Sends a HEAD or GET request to simulate the browser's access behavior to check whether the server application is healthy. (Data encryption is more secure than HTTP.) TCP: Sends a SYN handshake packet to check whether the server port is alive. gRPC: Check whether the server application is healthy by sending a POST or GET request.
    healthCheckTimeout Number
    The timeout period of a health check response. If the backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the health check fails. Valid values: 1 to 300. Unit: seconds. Default value: 5.
    healthyThreshold Number
    The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy (from fail to success).
    resourceGroupId String
    The ID of the resource group
    tags Map<String>
    The tag of the resource
    unhealthyThreshold Number
    Specifies the number of times that an healthy backend server must consecutively fail health checks before it is declared unhealthy (from success to fail).

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    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,
            dry_run: Optional[bool] = None,
            health_check_codes: Optional[Sequence[str]] = None,
            health_check_connect_port: Optional[int] = None,
            health_check_host: Optional[str] = None,
            health_check_http_version: Optional[str] = None,
            health_check_interval: Optional[int] = None,
            health_check_method: Optional[str] = None,
            health_check_path: Optional[str] = None,
            health_check_protocol: Optional[str] = None,
            health_check_template_name: Optional[str] = None,
            health_check_timeout: Optional[int] = None,
            healthy_threshold: Optional[int] = None,
            resource_group_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            unhealthy_threshold: Optional[int] = None) -> HealthCheckTemplate
    func 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: alicloud: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.
    The following state arguments are supported:
    DryRun bool
    Whether to PreCheck only this request, value: true: sends a check request and does not create a resource. Check items include whether required parameters, request format, and business restrictions have been filled in. If the check fails, the corresponding error is returned. If the check passes, the error code DryRunOperation is returned. false (default): Sends a normal request, returns the http_2xx status code after the check, and directly performs the operation.
    HealthCheckCodes List<string>
    The HTTP code of the health check. The default value is http_2xx. The normal HTTP code for health check. Separate multiple codes with commas (,). Valid values: http_2xx, http_3xx, http_4xx, or http_5xx.
    HealthCheckConnectPort int
    The number of the port that is used for health checks. Valid values: 0 to 65535. Default value: 0. This value indicates that the backend server is used for health checks.
    HealthCheckHost string
    The domain name that is used for health checks. Valid values: $SERVER_IP (default value): The private IP addresses of backend servers. If the $_ip parameter is set or the HealthCheckHost parameter is not set, SLB uses the private IP addresses of backend servers as the domain names for health checks. domain: The domain name must be 1 to 80 characters in length, and can contain only letters, digits, periods (.),and hyphens (-).
    HealthCheckHttpVersion string
    The version of the HTTP protocol. Valid values: HTTP 1.0 and HTTP 1.1. Default value: HTTP 1.1.
    HealthCheckInterval int
    The time interval between two consecutive health checks. Valid values: 1 to 50. Unit: seconds. Default value: 2.
    HealthCheckMethod string
    The health check method. Valid values: GET and HEAD. Default value: HEAD.
    HealthCheckPath string
    The URL that is used for health checks. The URL must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), percent signs (%), question marks (?), number signs (#), and ampersands (&). The URL can also contain the following extended characters: _ ; ~ ! ( )* [ ] @ $ ^ : ' , +. The URL must start with a forward slash (/).
    HealthCheckProtocol string
    The protocol used for the health check. Value: HTTP (default): Sends a HEAD or GET request to simulate the browser's access behavior to check whether the server application is healthy. HTTPS: Sends a HEAD or GET request to simulate the browser's access behavior to check whether the server application is healthy. (Data encryption is more secure than HTTP.) TCP: Sends a SYN handshake packet to check whether the server port is alive. gRPC: Check whether the server application is healthy by sending a POST or GET request.
    HealthCheckTemplateName string
    The name of the health check template. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.
    HealthCheckTimeout int
    The timeout period of a health check response. If the backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the health check fails. Valid values: 1 to 300. Unit: seconds. Default value: 5.
    HealthyThreshold int
    The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy (from fail to success).
    ResourceGroupId string
    The ID of the resource group
    Tags Dictionary<string, string>
    The tag of the resource
    UnhealthyThreshold int
    Specifies the number of times that an healthy backend server must consecutively fail health checks before it is declared unhealthy (from success to fail).
    DryRun bool
    Whether to PreCheck only this request, value: true: sends a check request and does not create a resource. Check items include whether required parameters, request format, and business restrictions have been filled in. If the check fails, the corresponding error is returned. If the check passes, the error code DryRunOperation is returned. false (default): Sends a normal request, returns the http_2xx status code after the check, and directly performs the operation.
    HealthCheckCodes []string
    The HTTP code of the health check. The default value is http_2xx. The normal HTTP code for health check. Separate multiple codes with commas (,). Valid values: http_2xx, http_3xx, http_4xx, or http_5xx.
    HealthCheckConnectPort int
    The number of the port that is used for health checks. Valid values: 0 to 65535. Default value: 0. This value indicates that the backend server is used for health checks.
    HealthCheckHost string
    The domain name that is used for health checks. Valid values: $SERVER_IP (default value): The private IP addresses of backend servers. If the $_ip parameter is set or the HealthCheckHost parameter is not set, SLB uses the private IP addresses of backend servers as the domain names for health checks. domain: The domain name must be 1 to 80 characters in length, and can contain only letters, digits, periods (.),and hyphens (-).
    HealthCheckHttpVersion string
    The version of the HTTP protocol. Valid values: HTTP 1.0 and HTTP 1.1. Default value: HTTP 1.1.
    HealthCheckInterval int
    The time interval between two consecutive health checks. Valid values: 1 to 50. Unit: seconds. Default value: 2.
    HealthCheckMethod string
    The health check method. Valid values: GET and HEAD. Default value: HEAD.
    HealthCheckPath string
    The URL that is used for health checks. The URL must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), percent signs (%), question marks (?), number signs (#), and ampersands (&). The URL can also contain the following extended characters: _ ; ~ ! ( )* [ ] @ $ ^ : ' , +. The URL must start with a forward slash (/).
    HealthCheckProtocol string
    The protocol used for the health check. Value: HTTP (default): Sends a HEAD or GET request to simulate the browser's access behavior to check whether the server application is healthy. HTTPS: Sends a HEAD or GET request to simulate the browser's access behavior to check whether the server application is healthy. (Data encryption is more secure than HTTP.) TCP: Sends a SYN handshake packet to check whether the server port is alive. gRPC: Check whether the server application is healthy by sending a POST or GET request.
    HealthCheckTemplateName string
    The name of the health check template. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.
    HealthCheckTimeout int
    The timeout period of a health check response. If the backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the health check fails. Valid values: 1 to 300. Unit: seconds. Default value: 5.
    HealthyThreshold int
    The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy (from fail to success).
    ResourceGroupId string
    The ID of the resource group
    Tags map[string]string
    The tag of the resource
    UnhealthyThreshold int
    Specifies the number of times that an healthy backend server must consecutively fail health checks before it is declared unhealthy (from success to fail).
    dryRun Boolean
    Whether to PreCheck only this request, value: true: sends a check request and does not create a resource. Check items include whether required parameters, request format, and business restrictions have been filled in. If the check fails, the corresponding error is returned. If the check passes, the error code DryRunOperation is returned. false (default): Sends a normal request, returns the http_2xx status code after the check, and directly performs the operation.
    healthCheckCodes List<String>
    The HTTP code of the health check. The default value is http_2xx. The normal HTTP code for health check. Separate multiple codes with commas (,). Valid values: http_2xx, http_3xx, http_4xx, or http_5xx.
    healthCheckConnectPort Integer
    The number of the port that is used for health checks. Valid values: 0 to 65535. Default value: 0. This value indicates that the backend server is used for health checks.
    healthCheckHost String
    The domain name that is used for health checks. Valid values: $SERVER_IP (default value): The private IP addresses of backend servers. If the $_ip parameter is set or the HealthCheckHost parameter is not set, SLB uses the private IP addresses of backend servers as the domain names for health checks. domain: The domain name must be 1 to 80 characters in length, and can contain only letters, digits, periods (.),and hyphens (-).
    healthCheckHttpVersion String
    The version of the HTTP protocol. Valid values: HTTP 1.0 and HTTP 1.1. Default value: HTTP 1.1.
    healthCheckInterval Integer
    The time interval between two consecutive health checks. Valid values: 1 to 50. Unit: seconds. Default value: 2.
    healthCheckMethod String
    The health check method. Valid values: GET and HEAD. Default value: HEAD.
    healthCheckPath String
    The URL that is used for health checks. The URL must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), percent signs (%), question marks (?), number signs (#), and ampersands (&). The URL can also contain the following extended characters: _ ; ~ ! ( )* [ ] @ $ ^ : ' , +. The URL must start with a forward slash (/).
    healthCheckProtocol String
    The protocol used for the health check. Value: HTTP (default): Sends a HEAD or GET request to simulate the browser's access behavior to check whether the server application is healthy. HTTPS: Sends a HEAD or GET request to simulate the browser's access behavior to check whether the server application is healthy. (Data encryption is more secure than HTTP.) TCP: Sends a SYN handshake packet to check whether the server port is alive. gRPC: Check whether the server application is healthy by sending a POST or GET request.
    healthCheckTemplateName String
    The name of the health check template. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.
    healthCheckTimeout Integer
    The timeout period of a health check response. If the backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the health check fails. Valid values: 1 to 300. Unit: seconds. Default value: 5.
    healthyThreshold Integer
    The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy (from fail to success).
    resourceGroupId String
    The ID of the resource group
    tags Map<String,String>
    The tag of the resource
    unhealthyThreshold Integer
    Specifies the number of times that an healthy backend server must consecutively fail health checks before it is declared unhealthy (from success to fail).
    dryRun boolean
    Whether to PreCheck only this request, value: true: sends a check request and does not create a resource. Check items include whether required parameters, request format, and business restrictions have been filled in. If the check fails, the corresponding error is returned. If the check passes, the error code DryRunOperation is returned. false (default): Sends a normal request, returns the http_2xx status code after the check, and directly performs the operation.
    healthCheckCodes string[]
    The HTTP code of the health check. The default value is http_2xx. The normal HTTP code for health check. Separate multiple codes with commas (,). Valid values: http_2xx, http_3xx, http_4xx, or http_5xx.
    healthCheckConnectPort number
    The number of the port that is used for health checks. Valid values: 0 to 65535. Default value: 0. This value indicates that the backend server is used for health checks.
    healthCheckHost string
    The domain name that is used for health checks. Valid values: $SERVER_IP (default value): The private IP addresses of backend servers. If the $_ip parameter is set or the HealthCheckHost parameter is not set, SLB uses the private IP addresses of backend servers as the domain names for health checks. domain: The domain name must be 1 to 80 characters in length, and can contain only letters, digits, periods (.),and hyphens (-).
    healthCheckHttpVersion string
    The version of the HTTP protocol. Valid values: HTTP 1.0 and HTTP 1.1. Default value: HTTP 1.1.
    healthCheckInterval number
    The time interval between two consecutive health checks. Valid values: 1 to 50. Unit: seconds. Default value: 2.
    healthCheckMethod string
    The health check method. Valid values: GET and HEAD. Default value: HEAD.
    healthCheckPath string
    The URL that is used for health checks. The URL must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), percent signs (%), question marks (?), number signs (#), and ampersands (&). The URL can also contain the following extended characters: _ ; ~ ! ( )* [ ] @ $ ^ : ' , +. The URL must start with a forward slash (/).
    healthCheckProtocol string
    The protocol used for the health check. Value: HTTP (default): Sends a HEAD or GET request to simulate the browser's access behavior to check whether the server application is healthy. HTTPS: Sends a HEAD or GET request to simulate the browser's access behavior to check whether the server application is healthy. (Data encryption is more secure than HTTP.) TCP: Sends a SYN handshake packet to check whether the server port is alive. gRPC: Check whether the server application is healthy by sending a POST or GET request.
    healthCheckTemplateName string
    The name of the health check template. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.
    healthCheckTimeout number
    The timeout period of a health check response. If the backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the health check fails. Valid values: 1 to 300. Unit: seconds. Default value: 5.
    healthyThreshold number
    The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy (from fail to success).
    resourceGroupId string
    The ID of the resource group
    tags {[key: string]: string}
    The tag of the resource
    unhealthyThreshold number
    Specifies the number of times that an healthy backend server must consecutively fail health checks before it is declared unhealthy (from success to fail).
    dry_run bool
    Whether to PreCheck only this request, value: true: sends a check request and does not create a resource. Check items include whether required parameters, request format, and business restrictions have been filled in. If the check fails, the corresponding error is returned. If the check passes, the error code DryRunOperation is returned. false (default): Sends a normal request, returns the http_2xx status code after the check, and directly performs the operation.
    health_check_codes Sequence[str]
    The HTTP code of the health check. The default value is http_2xx. The normal HTTP code for health check. Separate multiple codes with commas (,). Valid values: http_2xx, http_3xx, http_4xx, or http_5xx.
    health_check_connect_port int
    The number of the port that is used for health checks. Valid values: 0 to 65535. Default value: 0. This value indicates that the backend server is used for health checks.
    health_check_host str
    The domain name that is used for health checks. Valid values: $SERVER_IP (default value): The private IP addresses of backend servers. If the $_ip parameter is set or the HealthCheckHost parameter is not set, SLB uses the private IP addresses of backend servers as the domain names for health checks. domain: The domain name must be 1 to 80 characters in length, and can contain only letters, digits, periods (.),and hyphens (-).
    health_check_http_version str
    The version of the HTTP protocol. Valid values: HTTP 1.0 and HTTP 1.1. Default value: HTTP 1.1.
    health_check_interval int
    The time interval between two consecutive health checks. Valid values: 1 to 50. Unit: seconds. Default value: 2.
    health_check_method str
    The health check method. Valid values: GET and HEAD. Default value: HEAD.
    health_check_path str
    The URL that is used for health checks. The URL must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), percent signs (%), question marks (?), number signs (#), and ampersands (&). The URL can also contain the following extended characters: _ ; ~ ! ( )* [ ] @ $ ^ : ' , +. The URL must start with a forward slash (/).
    health_check_protocol str
    The protocol used for the health check. Value: HTTP (default): Sends a HEAD or GET request to simulate the browser's access behavior to check whether the server application is healthy. HTTPS: Sends a HEAD or GET request to simulate the browser's access behavior to check whether the server application is healthy. (Data encryption is more secure than HTTP.) TCP: Sends a SYN handshake packet to check whether the server port is alive. gRPC: Check whether the server application is healthy by sending a POST or GET request.
    health_check_template_name str
    The name of the health check template. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.
    health_check_timeout int
    The timeout period of a health check response. If the backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the health check fails. Valid values: 1 to 300. Unit: seconds. Default value: 5.
    healthy_threshold int
    The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy (from fail to success).
    resource_group_id str
    The ID of the resource group
    tags Mapping[str, str]
    The tag of the resource
    unhealthy_threshold int
    Specifies the number of times that an healthy backend server must consecutively fail health checks before it is declared unhealthy (from success to fail).
    dryRun Boolean
    Whether to PreCheck only this request, value: true: sends a check request and does not create a resource. Check items include whether required parameters, request format, and business restrictions have been filled in. If the check fails, the corresponding error is returned. If the check passes, the error code DryRunOperation is returned. false (default): Sends a normal request, returns the http_2xx status code after the check, and directly performs the operation.
    healthCheckCodes List<String>
    The HTTP code of the health check. The default value is http_2xx. The normal HTTP code for health check. Separate multiple codes with commas (,). Valid values: http_2xx, http_3xx, http_4xx, or http_5xx.
    healthCheckConnectPort Number
    The number of the port that is used for health checks. Valid values: 0 to 65535. Default value: 0. This value indicates that the backend server is used for health checks.
    healthCheckHost String
    The domain name that is used for health checks. Valid values: $SERVER_IP (default value): The private IP addresses of backend servers. If the $_ip parameter is set or the HealthCheckHost parameter is not set, SLB uses the private IP addresses of backend servers as the domain names for health checks. domain: The domain name must be 1 to 80 characters in length, and can contain only letters, digits, periods (.),and hyphens (-).
    healthCheckHttpVersion String
    The version of the HTTP protocol. Valid values: HTTP 1.0 and HTTP 1.1. Default value: HTTP 1.1.
    healthCheckInterval Number
    The time interval between two consecutive health checks. Valid values: 1 to 50. Unit: seconds. Default value: 2.
    healthCheckMethod String
    The health check method. Valid values: GET and HEAD. Default value: HEAD.
    healthCheckPath String
    The URL that is used for health checks. The URL must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), percent signs (%), question marks (?), number signs (#), and ampersands (&). The URL can also contain the following extended characters: _ ; ~ ! ( )* [ ] @ $ ^ : ' , +. The URL must start with a forward slash (/).
    healthCheckProtocol String
    The protocol used for the health check. Value: HTTP (default): Sends a HEAD or GET request to simulate the browser's access behavior to check whether the server application is healthy. HTTPS: Sends a HEAD or GET request to simulate the browser's access behavior to check whether the server application is healthy. (Data encryption is more secure than HTTP.) TCP: Sends a SYN handshake packet to check whether the server port is alive. gRPC: Check whether the server application is healthy by sending a POST or GET request.
    healthCheckTemplateName String
    The name of the health check template. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.
    healthCheckTimeout Number
    The timeout period of a health check response. If the backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the health check fails. Valid values: 1 to 300. Unit: seconds. Default value: 5.
    healthyThreshold Number
    The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy (from fail to success).
    resourceGroupId String
    The ID of the resource group
    tags Map<String>
    The tag of the resource
    unhealthyThreshold Number
    Specifies the number of times that an healthy backend server must consecutively fail health checks before it is declared unhealthy (from success to fail).

    Import

    Application Load Balancer (ALB) Health Check Template can be imported using the id, e.g.

    $ pulumi import alicloud:alb/healthCheckTemplate:HealthCheckTemplate example <id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.81.0 published on Monday, Jun 23, 2025 by Pulumi