published on Thursday, Sep 17, 2026 by Pulumi
published on Thursday, Sep 17, 2026 by Pulumi
Provides a ENS Load Balancer HTTP Listener resource.
HTTP listener for Edge Load Balancer (ELB) in Edge Node Service (ENS).
For information about ENS Load Balancer HTTP Listener and how to use it, see CreateLoadBalancerHTTPListener.
NOTE: Available since v1.291.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 network = new alicloud.ens.Network("network", {
networkName: name,
description: name,
cidrBlock: "192.168.0.0/16",
ensRegionId: "cn-chenzhou-telecom_unicom_cmcc",
});
const _switch = new alicloud.ens.Vswitch("switch", {
description: name,
cidrBlock: "192.168.2.0/24",
vswitchName: name,
ensRegionId: "cn-chenzhou-telecom_unicom_cmcc",
networkId: network.id,
});
const _default = new alicloud.ens.LoadBalancer("default", {
loadBalancerName: name,
paymentType: "PayAsYouGo",
ensRegionId: "cn-chenzhou-telecom_unicom_cmcc",
loadBalancerSpec: "elb.s1.small",
vswitchId: _switch.id,
networkId: network.id,
});
const defaultLoadBalancerHttpListener = new alicloud.ens.LoadBalancerHttpListener("default", {
loadBalancerId: _default.id,
listenerPort: 80,
healthCheck: "on",
healthCheckUri: "/",
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
network = alicloud.ens.Network("network",
network_name=name,
description=name,
cidr_block="192.168.0.0/16",
ens_region_id="cn-chenzhou-telecom_unicom_cmcc")
switch = alicloud.ens.Vswitch("switch",
description=name,
cidr_block="192.168.2.0/24",
vswitch_name=name,
ens_region_id="cn-chenzhou-telecom_unicom_cmcc",
network_id=network.id)
default = alicloud.ens.LoadBalancer("default",
load_balancer_name=name,
payment_type="PayAsYouGo",
ens_region_id="cn-chenzhou-telecom_unicom_cmcc",
load_balancer_spec="elb.s1.small",
vswitch_id=switch.id,
network_id=network.id)
default_load_balancer_http_listener = alicloud.ens.LoadBalancerHttpListener("default",
load_balancer_id=default.id,
listener_port=80,
health_check="on",
health_check_uri="/")
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ens"
"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
}
network, err := ens.NewNetwork(ctx, "network", &ens.NetworkArgs{
NetworkName: pulumi.String(name),
Description: pulumi.String(name),
CidrBlock: pulumi.String("192.168.0.0/16"),
EnsRegionId: pulumi.String("cn-chenzhou-telecom_unicom_cmcc"),
})
if err != nil {
return err
}
_switch, err := ens.NewVswitch(ctx, "switch", &ens.VswitchArgs{
Description: pulumi.String(name),
CidrBlock: pulumi.String("192.168.2.0/24"),
VswitchName: pulumi.String(name),
EnsRegionId: pulumi.String("cn-chenzhou-telecom_unicom_cmcc"),
NetworkId: network.ID().ToIDOutput().ToStringOutput(),
})
if err != nil {
return err
}
_default, err := ens.NewLoadBalancer(ctx, "default", &ens.LoadBalancerArgs{
LoadBalancerName: pulumi.String(name),
PaymentType: pulumi.String("PayAsYouGo"),
EnsRegionId: pulumi.String("cn-chenzhou-telecom_unicom_cmcc"),
LoadBalancerSpec: pulumi.String("elb.s1.small"),
VswitchId: _switch.ID().ToIDOutput().ToStringOutput(),
NetworkId: network.ID().ToIDOutput().ToStringOutput(),
})
if err != nil {
return err
}
_, err = ens.NewLoadBalancerHttpListener(ctx, "default", &ens.LoadBalancerHttpListenerArgs{
LoadBalancerId: _default.ID().ToIDOutput().ToStringOutput(),
ListenerPort: pulumi.Int(80),
HealthCheck: pulumi.String("on"),
HealthCheckUri: pulumi.String("/"),
})
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 network = new AliCloud.Ens.Network("network", new()
{
NetworkName = name,
Description = name,
CidrBlock = "192.168.0.0/16",
EnsRegionId = "cn-chenzhou-telecom_unicom_cmcc",
});
var @switch = new AliCloud.Ens.Vswitch("switch", new()
{
Description = name,
CidrBlock = "192.168.2.0/24",
VswitchName = name,
EnsRegionId = "cn-chenzhou-telecom_unicom_cmcc",
NetworkId = network.Id,
});
var @default = new AliCloud.Ens.LoadBalancer("default", new()
{
LoadBalancerName = name,
PaymentType = "PayAsYouGo",
EnsRegionId = "cn-chenzhou-telecom_unicom_cmcc",
LoadBalancerSpec = "elb.s1.small",
VswitchId = @switch.Id,
NetworkId = network.Id,
});
var defaultLoadBalancerHttpListener = new AliCloud.Ens.LoadBalancerHttpListener("default", new()
{
LoadBalancerId = @default.Id,
ListenerPort = 80,
HealthCheck = "on",
HealthCheckUri = "/",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ens.Network;
import com.pulumi.alicloud.ens.NetworkArgs;
import com.pulumi.alicloud.ens.Vswitch;
import com.pulumi.alicloud.ens.VswitchArgs;
import com.pulumi.alicloud.ens.LoadBalancer;
import com.pulumi.alicloud.ens.LoadBalancerArgs;
import com.pulumi.alicloud.ens.LoadBalancerHttpListener;
import com.pulumi.alicloud.ens.LoadBalancerHttpListenerArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 network = new Network("network", NetworkArgs.builder()
.networkName(name)
.description(name)
.cidrBlock("192.168.0.0/16")
.ensRegionId("cn-chenzhou-telecom_unicom_cmcc")
.build());
var switch_ = new Vswitch("switch", VswitchArgs.builder()
.description(name)
.cidrBlock("192.168.2.0/24")
.vswitchName(name)
.ensRegionId("cn-chenzhou-telecom_unicom_cmcc")
.networkId(network.id())
.build());
var default_ = new LoadBalancer("default", LoadBalancerArgs.builder()
.loadBalancerName(name)
.paymentType("PayAsYouGo")
.ensRegionId("cn-chenzhou-telecom_unicom_cmcc")
.loadBalancerSpec("elb.s1.small")
.vswitchId(switch_.id())
.networkId(network.id())
.build());
var defaultLoadBalancerHttpListener = new LoadBalancerHttpListener("defaultLoadBalancerHttpListener", LoadBalancerHttpListenerArgs.builder()
.loadBalancerId(default_.id())
.listenerPort(80)
.healthCheck("on")
.healthCheckUri("/")
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
network:
type: alicloud:ens:Network
properties:
networkName: ${name}
description: ${name}
cidrBlock: 192.168.0.0/16
ensRegionId: cn-chenzhou-telecom_unicom_cmcc
switch:
type: alicloud:ens:Vswitch
properties:
description: ${name}
cidrBlock: 192.168.2.0/24
vswitchName: ${name}
ensRegionId: cn-chenzhou-telecom_unicom_cmcc
networkId: ${network.id}
default:
type: alicloud:ens:LoadBalancer
properties:
loadBalancerName: ${name}
paymentType: PayAsYouGo
ensRegionId: cn-chenzhou-telecom_unicom_cmcc
loadBalancerSpec: elb.s1.small
vswitchId: ${switch.id}
networkId: ${network.id}
defaultLoadBalancerHttpListener:
type: alicloud:ens:LoadBalancerHttpListener
name: default
properties:
loadBalancerId: ${default.id}
listenerPort: 80
healthCheck: on
healthCheckUri: /
pulumi {
required_providers {
alicloud = {
source = "pulumi/alicloud"
}
}
}
resource "alicloud_ens_network" "network" {
network_name = var.name
description = var.name
cidr_block = "192.168.0.0/16"
ens_region_id = "cn-chenzhou-telecom_unicom_cmcc"
}
resource "alicloud_ens_vswitch" "switch" {
description = var.name
cidr_block = "192.168.2.0/24"
vswitch_name = var.name
ens_region_id = "cn-chenzhou-telecom_unicom_cmcc"
network_id = alicloud_ens_network.network.id
}
resource "alicloud_ens_loadbalancer" "default" {
load_balancer_name = var.name
payment_type = "PayAsYouGo"
ens_region_id = "cn-chenzhou-telecom_unicom_cmcc"
load_balancer_spec = "elb.s1.small"
vswitch_id = alicloud_ens_vswitch.switch.id
network_id = alicloud_ens_network.network.id
}
resource "alicloud_ens_loadbalancerhttplistener" "default" {
load_balancer_id = alicloud_ens_loadbalancer.default.id
listener_port = 80
health_check = "on"
health_check_uri = "/"
}
variable "name" {
type = string
default = "terraform-example"
}
📚 Need more examples? VIEW MORE EXAMPLES
Create LoadBalancerHttpListener Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LoadBalancerHttpListener(name: string, args: LoadBalancerHttpListenerArgs, opts?: CustomResourceOptions);@overload
def LoadBalancerHttpListener(resource_name: str,
args: LoadBalancerHttpListenerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LoadBalancerHttpListener(resource_name: str,
opts: Optional[ResourceOptions] = None,
listener_port: Optional[int] = None,
load_balancer_id: Optional[str] = None,
health_check_domain: Optional[str] = None,
healthy_threshold: Optional[int] = None,
health_check_connect_port: Optional[int] = None,
backend_server_port: Optional[int] = None,
health_check_http_code: Optional[str] = None,
health_check_interval: Optional[int] = None,
health_check_method: Optional[str] = None,
health_check_timeout: Optional[int] = None,
health_check_uri: Optional[str] = None,
health_check: Optional[str] = None,
idle_timeout: Optional[int] = None,
listener_forward: Optional[str] = None,
forward_port: Optional[int] = None,
description: Optional[str] = None,
request_timeout: Optional[int] = None,
scheduler: Optional[str] = None,
status: Optional[str] = None,
unhealthy_threshold: Optional[int] = None,
x_forwarded_for: Optional[str] = None)func NewLoadBalancerHttpListener(ctx *Context, name string, args LoadBalancerHttpListenerArgs, opts ...ResourceOption) (*LoadBalancerHttpListener, error)public LoadBalancerHttpListener(string name, LoadBalancerHttpListenerArgs args, CustomResourceOptions? opts = null)
public LoadBalancerHttpListener(String name, LoadBalancerHttpListenerArgs args)
public LoadBalancerHttpListener(String name, LoadBalancerHttpListenerArgs args, CustomResourceOptions options)
type: alicloud:ens:LoadBalancerHttpListener
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "alicloud_ens_load_balancer_http_listener" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args LoadBalancerHttpListenerArgs
- 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 LoadBalancerHttpListenerArgs
- 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 LoadBalancerHttpListenerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LoadBalancerHttpListenerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LoadBalancerHttpListenerArgs
- 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 loadBalancerHttpListenerResource = new AliCloud.Ens.LoadBalancerHttpListener("loadBalancerHttpListenerResource", new()
{
ListenerPort = 0,
LoadBalancerId = "string",
HealthCheckDomain = "string",
HealthyThreshold = 0,
HealthCheckConnectPort = 0,
BackendServerPort = 0,
HealthCheckHttpCode = "string",
HealthCheckInterval = 0,
HealthCheckMethod = "string",
HealthCheckTimeout = 0,
HealthCheckUri = "string",
HealthCheck = "string",
IdleTimeout = 0,
ListenerForward = "string",
ForwardPort = 0,
Description = "string",
RequestTimeout = 0,
Scheduler = "string",
Status = "string",
UnhealthyThreshold = 0,
XForwardedFor = "string",
});
example, err := ens.NewLoadBalancerHttpListener(ctx, "loadBalancerHttpListenerResource", &ens.LoadBalancerHttpListenerArgs{
ListenerPort: pulumi.Int(0),
LoadBalancerId: pulumi.String("string"),
HealthCheckDomain: pulumi.String("string"),
HealthyThreshold: pulumi.Int(0),
HealthCheckConnectPort: pulumi.Int(0),
BackendServerPort: pulumi.Int(0),
HealthCheckHttpCode: pulumi.String("string"),
HealthCheckInterval: pulumi.Int(0),
HealthCheckMethod: pulumi.String("string"),
HealthCheckTimeout: pulumi.Int(0),
HealthCheckUri: pulumi.String("string"),
HealthCheck: pulumi.String("string"),
IdleTimeout: pulumi.Int(0),
ListenerForward: pulumi.String("string"),
ForwardPort: pulumi.Int(0),
Description: pulumi.String("string"),
RequestTimeout: pulumi.Int(0),
Scheduler: pulumi.String("string"),
Status: pulumi.String("string"),
UnhealthyThreshold: pulumi.Int(0),
XForwardedFor: pulumi.String("string"),
})
resource "alicloud_ens_load_balancer_http_listener" "loadBalancerHttpListenerResource" {
lifecycle {
create_before_destroy = true
}
listener_port = 0
load_balancer_id = "string"
health_check_domain = "string"
healthy_threshold = 0
health_check_connect_port = 0
backend_server_port = 0
health_check_http_code = "string"
health_check_interval = 0
health_check_method = "string"
health_check_timeout = 0
health_check_uri = "string"
health_check = "string"
idle_timeout = 0
listener_forward = "string"
forward_port = 0
description = "string"
request_timeout = 0
scheduler = "string"
status = "string"
unhealthy_threshold = 0
x_forwarded_for = "string"
}
var loadBalancerHttpListenerResource = new LoadBalancerHttpListener("loadBalancerHttpListenerResource", LoadBalancerHttpListenerArgs.builder()
.listenerPort(0)
.loadBalancerId("string")
.healthCheckDomain("string")
.healthyThreshold(0)
.healthCheckConnectPort(0)
.backendServerPort(0)
.healthCheckHttpCode("string")
.healthCheckInterval(0)
.healthCheckMethod("string")
.healthCheckTimeout(0)
.healthCheckUri("string")
.healthCheck("string")
.idleTimeout(0)
.listenerForward("string")
.forwardPort(0)
.description("string")
.requestTimeout(0)
.scheduler("string")
.status("string")
.unhealthyThreshold(0)
.xForwardedFor("string")
.build());
load_balancer_http_listener_resource = alicloud.ens.LoadBalancerHttpListener("loadBalancerHttpListenerResource",
listener_port=0,
load_balancer_id="string",
health_check_domain="string",
healthy_threshold=0,
health_check_connect_port=0,
backend_server_port=0,
health_check_http_code="string",
health_check_interval=0,
health_check_method="string",
health_check_timeout=0,
health_check_uri="string",
health_check="string",
idle_timeout=0,
listener_forward="string",
forward_port=0,
description="string",
request_timeout=0,
scheduler="string",
status="string",
unhealthy_threshold=0,
x_forwarded_for="string")
const loadBalancerHttpListenerResource = new alicloud.ens.LoadBalancerHttpListener("loadBalancerHttpListenerResource", {
listenerPort: 0,
loadBalancerId: "string",
healthCheckDomain: "string",
healthyThreshold: 0,
healthCheckConnectPort: 0,
backendServerPort: 0,
healthCheckHttpCode: "string",
healthCheckInterval: 0,
healthCheckMethod: "string",
healthCheckTimeout: 0,
healthCheckUri: "string",
healthCheck: "string",
idleTimeout: 0,
listenerForward: "string",
forwardPort: 0,
description: "string",
requestTimeout: 0,
scheduler: "string",
status: "string",
unhealthyThreshold: 0,
xForwardedFor: "string",
});
type: alicloud:ens:LoadBalancerHttpListener
properties:
backendServerPort: 0
description: string
forwardPort: 0
healthCheck: string
healthCheckConnectPort: 0
healthCheckDomain: string
healthCheckHttpCode: string
healthCheckInterval: 0
healthCheckMethod: string
healthCheckTimeout: 0
healthCheckUri: string
healthyThreshold: 0
idleTimeout: 0
listenerForward: string
listenerPort: 0
loadBalancerId: string
requestTimeout: 0
scheduler: string
status: string
unhealthyThreshold: 0
xForwardedFor: string
LoadBalancerHttpListener 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 LoadBalancerHttpListener resource accepts the following input properties:
- Listener
Port int - The port on which the listener forwards requests. Valid values:
1to65535. - Load
Balancer stringId - The ID of the load balancer instance.
- Backend
Server intPort - The port used by the backend server. Valid values:
1to65535. - Description string
- The name of the listener. The name must be 1 to 80 characters in length and cannot start with
http://orhttps://. - Forward
Port int - The port to which HTTP requests are forwarded for HTTPS.
- Health
Check string - Specifies whether to enable health checks. Valid values:
on,off(default). - Health
Check intConnect Port - The port used for health checks. Valid values:
1to65535. - Health
Check stringDomain - The domain name used for health checks.
- Health
Check stringHttp Code - The HTTP status code that indicates a successful health check. Valid values:
http2xx(default),http3xx,http4xx,http5xx. - Health
Check intInterval - The interval between two consecutive health checks in seconds. Valid values:
1to50. Default:2. - Health
Check stringMethod - The HTTP method used for health checks. Valid values:
head(default),get. - Health
Check intTimeout - The timeout period of a health check response in seconds. Valid values:
1to300. Default:5. - Health
Check stringUri - The URI used for health checks. Must start with
/and be 1 to 80 characters in length. - Healthy
Threshold int - The number of consecutive successful health checks required before the backend server is considered healthy. Valid values:
2to10. Default:3. - Idle
Timeout int - The timeout period of an idle connection in seconds. Valid values:
1to60. Default:15. - Listener
Forward string - Specifies whether to enable HTTP-to-HTTPS forwarding. Valid values:
on,off(default). - Request
Timeout int - The request timeout period in seconds. A 504 error is returned if the backend server does not respond within this period. Valid values:
1to180. Default:60. - Scheduler string
- The scheduling algorithm. Valid values:
wrr(Weighted Round Robin, default),wlc(Weighted Least Connections),rr(Round Robin),sch(Source IP Hash),qch(QUIC Connection ID Hash),iqch(iQUIC CID Hash). - Status string
- The status of the listener. Set it to
runningto start the listener orstoppedto stop it. If not specified, the listener is created in thestoppedstate. - Unhealthy
Threshold int - The number of consecutive failed health checks required before the backend server is considered unhealthy. Valid values:
2to10. Default:3. - XForwarded
For string - Specifies whether to use the X-Forwarded-For header to retrieve the real IP address of the client. Valid values:
on,off(default).
- Listener
Port int - The port on which the listener forwards requests. Valid values:
1to65535. - Load
Balancer stringId - The ID of the load balancer instance.
- Backend
Server intPort - The port used by the backend server. Valid values:
1to65535. - Description string
- The name of the listener. The name must be 1 to 80 characters in length and cannot start with
http://orhttps://. - Forward
Port int - The port to which HTTP requests are forwarded for HTTPS.
- Health
Check string - Specifies whether to enable health checks. Valid values:
on,off(default). - Health
Check intConnect Port - The port used for health checks. Valid values:
1to65535. - Health
Check stringDomain - The domain name used for health checks.
- Health
Check stringHttp Code - The HTTP status code that indicates a successful health check. Valid values:
http2xx(default),http3xx,http4xx,http5xx. - Health
Check intInterval - The interval between two consecutive health checks in seconds. Valid values:
1to50. Default:2. - Health
Check stringMethod - The HTTP method used for health checks. Valid values:
head(default),get. - Health
Check intTimeout - The timeout period of a health check response in seconds. Valid values:
1to300. Default:5. - Health
Check stringUri - The URI used for health checks. Must start with
/and be 1 to 80 characters in length. - Healthy
Threshold int - The number of consecutive successful health checks required before the backend server is considered healthy. Valid values:
2to10. Default:3. - Idle
Timeout int - The timeout period of an idle connection in seconds. Valid values:
1to60. Default:15. - Listener
Forward string - Specifies whether to enable HTTP-to-HTTPS forwarding. Valid values:
on,off(default). - Request
Timeout int - The request timeout period in seconds. A 504 error is returned if the backend server does not respond within this period. Valid values:
1to180. Default:60. - Scheduler string
- The scheduling algorithm. Valid values:
wrr(Weighted Round Robin, default),wlc(Weighted Least Connections),rr(Round Robin),sch(Source IP Hash),qch(QUIC Connection ID Hash),iqch(iQUIC CID Hash). - Status string
- The status of the listener. Set it to
runningto start the listener orstoppedto stop it. If not specified, the listener is created in thestoppedstate. - Unhealthy
Threshold int - The number of consecutive failed health checks required before the backend server is considered unhealthy. Valid values:
2to10. Default:3. - XForwarded
For string - Specifies whether to use the X-Forwarded-For header to retrieve the real IP address of the client. Valid values:
on,off(default).
- listener_
port number - The port on which the listener forwards requests. Valid values:
1to65535. - load_
balancer_ stringid - The ID of the load balancer instance.
- backend_
server_ numberport - The port used by the backend server. Valid values:
1to65535. - description string
- The name of the listener. The name must be 1 to 80 characters in length and cannot start with
http://orhttps://. - forward_
port number - The port to which HTTP requests are forwarded for HTTPS.
- health_
check string - Specifies whether to enable health checks. Valid values:
on,off(default). - health_
check_ numberconnect_ port - The port used for health checks. Valid values:
1to65535. - health_
check_ stringdomain - The domain name used for health checks.
- health_
check_ stringhttp_ code - The HTTP status code that indicates a successful health check. Valid values:
http2xx(default),http3xx,http4xx,http5xx. - health_
check_ numberinterval - The interval between two consecutive health checks in seconds. Valid values:
1to50. Default:2. - health_
check_ stringmethod - The HTTP method used for health checks. Valid values:
head(default),get. - health_
check_ numbertimeout - The timeout period of a health check response in seconds. Valid values:
1to300. Default:5. - health_
check_ stringuri - The URI used for health checks. Must start with
/and be 1 to 80 characters in length. - healthy_
threshold number - The number of consecutive successful health checks required before the backend server is considered healthy. Valid values:
2to10. Default:3. - idle_
timeout number - The timeout period of an idle connection in seconds. Valid values:
1to60. Default:15. - listener_
forward string - Specifies whether to enable HTTP-to-HTTPS forwarding. Valid values:
on,off(default). - request_
timeout number - The request timeout period in seconds. A 504 error is returned if the backend server does not respond within this period. Valid values:
1to180. Default:60. - scheduler string
- The scheduling algorithm. Valid values:
wrr(Weighted Round Robin, default),wlc(Weighted Least Connections),rr(Round Robin),sch(Source IP Hash),qch(QUIC Connection ID Hash),iqch(iQUIC CID Hash). - status string
- The status of the listener. Set it to
runningto start the listener orstoppedto stop it. If not specified, the listener is created in thestoppedstate. - unhealthy_
threshold number - The number of consecutive failed health checks required before the backend server is considered unhealthy. Valid values:
2to10. Default:3. - x_
forwarded_ stringfor - Specifies whether to use the X-Forwarded-For header to retrieve the real IP address of the client. Valid values:
on,off(default).
- listener
Port Integer - The port on which the listener forwards requests. Valid values:
1to65535. - load
Balancer StringId - The ID of the load balancer instance.
- backend
Server IntegerPort - The port used by the backend server. Valid values:
1to65535. - description String
- The name of the listener. The name must be 1 to 80 characters in length and cannot start with
http://orhttps://. - forward
Port Integer - The port to which HTTP requests are forwarded for HTTPS.
- health
Check String - Specifies whether to enable health checks. Valid values:
on,off(default). - health
Check IntegerConnect Port - The port used for health checks. Valid values:
1to65535. - health
Check StringDomain - The domain name used for health checks.
- health
Check StringHttp Code - The HTTP status code that indicates a successful health check. Valid values:
http2xx(default),http3xx,http4xx,http5xx. - health
Check IntegerInterval - The interval between two consecutive health checks in seconds. Valid values:
1to50. Default:2. - health
Check StringMethod - The HTTP method used for health checks. Valid values:
head(default),get. - health
Check IntegerTimeout - The timeout period of a health check response in seconds. Valid values:
1to300. Default:5. - health
Check StringUri - The URI used for health checks. Must start with
/and be 1 to 80 characters in length. - healthy
Threshold Integer - The number of consecutive successful health checks required before the backend server is considered healthy. Valid values:
2to10. Default:3. - idle
Timeout Integer - The timeout period of an idle connection in seconds. Valid values:
1to60. Default:15. - listener
Forward String - Specifies whether to enable HTTP-to-HTTPS forwarding. Valid values:
on,off(default). - request
Timeout Integer - The request timeout period in seconds. A 504 error is returned if the backend server does not respond within this period. Valid values:
1to180. Default:60. - scheduler String
- The scheduling algorithm. Valid values:
wrr(Weighted Round Robin, default),wlc(Weighted Least Connections),rr(Round Robin),sch(Source IP Hash),qch(QUIC Connection ID Hash),iqch(iQUIC CID Hash). - status String
- The status of the listener. Set it to
runningto start the listener orstoppedto stop it. If not specified, the listener is created in thestoppedstate. - unhealthy
Threshold Integer - The number of consecutive failed health checks required before the backend server is considered unhealthy. Valid values:
2to10. Default:3. - x
Forwarded StringFor - Specifies whether to use the X-Forwarded-For header to retrieve the real IP address of the client. Valid values:
on,off(default).
- listener
Port number - The port on which the listener forwards requests. Valid values:
1to65535. - load
Balancer stringId - The ID of the load balancer instance.
- backend
Server numberPort - The port used by the backend server. Valid values:
1to65535. - description string
- The name of the listener. The name must be 1 to 80 characters in length and cannot start with
http://orhttps://. - forward
Port number - The port to which HTTP requests are forwarded for HTTPS.
- health
Check string - Specifies whether to enable health checks. Valid values:
on,off(default). - health
Check numberConnect Port - The port used for health checks. Valid values:
1to65535. - health
Check stringDomain - The domain name used for health checks.
- health
Check stringHttp Code - The HTTP status code that indicates a successful health check. Valid values:
http2xx(default),http3xx,http4xx,http5xx. - health
Check numberInterval - The interval between two consecutive health checks in seconds. Valid values:
1to50. Default:2. - health
Check stringMethod - The HTTP method used for health checks. Valid values:
head(default),get. - health
Check numberTimeout - The timeout period of a health check response in seconds. Valid values:
1to300. Default:5. - health
Check stringUri - The URI used for health checks. Must start with
/and be 1 to 80 characters in length. - healthy
Threshold number - The number of consecutive successful health checks required before the backend server is considered healthy. Valid values:
2to10. Default:3. - idle
Timeout number - The timeout period of an idle connection in seconds. Valid values:
1to60. Default:15. - listener
Forward string - Specifies whether to enable HTTP-to-HTTPS forwarding. Valid values:
on,off(default). - request
Timeout number - The request timeout period in seconds. A 504 error is returned if the backend server does not respond within this period. Valid values:
1to180. Default:60. - scheduler string
- The scheduling algorithm. Valid values:
wrr(Weighted Round Robin, default),wlc(Weighted Least Connections),rr(Round Robin),sch(Source IP Hash),qch(QUIC Connection ID Hash),iqch(iQUIC CID Hash). - status string
- The status of the listener. Set it to
runningto start the listener orstoppedto stop it. If not specified, the listener is created in thestoppedstate. - unhealthy
Threshold number - The number of consecutive failed health checks required before the backend server is considered unhealthy. Valid values:
2to10. Default:3. - x
Forwarded stringFor - Specifies whether to use the X-Forwarded-For header to retrieve the real IP address of the client. Valid values:
on,off(default).
- listener_
port int - The port on which the listener forwards requests. Valid values:
1to65535. - load_
balancer_ strid - The ID of the load balancer instance.
- backend_
server_ intport - The port used by the backend server. Valid values:
1to65535. - description str
- The name of the listener. The name must be 1 to 80 characters in length and cannot start with
http://orhttps://. - forward_
port int - The port to which HTTP requests are forwarded for HTTPS.
- health_
check str - Specifies whether to enable health checks. Valid values:
on,off(default). - health_
check_ intconnect_ port - The port used for health checks. Valid values:
1to65535. - health_
check_ strdomain - The domain name used for health checks.
- health_
check_ strhttp_ code - The HTTP status code that indicates a successful health check. Valid values:
http2xx(default),http3xx,http4xx,http5xx. - health_
check_ intinterval - The interval between two consecutive health checks in seconds. Valid values:
1to50. Default:2. - health_
check_ strmethod - The HTTP method used for health checks. Valid values:
head(default),get. - health_
check_ inttimeout - The timeout period of a health check response in seconds. Valid values:
1to300. Default:5. - health_
check_ struri - The URI used for health checks. Must start with
/and be 1 to 80 characters in length. - healthy_
threshold int - The number of consecutive successful health checks required before the backend server is considered healthy. Valid values:
2to10. Default:3. - idle_
timeout int - The timeout period of an idle connection in seconds. Valid values:
1to60. Default:15. - listener_
forward str - Specifies whether to enable HTTP-to-HTTPS forwarding. Valid values:
on,off(default). - request_
timeout int - The request timeout period in seconds. A 504 error is returned if the backend server does not respond within this period. Valid values:
1to180. Default:60. - scheduler str
- The scheduling algorithm. Valid values:
wrr(Weighted Round Robin, default),wlc(Weighted Least Connections),rr(Round Robin),sch(Source IP Hash),qch(QUIC Connection ID Hash),iqch(iQUIC CID Hash). - status str
- The status of the listener. Set it to
runningto start the listener orstoppedto stop it. If not specified, the listener is created in thestoppedstate. - unhealthy_
threshold int - The number of consecutive failed health checks required before the backend server is considered unhealthy. Valid values:
2to10. Default:3. - x_
forwarded_ strfor - Specifies whether to use the X-Forwarded-For header to retrieve the real IP address of the client. Valid values:
on,off(default).
- listener
Port Number - The port on which the listener forwards requests. Valid values:
1to65535. - load
Balancer StringId - The ID of the load balancer instance.
- backend
Server NumberPort - The port used by the backend server. Valid values:
1to65535. - description String
- The name of the listener. The name must be 1 to 80 characters in length and cannot start with
http://orhttps://. - forward
Port Number - The port to which HTTP requests are forwarded for HTTPS.
- health
Check String - Specifies whether to enable health checks. Valid values:
on,off(default). - health
Check NumberConnect Port - The port used for health checks. Valid values:
1to65535. - health
Check StringDomain - The domain name used for health checks.
- health
Check StringHttp Code - The HTTP status code that indicates a successful health check. Valid values:
http2xx(default),http3xx,http4xx,http5xx. - health
Check NumberInterval - The interval between two consecutive health checks in seconds. Valid values:
1to50. Default:2. - health
Check StringMethod - The HTTP method used for health checks. Valid values:
head(default),get. - health
Check NumberTimeout - The timeout period of a health check response in seconds. Valid values:
1to300. Default:5. - health
Check StringUri - The URI used for health checks. Must start with
/and be 1 to 80 characters in length. - healthy
Threshold Number - The number of consecutive successful health checks required before the backend server is considered healthy. Valid values:
2to10. Default:3. - idle
Timeout Number - The timeout period of an idle connection in seconds. Valid values:
1to60. Default:15. - listener
Forward String - Specifies whether to enable HTTP-to-HTTPS forwarding. Valid values:
on,off(default). - request
Timeout Number - The request timeout period in seconds. A 504 error is returned if the backend server does not respond within this period. Valid values:
1to180. Default:60. - scheduler String
- The scheduling algorithm. Valid values:
wrr(Weighted Round Robin, default),wlc(Weighted Least Connections),rr(Round Robin),sch(Source IP Hash),qch(QUIC Connection ID Hash),iqch(iQUIC CID Hash). - status String
- The status of the listener. Set it to
runningto start the listener orstoppedto stop it. If not specified, the listener is created in thestoppedstate. - unhealthy
Threshold Number - The number of consecutive failed health checks required before the backend server is considered unhealthy. Valid values:
2to10. Default:3. - x
Forwarded StringFor - Specifies whether to use the X-Forwarded-For header to retrieve the real IP address of the client. Valid values:
on,off(default).
Outputs
All input properties are implicitly available as output properties. Additionally, the LoadBalancerHttpListener 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 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 LoadBalancerHttpListener Resource
Get an existing LoadBalancerHttpListener 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?: LoadBalancerHttpListenerState, opts?: CustomResourceOptions): LoadBalancerHttpListener@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backend_server_port: Optional[int] = None,
description: Optional[str] = None,
forward_port: Optional[int] = None,
health_check: Optional[str] = None,
health_check_connect_port: Optional[int] = None,
health_check_domain: Optional[str] = None,
health_check_http_code: Optional[str] = None,
health_check_interval: Optional[int] = None,
health_check_method: Optional[str] = None,
health_check_timeout: Optional[int] = None,
health_check_uri: Optional[str] = None,
healthy_threshold: Optional[int] = None,
idle_timeout: Optional[int] = None,
listener_forward: Optional[str] = None,
listener_port: Optional[int] = None,
load_balancer_id: Optional[str] = None,
request_timeout: Optional[int] = None,
scheduler: Optional[str] = None,
status: Optional[str] = None,
unhealthy_threshold: Optional[int] = None,
x_forwarded_for: Optional[str] = None) -> LoadBalancerHttpListenerfunc GetLoadBalancerHttpListener(ctx *Context, name string, id IDInput, state *LoadBalancerHttpListenerState, opts ...ResourceOption) (*LoadBalancerHttpListener, error)public static LoadBalancerHttpListener Get(string name, Input<string> id, LoadBalancerHttpListenerState? state, CustomResourceOptions? opts = null)public static LoadBalancerHttpListener get(String name, Output<String> id, LoadBalancerHttpListenerState state, CustomResourceOptions options)resources: _: type: alicloud:ens:LoadBalancerHttpListener get: id: ${id}import {
to = alicloud_ens_load_balancer_http_listener.example
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.
- Backend
Server intPort - The port used by the backend server. Valid values:
1to65535. - Description string
- The name of the listener. The name must be 1 to 80 characters in length and cannot start with
http://orhttps://. - Forward
Port int - The port to which HTTP requests are forwarded for HTTPS.
- Health
Check string - Specifies whether to enable health checks. Valid values:
on,off(default). - Health
Check intConnect Port - The port used for health checks. Valid values:
1to65535. - Health
Check stringDomain - The domain name used for health checks.
- Health
Check stringHttp Code - The HTTP status code that indicates a successful health check. Valid values:
http2xx(default),http3xx,http4xx,http5xx. - Health
Check intInterval - The interval between two consecutive health checks in seconds. Valid values:
1to50. Default:2. - Health
Check stringMethod - The HTTP method used for health checks. Valid values:
head(default),get. - Health
Check intTimeout - The timeout period of a health check response in seconds. Valid values:
1to300. Default:5. - Health
Check stringUri - The URI used for health checks. Must start with
/and be 1 to 80 characters in length. - Healthy
Threshold int - The number of consecutive successful health checks required before the backend server is considered healthy. Valid values:
2to10. Default:3. - Idle
Timeout int - The timeout period of an idle connection in seconds. Valid values:
1to60. Default:15. - Listener
Forward string - Specifies whether to enable HTTP-to-HTTPS forwarding. Valid values:
on,off(default). - Listener
Port int - The port on which the listener forwards requests. Valid values:
1to65535. - Load
Balancer stringId - The ID of the load balancer instance.
- Request
Timeout int - The request timeout period in seconds. A 504 error is returned if the backend server does not respond within this period. Valid values:
1to180. Default:60. - Scheduler string
- The scheduling algorithm. Valid values:
wrr(Weighted Round Robin, default),wlc(Weighted Least Connections),rr(Round Robin),sch(Source IP Hash),qch(QUIC Connection ID Hash),iqch(iQUIC CID Hash). - Status string
- The status of the listener. Set it to
runningto start the listener orstoppedto stop it. If not specified, the listener is created in thestoppedstate. - Unhealthy
Threshold int - The number of consecutive failed health checks required before the backend server is considered unhealthy. Valid values:
2to10. Default:3. - XForwarded
For string - Specifies whether to use the X-Forwarded-For header to retrieve the real IP address of the client. Valid values:
on,off(default).
- Backend
Server intPort - The port used by the backend server. Valid values:
1to65535. - Description string
- The name of the listener. The name must be 1 to 80 characters in length and cannot start with
http://orhttps://. - Forward
Port int - The port to which HTTP requests are forwarded for HTTPS.
- Health
Check string - Specifies whether to enable health checks. Valid values:
on,off(default). - Health
Check intConnect Port - The port used for health checks. Valid values:
1to65535. - Health
Check stringDomain - The domain name used for health checks.
- Health
Check stringHttp Code - The HTTP status code that indicates a successful health check. Valid values:
http2xx(default),http3xx,http4xx,http5xx. - Health
Check intInterval - The interval between two consecutive health checks in seconds. Valid values:
1to50. Default:2. - Health
Check stringMethod - The HTTP method used for health checks. Valid values:
head(default),get. - Health
Check intTimeout - The timeout period of a health check response in seconds. Valid values:
1to300. Default:5. - Health
Check stringUri - The URI used for health checks. Must start with
/and be 1 to 80 characters in length. - Healthy
Threshold int - The number of consecutive successful health checks required before the backend server is considered healthy. Valid values:
2to10. Default:3. - Idle
Timeout int - The timeout period of an idle connection in seconds. Valid values:
1to60. Default:15. - Listener
Forward string - Specifies whether to enable HTTP-to-HTTPS forwarding. Valid values:
on,off(default). - Listener
Port int - The port on which the listener forwards requests. Valid values:
1to65535. - Load
Balancer stringId - The ID of the load balancer instance.
- Request
Timeout int - The request timeout period in seconds. A 504 error is returned if the backend server does not respond within this period. Valid values:
1to180. Default:60. - Scheduler string
- The scheduling algorithm. Valid values:
wrr(Weighted Round Robin, default),wlc(Weighted Least Connections),rr(Round Robin),sch(Source IP Hash),qch(QUIC Connection ID Hash),iqch(iQUIC CID Hash). - Status string
- The status of the listener. Set it to
runningto start the listener orstoppedto stop it. If not specified, the listener is created in thestoppedstate. - Unhealthy
Threshold int - The number of consecutive failed health checks required before the backend server is considered unhealthy. Valid values:
2to10. Default:3. - XForwarded
For string - Specifies whether to use the X-Forwarded-For header to retrieve the real IP address of the client. Valid values:
on,off(default).
- backend_
server_ numberport - The port used by the backend server. Valid values:
1to65535. - description string
- The name of the listener. The name must be 1 to 80 characters in length and cannot start with
http://orhttps://. - forward_
port number - The port to which HTTP requests are forwarded for HTTPS.
- health_
check string - Specifies whether to enable health checks. Valid values:
on,off(default). - health_
check_ numberconnect_ port - The port used for health checks. Valid values:
1to65535. - health_
check_ stringdomain - The domain name used for health checks.
- health_
check_ stringhttp_ code - The HTTP status code that indicates a successful health check. Valid values:
http2xx(default),http3xx,http4xx,http5xx. - health_
check_ numberinterval - The interval between two consecutive health checks in seconds. Valid values:
1to50. Default:2. - health_
check_ stringmethod - The HTTP method used for health checks. Valid values:
head(default),get. - health_
check_ numbertimeout - The timeout period of a health check response in seconds. Valid values:
1to300. Default:5. - health_
check_ stringuri - The URI used for health checks. Must start with
/and be 1 to 80 characters in length. - healthy_
threshold number - The number of consecutive successful health checks required before the backend server is considered healthy. Valid values:
2to10. Default:3. - idle_
timeout number - The timeout period of an idle connection in seconds. Valid values:
1to60. Default:15. - listener_
forward string - Specifies whether to enable HTTP-to-HTTPS forwarding. Valid values:
on,off(default). - listener_
port number - The port on which the listener forwards requests. Valid values:
1to65535. - load_
balancer_ stringid - The ID of the load balancer instance.
- request_
timeout number - The request timeout period in seconds. A 504 error is returned if the backend server does not respond within this period. Valid values:
1to180. Default:60. - scheduler string
- The scheduling algorithm. Valid values:
wrr(Weighted Round Robin, default),wlc(Weighted Least Connections),rr(Round Robin),sch(Source IP Hash),qch(QUIC Connection ID Hash),iqch(iQUIC CID Hash). - status string
- The status of the listener. Set it to
runningto start the listener orstoppedto stop it. If not specified, the listener is created in thestoppedstate. - unhealthy_
threshold number - The number of consecutive failed health checks required before the backend server is considered unhealthy. Valid values:
2to10. Default:3. - x_
forwarded_ stringfor - Specifies whether to use the X-Forwarded-For header to retrieve the real IP address of the client. Valid values:
on,off(default).
- backend
Server IntegerPort - The port used by the backend server. Valid values:
1to65535. - description String
- The name of the listener. The name must be 1 to 80 characters in length and cannot start with
http://orhttps://. - forward
Port Integer - The port to which HTTP requests are forwarded for HTTPS.
- health
Check String - Specifies whether to enable health checks. Valid values:
on,off(default). - health
Check IntegerConnect Port - The port used for health checks. Valid values:
1to65535. - health
Check StringDomain - The domain name used for health checks.
- health
Check StringHttp Code - The HTTP status code that indicates a successful health check. Valid values:
http2xx(default),http3xx,http4xx,http5xx. - health
Check IntegerInterval - The interval between two consecutive health checks in seconds. Valid values:
1to50. Default:2. - health
Check StringMethod - The HTTP method used for health checks. Valid values:
head(default),get. - health
Check IntegerTimeout - The timeout period of a health check response in seconds. Valid values:
1to300. Default:5. - health
Check StringUri - The URI used for health checks. Must start with
/and be 1 to 80 characters in length. - healthy
Threshold Integer - The number of consecutive successful health checks required before the backend server is considered healthy. Valid values:
2to10. Default:3. - idle
Timeout Integer - The timeout period of an idle connection in seconds. Valid values:
1to60. Default:15. - listener
Forward String - Specifies whether to enable HTTP-to-HTTPS forwarding. Valid values:
on,off(default). - listener
Port Integer - The port on which the listener forwards requests. Valid values:
1to65535. - load
Balancer StringId - The ID of the load balancer instance.
- request
Timeout Integer - The request timeout period in seconds. A 504 error is returned if the backend server does not respond within this period. Valid values:
1to180. Default:60. - scheduler String
- The scheduling algorithm. Valid values:
wrr(Weighted Round Robin, default),wlc(Weighted Least Connections),rr(Round Robin),sch(Source IP Hash),qch(QUIC Connection ID Hash),iqch(iQUIC CID Hash). - status String
- The status of the listener. Set it to
runningto start the listener orstoppedto stop it. If not specified, the listener is created in thestoppedstate. - unhealthy
Threshold Integer - The number of consecutive failed health checks required before the backend server is considered unhealthy. Valid values:
2to10. Default:3. - x
Forwarded StringFor - Specifies whether to use the X-Forwarded-For header to retrieve the real IP address of the client. Valid values:
on,off(default).
- backend
Server numberPort - The port used by the backend server. Valid values:
1to65535. - description string
- The name of the listener. The name must be 1 to 80 characters in length and cannot start with
http://orhttps://. - forward
Port number - The port to which HTTP requests are forwarded for HTTPS.
- health
Check string - Specifies whether to enable health checks. Valid values:
on,off(default). - health
Check numberConnect Port - The port used for health checks. Valid values:
1to65535. - health
Check stringDomain - The domain name used for health checks.
- health
Check stringHttp Code - The HTTP status code that indicates a successful health check. Valid values:
http2xx(default),http3xx,http4xx,http5xx. - health
Check numberInterval - The interval between two consecutive health checks in seconds. Valid values:
1to50. Default:2. - health
Check stringMethod - The HTTP method used for health checks. Valid values:
head(default),get. - health
Check numberTimeout - The timeout period of a health check response in seconds. Valid values:
1to300. Default:5. - health
Check stringUri - The URI used for health checks. Must start with
/and be 1 to 80 characters in length. - healthy
Threshold number - The number of consecutive successful health checks required before the backend server is considered healthy. Valid values:
2to10. Default:3. - idle
Timeout number - The timeout period of an idle connection in seconds. Valid values:
1to60. Default:15. - listener
Forward string - Specifies whether to enable HTTP-to-HTTPS forwarding. Valid values:
on,off(default). - listener
Port number - The port on which the listener forwards requests. Valid values:
1to65535. - load
Balancer stringId - The ID of the load balancer instance.
- request
Timeout number - The request timeout period in seconds. A 504 error is returned if the backend server does not respond within this period. Valid values:
1to180. Default:60. - scheduler string
- The scheduling algorithm. Valid values:
wrr(Weighted Round Robin, default),wlc(Weighted Least Connections),rr(Round Robin),sch(Source IP Hash),qch(QUIC Connection ID Hash),iqch(iQUIC CID Hash). - status string
- The status of the listener. Set it to
runningto start the listener orstoppedto stop it. If not specified, the listener is created in thestoppedstate. - unhealthy
Threshold number - The number of consecutive failed health checks required before the backend server is considered unhealthy. Valid values:
2to10. Default:3. - x
Forwarded stringFor - Specifies whether to use the X-Forwarded-For header to retrieve the real IP address of the client. Valid values:
on,off(default).
- backend_
server_ intport - The port used by the backend server. Valid values:
1to65535. - description str
- The name of the listener. The name must be 1 to 80 characters in length and cannot start with
http://orhttps://. - forward_
port int - The port to which HTTP requests are forwarded for HTTPS.
- health_
check str - Specifies whether to enable health checks. Valid values:
on,off(default). - health_
check_ intconnect_ port - The port used for health checks. Valid values:
1to65535. - health_
check_ strdomain - The domain name used for health checks.
- health_
check_ strhttp_ code - The HTTP status code that indicates a successful health check. Valid values:
http2xx(default),http3xx,http4xx,http5xx. - health_
check_ intinterval - The interval between two consecutive health checks in seconds. Valid values:
1to50. Default:2. - health_
check_ strmethod - The HTTP method used for health checks. Valid values:
head(default),get. - health_
check_ inttimeout - The timeout period of a health check response in seconds. Valid values:
1to300. Default:5. - health_
check_ struri - The URI used for health checks. Must start with
/and be 1 to 80 characters in length. - healthy_
threshold int - The number of consecutive successful health checks required before the backend server is considered healthy. Valid values:
2to10. Default:3. - idle_
timeout int - The timeout period of an idle connection in seconds. Valid values:
1to60. Default:15. - listener_
forward str - Specifies whether to enable HTTP-to-HTTPS forwarding. Valid values:
on,off(default). - listener_
port int - The port on which the listener forwards requests. Valid values:
1to65535. - load_
balancer_ strid - The ID of the load balancer instance.
- request_
timeout int - The request timeout period in seconds. A 504 error is returned if the backend server does not respond within this period. Valid values:
1to180. Default:60. - scheduler str
- The scheduling algorithm. Valid values:
wrr(Weighted Round Robin, default),wlc(Weighted Least Connections),rr(Round Robin),sch(Source IP Hash),qch(QUIC Connection ID Hash),iqch(iQUIC CID Hash). - status str
- The status of the listener. Set it to
runningto start the listener orstoppedto stop it. If not specified, the listener is created in thestoppedstate. - unhealthy_
threshold int - The number of consecutive failed health checks required before the backend server is considered unhealthy. Valid values:
2to10. Default:3. - x_
forwarded_ strfor - Specifies whether to use the X-Forwarded-For header to retrieve the real IP address of the client. Valid values:
on,off(default).
- backend
Server NumberPort - The port used by the backend server. Valid values:
1to65535. - description String
- The name of the listener. The name must be 1 to 80 characters in length and cannot start with
http://orhttps://. - forward
Port Number - The port to which HTTP requests are forwarded for HTTPS.
- health
Check String - Specifies whether to enable health checks. Valid values:
on,off(default). - health
Check NumberConnect Port - The port used for health checks. Valid values:
1to65535. - health
Check StringDomain - The domain name used for health checks.
- health
Check StringHttp Code - The HTTP status code that indicates a successful health check. Valid values:
http2xx(default),http3xx,http4xx,http5xx. - health
Check NumberInterval - The interval between two consecutive health checks in seconds. Valid values:
1to50. Default:2. - health
Check StringMethod - The HTTP method used for health checks. Valid values:
head(default),get. - health
Check NumberTimeout - The timeout period of a health check response in seconds. Valid values:
1to300. Default:5. - health
Check StringUri - The URI used for health checks. Must start with
/and be 1 to 80 characters in length. - healthy
Threshold Number - The number of consecutive successful health checks required before the backend server is considered healthy. Valid values:
2to10. Default:3. - idle
Timeout Number - The timeout period of an idle connection in seconds. Valid values:
1to60. Default:15. - listener
Forward String - Specifies whether to enable HTTP-to-HTTPS forwarding. Valid values:
on,off(default). - listener
Port Number - The port on which the listener forwards requests. Valid values:
1to65535. - load
Balancer StringId - The ID of the load balancer instance.
- request
Timeout Number - The request timeout period in seconds. A 504 error is returned if the backend server does not respond within this period. Valid values:
1to180. Default:60. - scheduler String
- The scheduling algorithm. Valid values:
wrr(Weighted Round Robin, default),wlc(Weighted Least Connections),rr(Round Robin),sch(Source IP Hash),qch(QUIC Connection ID Hash),iqch(iQUIC CID Hash). - status String
- The status of the listener. Set it to
runningto start the listener orstoppedto stop it. If not specified, the listener is created in thestoppedstate. - unhealthy
Threshold Number - The number of consecutive failed health checks required before the backend server is considered unhealthy. Valid values:
2to10. Default:3. - x
Forwarded StringFor - Specifies whether to use the X-Forwarded-For header to retrieve the real IP address of the client. Valid values:
on,off(default).
Import
ENS Load Balancer HTTP Listener can be imported using the id, e.g.
$ pulumi import alicloud:ens/loadBalancerHttpListener:LoadBalancerHttpListener example <load_balancer_id>:<listener_port>
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
alicloudTerraform Provider.
published on Thursday, Sep 17, 2026 by Pulumi