Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi
alicloud.slb.getListeners
Explore with Pulumi AI
This data source provides the listeners related to a server load balancer of the current Alibaba Cloud user.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = new alicloud.slb.ApplicationLoadBalancer("default", {loadBalancerName: "tf-testAccSlbListenertcp"});
const tcp = new alicloud.slb.Listener("tcp", {
    loadBalancerId: _default.id,
    backendPort: 22,
    frontendPort: 22,
    protocol: "tcp",
    bandwidth: 10,
    healthCheckType: "tcp",
    persistenceTimeout: 3600,
    healthyThreshold: 8,
    unhealthyThreshold: 8,
    healthCheckTimeout: 8,
    healthCheckInterval: 5,
    healthCheckHttpCode: "http_2xx",
    healthCheckConnectPort: 20,
    healthCheckUri: "/console",
    establishedTimeout: 600,
});
const sampleDs = alicloud.slb.getListenersOutput({
    loadBalancerId: _default.id,
});
export const firstSlbListenerProtocol = sampleDs.apply(sampleDs => sampleDs.slbListeners?.[0]?.protocol);
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.slb.ApplicationLoadBalancer("default", load_balancer_name="tf-testAccSlbListenertcp")
tcp = alicloud.slb.Listener("tcp",
    load_balancer_id=default.id,
    backend_port=22,
    frontend_port=22,
    protocol="tcp",
    bandwidth=10,
    health_check_type="tcp",
    persistence_timeout=3600,
    healthy_threshold=8,
    unhealthy_threshold=8,
    health_check_timeout=8,
    health_check_interval=5,
    health_check_http_code="http_2xx",
    health_check_connect_port=20,
    health_check_uri="/console",
    established_timeout=600)
sample_ds = alicloud.slb.get_listeners_output(load_balancer_id=default.id)
pulumi.export("firstSlbListenerProtocol", sample_ds.slb_listeners[0].protocol)
package main
import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := slb.NewApplicationLoadBalancer(ctx, "default", &slb.ApplicationLoadBalancerArgs{
			LoadBalancerName: pulumi.String("tf-testAccSlbListenertcp"),
		})
		if err != nil {
			return err
		}
		_, err = slb.NewListener(ctx, "tcp", &slb.ListenerArgs{
			LoadBalancerId:         _default.ID(),
			BackendPort:            pulumi.Int(22),
			FrontendPort:           pulumi.Int(22),
			Protocol:               pulumi.String("tcp"),
			Bandwidth:              pulumi.Int(10),
			HealthCheckType:        pulumi.String("tcp"),
			PersistenceTimeout:     pulumi.Int(3600),
			HealthyThreshold:       pulumi.Int(8),
			UnhealthyThreshold:     pulumi.Int(8),
			HealthCheckTimeout:     pulumi.Int(8),
			HealthCheckInterval:    pulumi.Int(5),
			HealthCheckHttpCode:    pulumi.String("http_2xx"),
			HealthCheckConnectPort: pulumi.Int(20),
			HealthCheckUri:         pulumi.String("/console"),
			EstablishedTimeout:     pulumi.Int(600),
		})
		if err != nil {
			return err
		}
		sampleDs := slb.GetListenersOutput(ctx, slb.GetListenersOutputArgs{
			LoadBalancerId: _default.ID(),
		}, nil)
		ctx.Export("firstSlbListenerProtocol", sampleDs.ApplyT(func(sampleDs slb.GetListenersResult) (*string, error) {
			return &sampleDs.SlbListeners[0].Protocol, nil
		}).(pulumi.StringPtrOutput))
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() => 
{
    var @default = new AliCloud.Slb.ApplicationLoadBalancer("default", new()
    {
        LoadBalancerName = "tf-testAccSlbListenertcp",
    });
    var tcp = new AliCloud.Slb.Listener("tcp", new()
    {
        LoadBalancerId = @default.Id,
        BackendPort = 22,
        FrontendPort = 22,
        Protocol = "tcp",
        Bandwidth = 10,
        HealthCheckType = "tcp",
        PersistenceTimeout = 3600,
        HealthyThreshold = 8,
        UnhealthyThreshold = 8,
        HealthCheckTimeout = 8,
        HealthCheckInterval = 5,
        HealthCheckHttpCode = "http_2xx",
        HealthCheckConnectPort = 20,
        HealthCheckUri = "/console",
        EstablishedTimeout = 600,
    });
    var sampleDs = AliCloud.Slb.GetListeners.Invoke(new()
    {
        LoadBalancerId = @default.Id,
    });
    return new Dictionary<string, object?>
    {
        ["firstSlbListenerProtocol"] = sampleDs.Apply(getListenersResult => getListenersResult.SlbListeners[0]?.Protocol),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.slb.ApplicationLoadBalancer;
import com.pulumi.alicloud.slb.ApplicationLoadBalancerArgs;
import com.pulumi.alicloud.slb.Listener;
import com.pulumi.alicloud.slb.ListenerArgs;
import com.pulumi.alicloud.slb.SlbFunctions;
import com.pulumi.alicloud.slb.inputs.GetListenersArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var default_ = new ApplicationLoadBalancer("default", ApplicationLoadBalancerArgs.builder()
            .loadBalancerName("tf-testAccSlbListenertcp")
            .build());
        var tcp = new Listener("tcp", ListenerArgs.builder()
            .loadBalancerId(default_.id())
            .backendPort("22")
            .frontendPort("22")
            .protocol("tcp")
            .bandwidth("10")
            .healthCheckType("tcp")
            .persistenceTimeout(3600)
            .healthyThreshold(8)
            .unhealthyThreshold(8)
            .healthCheckTimeout(8)
            .healthCheckInterval(5)
            .healthCheckHttpCode("http_2xx")
            .healthCheckConnectPort(20)
            .healthCheckUri("/console")
            .establishedTimeout(600)
            .build());
        final var sampleDs = SlbFunctions.getListeners(GetListenersArgs.builder()
            .loadBalancerId(default_.id())
            .build());
        ctx.export("firstSlbListenerProtocol", sampleDs.applyValue(getListenersResult -> getListenersResult).applyValue(sampleDs -> sampleDs.applyValue(getListenersResult -> getListenersResult.slbListeners()[0].protocol())));
    }
}
resources:
  default:
    type: alicloud:slb:ApplicationLoadBalancer
    properties:
      loadBalancerName: tf-testAccSlbListenertcp
  tcp:
    type: alicloud:slb:Listener
    properties:
      loadBalancerId: ${default.id}
      backendPort: '22'
      frontendPort: '22'
      protocol: tcp
      bandwidth: '10'
      healthCheckType: tcp
      persistenceTimeout: 3600
      healthyThreshold: 8
      unhealthyThreshold: 8
      healthCheckTimeout: 8
      healthCheckInterval: 5
      healthCheckHttpCode: http_2xx
      healthCheckConnectPort: 20
      healthCheckUri: /console
      establishedTimeout: 600
variables:
  sampleDs:
    fn::invoke:
      function: alicloud:slb:getListeners
      arguments:
        loadBalancerId: ${default.id}
outputs:
  firstSlbListenerProtocol: ${sampleDs.slbListeners[0].protocol}
Using getListeners
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getListeners(args: GetListenersArgs, opts?: InvokeOptions): Promise<GetListenersResult>
function getListenersOutput(args: GetListenersOutputArgs, opts?: InvokeOptions): Output<GetListenersResult>def get_listeners(description_regex: Optional[str] = None,
                  frontend_port: Optional[int] = None,
                  load_balancer_id: Optional[str] = None,
                  output_file: Optional[str] = None,
                  protocol: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetListenersResult
def get_listeners_output(description_regex: Optional[pulumi.Input[str]] = None,
                  frontend_port: Optional[pulumi.Input[int]] = None,
                  load_balancer_id: Optional[pulumi.Input[str]] = None,
                  output_file: Optional[pulumi.Input[str]] = None,
                  protocol: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetListenersResult]func GetListeners(ctx *Context, args *GetListenersArgs, opts ...InvokeOption) (*GetListenersResult, error)
func GetListenersOutput(ctx *Context, args *GetListenersOutputArgs, opts ...InvokeOption) GetListenersResultOutput> Note: This function is named GetListeners in the Go SDK.
public static class GetListeners 
{
    public static Task<GetListenersResult> InvokeAsync(GetListenersArgs args, InvokeOptions? opts = null)
    public static Output<GetListenersResult> Invoke(GetListenersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetListenersResult> getListeners(GetListenersArgs args, InvokeOptions options)
public static Output<GetListenersResult> getListeners(GetListenersArgs args, InvokeOptions options)
fn::invoke:
  function: alicloud:slb/getListeners:getListeners
  arguments:
    # arguments dictionaryThe following arguments are supported:
- LoadBalancer stringId 
- ID of the SLB with listeners.
- DescriptionRegex string
- A regex string to filter results by SLB listener description.
- FrontendPort int
- Filter listeners by the specified frontend port.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- Protocol string
- Filter listeners by the specified protocol. Valid values: http,https,tcpandudp.
- LoadBalancer stringId 
- ID of the SLB with listeners.
- DescriptionRegex string
- A regex string to filter results by SLB listener description.
- FrontendPort int
- Filter listeners by the specified frontend port.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- Protocol string
- Filter listeners by the specified protocol. Valid values: http,https,tcpandudp.
- loadBalancer StringId 
- ID of the SLB with listeners.
- descriptionRegex String
- A regex string to filter results by SLB listener description.
- frontendPort Integer
- Filter listeners by the specified frontend port.
- outputFile String
- File name where to save data source results (after running pulumi preview).
- protocol String
- Filter listeners by the specified protocol. Valid values: http,https,tcpandudp.
- loadBalancer stringId 
- ID of the SLB with listeners.
- descriptionRegex string
- A regex string to filter results by SLB listener description.
- frontendPort number
- Filter listeners by the specified frontend port.
- outputFile string
- File name where to save data source results (after running pulumi preview).
- protocol string
- Filter listeners by the specified protocol. Valid values: http,https,tcpandudp.
- load_balancer_ strid 
- ID of the SLB with listeners.
- description_regex str
- A regex string to filter results by SLB listener description.
- frontend_port int
- Filter listeners by the specified frontend port.
- output_file str
- File name where to save data source results (after running pulumi preview).
- protocol str
- Filter listeners by the specified protocol. Valid values: http,https,tcpandudp.
- loadBalancer StringId 
- ID of the SLB with listeners.
- descriptionRegex String
- A regex string to filter results by SLB listener description.
- frontendPort Number
- Filter listeners by the specified frontend port.
- outputFile String
- File name where to save data source results (after running pulumi preview).
- protocol String
- Filter listeners by the specified protocol. Valid values: http,https,tcpandudp.
getListeners Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- LoadBalancer stringId 
- SlbListeners List<Pulumi.Ali Cloud. Slb. Outputs. Get Listeners Slb Listener> 
- A list of SLB listeners. Each element contains the following attributes:
- DescriptionRegex string
- FrontendPort int
- Frontend port used to receive incoming traffic and distribute it to the backend servers.
- OutputFile string
- Protocol string
- Listener protocol. Possible values: http,https,tcpandudp.
- Id string
- The provider-assigned unique ID for this managed resource.
- LoadBalancer stringId 
- SlbListeners []GetListeners Slb Listener 
- A list of SLB listeners. Each element contains the following attributes:
- DescriptionRegex string
- FrontendPort int
- Frontend port used to receive incoming traffic and distribute it to the backend servers.
- OutputFile string
- Protocol string
- Listener protocol. Possible values: http,https,tcpandudp.
- id String
- The provider-assigned unique ID for this managed resource.
- loadBalancer StringId 
- slbListeners List<GetListeners Slb Listener> 
- A list of SLB listeners. Each element contains the following attributes:
- descriptionRegex String
- frontendPort Integer
- Frontend port used to receive incoming traffic and distribute it to the backend servers.
- outputFile String
- protocol String
- Listener protocol. Possible values: http,https,tcpandudp.
- id string
- The provider-assigned unique ID for this managed resource.
- loadBalancer stringId 
- slbListeners GetListeners Slb Listener[] 
- A list of SLB listeners. Each element contains the following attributes:
- descriptionRegex string
- frontendPort number
- Frontend port used to receive incoming traffic and distribute it to the backend servers.
- outputFile string
- protocol string
- Listener protocol. Possible values: http,https,tcpandudp.
- id str
- The provider-assigned unique ID for this managed resource.
- load_balancer_ strid 
- slb_listeners Sequence[GetListeners Slb Listener] 
- A list of SLB listeners. Each element contains the following attributes:
- description_regex str
- frontend_port int
- Frontend port used to receive incoming traffic and distribute it to the backend servers.
- output_file str
- protocol str
- Listener protocol. Possible values: http,https,tcpandudp.
- id String
- The provider-assigned unique ID for this managed resource.
- loadBalancer StringId 
- slbListeners List<Property Map>
- A list of SLB listeners. Each element contains the following attributes:
- descriptionRegex String
- frontendPort Number
- Frontend port used to receive incoming traffic and distribute it to the backend servers.
- outputFile String
- protocol String
- Listener protocol. Possible values: http,https,tcpandudp.
Supporting Types
GetListenersSlbListener   
- BackendPort int
- Port opened on the backend server to receive requests.
- Bandwidth int
- Peak bandwidth. If the value is set to -1, the listener is not limited by bandwidth.
- CaCertificate stringId 
- ID of the CA certificate (only required when two-way authentication is used). Only available when the protocol is https.
- string
- Cookie configured by the backend server. Only available when the sticky_session_type is server.
- int
- Cookie timeout in seconds. Only available when the sticky_session_type is insert.
- Description string
- The description of slb listener.
- EnableHttp2 string
- Whether to enable https listener support http2 or not. Valid values are onandoff. Default toon.
- EstablishedTimeout int
- Connection timeout in seconds for the Layer 4 TCP listener. Only available when the protocol is tcp.
- FrontendPort int
- Filter listeners by the specified frontend port.
- Gzip string
- Indicate whether Gzip compression is enabled or not. Possible values are onandoff. Only available when the protocol ishttporhttps.
- HealthCheck string
- Indicate whether health check is enabled of not. Possible values are onandoff.
- HealthCheck intConnect Port 
- Port used for health check.
- HealthCheck intConnect Timeout 
- Amount of time in seconds to wait for the response for a health check.
- HealthCheck stringDomain 
- Domain name used for health check. The SLB sends HTTP head requests to the backend server, the domain is useful when the backend server verifies the host field in the requests. Only available when the protocol is http,httpsortcp(in this case health_check_type must behttp).
- HealthCheck stringHttp Code 
- HTTP status codes indicating that the health check is normal. It can contain several comma-separated values such as "http_2xx,http_3xx". Only available when the protocol is http,httpsortcp(in this case health_check_type must behttp).
- HealthCheck intInterval 
- Time interval between two consecutive health checks.
- HealthCheck intTimeout 
- Amount of time in seconds to wait for the response from a health check. If an ECS instance sends no response within the specified timeout period, the health check fails. Only available when the protocol is httporhttps.
- HealthCheck stringType 
- Health check method. Possible values are tcpandhttp. Only available when the protocol istcp.
- HealthCheck stringUri 
- URI used for health check. Only available when the protocol is http,httpsortcp(in this case health_check_type must behttp).
- HealthyThreshold int
- Number of consecutive successes of health check performed on the same ECS instance (from failure to success).
- IdleTimeout int
- Timeout of http or https listener established connection idle timeout. Valid value range: [1-60] in seconds. Default to 15.
- MasterSlave stringServer Group Id 
- ID of the active/standby server group.
- PersistenceTimeout int
- Timeout value of the TCP connection in seconds. If the value is 0, the session persistence function is disabled. Only available when the protocol is tcp.
- Protocol string
- Filter listeners by the specified protocol. Valid values: http,https,tcpandudp.
- ProxyProtocol boolV2Enabled 
- Whether to support carrying the client source address to the backend server through the Proxy Protocol. Valid values are trueandfalse. Default tofalse.
- RequestTimeout int
- Timeout of http or https listener request (which does not get response from backend) timeout. Valid value range: [1-180] in seconds. Default to 60.
- Scheduler string
- Algorithm used to distribute traffic. Possible values: wrr(weighted round robin),wlc(weighted least connection) andrr(round robin).
- SecurityStatus string
- Security status. Only available when the protocol is https.
- ServerCertificate stringId 
- ServerGroup stringId 
- ID of the linked VServer group.
- SslCertificate stringId 
- ID of the server certificate. Only available when the protocol is https.
- Status string
- Listener status.
- StickySession string
- Indicate whether session persistence is enabled or not. If enabled, all session requests from the same client are sent to the same backend server. Possible values are onandoff. Only available when the protocol ishttporhttps.
- StickySession stringType 
- Method used to handle the cookie. Possible values are insert(cookie added to the response) andserver(cookie set by the backend server). Only available when the protocol ishttporhttpsand sticky_session ison.
- TlsCipher stringPolicy 
- Https listener TLS cipher policy. Valid values are tls_cipher_policy_1_0,tls_cipher_policy_1_1,tls_cipher_policy_1_2,tls_cipher_policy_1_2_strict. Default totls_cipher_policy_1_0.
- UnhealthyThreshold int
- Number of consecutive failures of health check performed on the same ECS instance (from success to failure).
- XForwardedFor string
- Indicate whether the HTTP header field "X-Forwarded-For" is added or not; it allows the backend server to know about the user's IP address. Possible values are onandoff. Only available when the protocol ishttporhttps.
- XForwardedFor stringSlb Id 
- Indicate whether the HTTP header field "X-Forwarded-For_SLBID" is added or not; it allows the backend server to know about the SLB ID. Possible values are onandoff. Only available when the protocol ishttporhttps.
- XForwardedFor stringSlb Ip 
- Indicate whether the HTTP header field "X-Forwarded-For_SLBIP" is added or not; it allows the backend server to know about the SLB IP address. Possible values are onandoff. Only available when the protocol ishttporhttps.
- XForwardedFor stringSlb Proto 
- Indicate whether the HTTP header field "X-Forwarded-For_proto" is added or not; it allows the backend server to know about the user's protocol. Possible values are onandoff. Only available when the protocol ishttporhttps.
- BackendPort int
- Port opened on the backend server to receive requests.
- Bandwidth int
- Peak bandwidth. If the value is set to -1, the listener is not limited by bandwidth.
- CaCertificate stringId 
- ID of the CA certificate (only required when two-way authentication is used). Only available when the protocol is https.
- string
- Cookie configured by the backend server. Only available when the sticky_session_type is server.
- int
- Cookie timeout in seconds. Only available when the sticky_session_type is insert.
- Description string
- The description of slb listener.
- EnableHttp2 string
- Whether to enable https listener support http2 or not. Valid values are onandoff. Default toon.
- EstablishedTimeout int
- Connection timeout in seconds for the Layer 4 TCP listener. Only available when the protocol is tcp.
- FrontendPort int
- Filter listeners by the specified frontend port.
- Gzip string
- Indicate whether Gzip compression is enabled or not. Possible values are onandoff. Only available when the protocol ishttporhttps.
- HealthCheck string
- Indicate whether health check is enabled of not. Possible values are onandoff.
- HealthCheck intConnect Port 
- Port used for health check.
- HealthCheck intConnect Timeout 
- Amount of time in seconds to wait for the response for a health check.
- HealthCheck stringDomain 
- Domain name used for health check. The SLB sends HTTP head requests to the backend server, the domain is useful when the backend server verifies the host field in the requests. Only available when the protocol is http,httpsortcp(in this case health_check_type must behttp).
- HealthCheck stringHttp Code 
- HTTP status codes indicating that the health check is normal. It can contain several comma-separated values such as "http_2xx,http_3xx". Only available when the protocol is http,httpsortcp(in this case health_check_type must behttp).
- HealthCheck intInterval 
- Time interval between two consecutive health checks.
- HealthCheck intTimeout 
- Amount of time in seconds to wait for the response from a health check. If an ECS instance sends no response within the specified timeout period, the health check fails. Only available when the protocol is httporhttps.
- HealthCheck stringType 
- Health check method. Possible values are tcpandhttp. Only available when the protocol istcp.
- HealthCheck stringUri 
- URI used for health check. Only available when the protocol is http,httpsortcp(in this case health_check_type must behttp).
- HealthyThreshold int
- Number of consecutive successes of health check performed on the same ECS instance (from failure to success).
- IdleTimeout int
- Timeout of http or https listener established connection idle timeout. Valid value range: [1-60] in seconds. Default to 15.
- MasterSlave stringServer Group Id 
- ID of the active/standby server group.
- PersistenceTimeout int
- Timeout value of the TCP connection in seconds. If the value is 0, the session persistence function is disabled. Only available when the protocol is tcp.
- Protocol string
- Filter listeners by the specified protocol. Valid values: http,https,tcpandudp.
- ProxyProtocol boolV2Enabled 
- Whether to support carrying the client source address to the backend server through the Proxy Protocol. Valid values are trueandfalse. Default tofalse.
- RequestTimeout int
- Timeout of http or https listener request (which does not get response from backend) timeout. Valid value range: [1-180] in seconds. Default to 60.
- Scheduler string
- Algorithm used to distribute traffic. Possible values: wrr(weighted round robin),wlc(weighted least connection) andrr(round robin).
- SecurityStatus string
- Security status. Only available when the protocol is https.
- ServerCertificate stringId 
- ServerGroup stringId 
- ID of the linked VServer group.
- SslCertificate stringId 
- ID of the server certificate. Only available when the protocol is https.
- Status string
- Listener status.
- StickySession string
- Indicate whether session persistence is enabled or not. If enabled, all session requests from the same client are sent to the same backend server. Possible values are onandoff. Only available when the protocol ishttporhttps.
- StickySession stringType 
- Method used to handle the cookie. Possible values are insert(cookie added to the response) andserver(cookie set by the backend server). Only available when the protocol ishttporhttpsand sticky_session ison.
- TlsCipher stringPolicy 
- Https listener TLS cipher policy. Valid values are tls_cipher_policy_1_0,tls_cipher_policy_1_1,tls_cipher_policy_1_2,tls_cipher_policy_1_2_strict. Default totls_cipher_policy_1_0.
- UnhealthyThreshold int
- Number of consecutive failures of health check performed on the same ECS instance (from success to failure).
- XForwardedFor string
- Indicate whether the HTTP header field "X-Forwarded-For" is added or not; it allows the backend server to know about the user's IP address. Possible values are onandoff. Only available when the protocol ishttporhttps.
- XForwardedFor stringSlb Id 
- Indicate whether the HTTP header field "X-Forwarded-For_SLBID" is added or not; it allows the backend server to know about the SLB ID. Possible values are onandoff. Only available when the protocol ishttporhttps.
- XForwardedFor stringSlb Ip 
- Indicate whether the HTTP header field "X-Forwarded-For_SLBIP" is added or not; it allows the backend server to know about the SLB IP address. Possible values are onandoff. Only available when the protocol ishttporhttps.
- XForwardedFor stringSlb Proto 
- Indicate whether the HTTP header field "X-Forwarded-For_proto" is added or not; it allows the backend server to know about the user's protocol. Possible values are onandoff. Only available when the protocol ishttporhttps.
- backendPort Integer
- Port opened on the backend server to receive requests.
- bandwidth Integer
- Peak bandwidth. If the value is set to -1, the listener is not limited by bandwidth.
- caCertificate StringId 
- ID of the CA certificate (only required when two-way authentication is used). Only available when the protocol is https.
- String
- Cookie configured by the backend server. Only available when the sticky_session_type is server.
- Integer
- Cookie timeout in seconds. Only available when the sticky_session_type is insert.
- description String
- The description of slb listener.
- enableHttp2 String
- Whether to enable https listener support http2 or not. Valid values are onandoff. Default toon.
- establishedTimeout Integer
- Connection timeout in seconds for the Layer 4 TCP listener. Only available when the protocol is tcp.
- frontendPort Integer
- Filter listeners by the specified frontend port.
- gzip String
- Indicate whether Gzip compression is enabled or not. Possible values are onandoff. Only available when the protocol ishttporhttps.
- healthCheck String
- Indicate whether health check is enabled of not. Possible values are onandoff.
- healthCheck IntegerConnect Port 
- Port used for health check.
- healthCheck IntegerConnect Timeout 
- Amount of time in seconds to wait for the response for a health check.
- healthCheck StringDomain 
- Domain name used for health check. The SLB sends HTTP head requests to the backend server, the domain is useful when the backend server verifies the host field in the requests. Only available when the protocol is http,httpsortcp(in this case health_check_type must behttp).
- healthCheck StringHttp Code 
- HTTP status codes indicating that the health check is normal. It can contain several comma-separated values such as "http_2xx,http_3xx". Only available when the protocol is http,httpsortcp(in this case health_check_type must behttp).
- healthCheck IntegerInterval 
- Time interval between two consecutive health checks.
- healthCheck IntegerTimeout 
- Amount of time in seconds to wait for the response from a health check. If an ECS instance sends no response within the specified timeout period, the health check fails. Only available when the protocol is httporhttps.
- healthCheck StringType 
- Health check method. Possible values are tcpandhttp. Only available when the protocol istcp.
- healthCheck StringUri 
- URI used for health check. Only available when the protocol is http,httpsortcp(in this case health_check_type must behttp).
- healthyThreshold Integer
- Number of consecutive successes of health check performed on the same ECS instance (from failure to success).
- idleTimeout Integer
- Timeout of http or https listener established connection idle timeout. Valid value range: [1-60] in seconds. Default to 15.
- masterSlave StringServer Group Id 
- ID of the active/standby server group.
- persistenceTimeout Integer
- Timeout value of the TCP connection in seconds. If the value is 0, the session persistence function is disabled. Only available when the protocol is tcp.
- protocol String
- Filter listeners by the specified protocol. Valid values: http,https,tcpandudp.
- proxyProtocol BooleanV2Enabled 
- Whether to support carrying the client source address to the backend server through the Proxy Protocol. Valid values are trueandfalse. Default tofalse.
- requestTimeout Integer
- Timeout of http or https listener request (which does not get response from backend) timeout. Valid value range: [1-180] in seconds. Default to 60.
- scheduler String
- Algorithm used to distribute traffic. Possible values: wrr(weighted round robin),wlc(weighted least connection) andrr(round robin).
- securityStatus String
- Security status. Only available when the protocol is https.
- serverCertificate StringId 
- serverGroup StringId 
- ID of the linked VServer group.
- sslCertificate StringId 
- ID of the server certificate. Only available when the protocol is https.
- status String
- Listener status.
- stickySession String
- Indicate whether session persistence is enabled or not. If enabled, all session requests from the same client are sent to the same backend server. Possible values are onandoff. Only available when the protocol ishttporhttps.
- stickySession StringType 
- Method used to handle the cookie. Possible values are insert(cookie added to the response) andserver(cookie set by the backend server). Only available when the protocol ishttporhttpsand sticky_session ison.
- tlsCipher StringPolicy 
- Https listener TLS cipher policy. Valid values are tls_cipher_policy_1_0,tls_cipher_policy_1_1,tls_cipher_policy_1_2,tls_cipher_policy_1_2_strict. Default totls_cipher_policy_1_0.
- unhealthyThreshold Integer
- Number of consecutive failures of health check performed on the same ECS instance (from success to failure).
- xForwarded StringFor 
- Indicate whether the HTTP header field "X-Forwarded-For" is added or not; it allows the backend server to know about the user's IP address. Possible values are onandoff. Only available when the protocol ishttporhttps.
- xForwarded StringFor Slb Id 
- Indicate whether the HTTP header field "X-Forwarded-For_SLBID" is added or not; it allows the backend server to know about the SLB ID. Possible values are onandoff. Only available when the protocol ishttporhttps.
- xForwarded StringFor Slb Ip 
- Indicate whether the HTTP header field "X-Forwarded-For_SLBIP" is added or not; it allows the backend server to know about the SLB IP address. Possible values are onandoff. Only available when the protocol ishttporhttps.
- xForwarded StringFor Slb Proto 
- Indicate whether the HTTP header field "X-Forwarded-For_proto" is added or not; it allows the backend server to know about the user's protocol. Possible values are onandoff. Only available when the protocol ishttporhttps.
- backendPort number
- Port opened on the backend server to receive requests.
- bandwidth number
- Peak bandwidth. If the value is set to -1, the listener is not limited by bandwidth.
- caCertificate stringId 
- ID of the CA certificate (only required when two-way authentication is used). Only available when the protocol is https.
- string
- Cookie configured by the backend server. Only available when the sticky_session_type is server.
- number
- Cookie timeout in seconds. Only available when the sticky_session_type is insert.
- description string
- The description of slb listener.
- enableHttp2 string
- Whether to enable https listener support http2 or not. Valid values are onandoff. Default toon.
- establishedTimeout number
- Connection timeout in seconds for the Layer 4 TCP listener. Only available when the protocol is tcp.
- frontendPort number
- Filter listeners by the specified frontend port.
- gzip string
- Indicate whether Gzip compression is enabled or not. Possible values are onandoff. Only available when the protocol ishttporhttps.
- healthCheck string
- Indicate whether health check is enabled of not. Possible values are onandoff.
- healthCheck numberConnect Port 
- Port used for health check.
- healthCheck numberConnect Timeout 
- Amount of time in seconds to wait for the response for a health check.
- healthCheck stringDomain 
- Domain name used for health check. The SLB sends HTTP head requests to the backend server, the domain is useful when the backend server verifies the host field in the requests. Only available when the protocol is http,httpsortcp(in this case health_check_type must behttp).
- healthCheck stringHttp Code 
- HTTP status codes indicating that the health check is normal. It can contain several comma-separated values such as "http_2xx,http_3xx". Only available when the protocol is http,httpsortcp(in this case health_check_type must behttp).
- healthCheck numberInterval 
- Time interval between two consecutive health checks.
- healthCheck numberTimeout 
- Amount of time in seconds to wait for the response from a health check. If an ECS instance sends no response within the specified timeout period, the health check fails. Only available when the protocol is httporhttps.
- healthCheck stringType 
- Health check method. Possible values are tcpandhttp. Only available when the protocol istcp.
- healthCheck stringUri 
- URI used for health check. Only available when the protocol is http,httpsortcp(in this case health_check_type must behttp).
- healthyThreshold number
- Number of consecutive successes of health check performed on the same ECS instance (from failure to success).
- idleTimeout number
- Timeout of http or https listener established connection idle timeout. Valid value range: [1-60] in seconds. Default to 15.
- masterSlave stringServer Group Id 
- ID of the active/standby server group.
- persistenceTimeout number
- Timeout value of the TCP connection in seconds. If the value is 0, the session persistence function is disabled. Only available when the protocol is tcp.
- protocol string
- Filter listeners by the specified protocol. Valid values: http,https,tcpandudp.
- proxyProtocol booleanV2Enabled 
- Whether to support carrying the client source address to the backend server through the Proxy Protocol. Valid values are trueandfalse. Default tofalse.
- requestTimeout number
- Timeout of http or https listener request (which does not get response from backend) timeout. Valid value range: [1-180] in seconds. Default to 60.
- scheduler string
- Algorithm used to distribute traffic. Possible values: wrr(weighted round robin),wlc(weighted least connection) andrr(round robin).
- securityStatus string
- Security status. Only available when the protocol is https.
- serverCertificate stringId 
- serverGroup stringId 
- ID of the linked VServer group.
- sslCertificate stringId 
- ID of the server certificate. Only available when the protocol is https.
- status string
- Listener status.
- stickySession string
- Indicate whether session persistence is enabled or not. If enabled, all session requests from the same client are sent to the same backend server. Possible values are onandoff. Only available when the protocol ishttporhttps.
- stickySession stringType 
- Method used to handle the cookie. Possible values are insert(cookie added to the response) andserver(cookie set by the backend server). Only available when the protocol ishttporhttpsand sticky_session ison.
- tlsCipher stringPolicy 
- Https listener TLS cipher policy. Valid values are tls_cipher_policy_1_0,tls_cipher_policy_1_1,tls_cipher_policy_1_2,tls_cipher_policy_1_2_strict. Default totls_cipher_policy_1_0.
- unhealthyThreshold number
- Number of consecutive failures of health check performed on the same ECS instance (from success to failure).
- xForwarded stringFor 
- Indicate whether the HTTP header field "X-Forwarded-For" is added or not; it allows the backend server to know about the user's IP address. Possible values are onandoff. Only available when the protocol ishttporhttps.
- xForwarded stringFor Slb Id 
- Indicate whether the HTTP header field "X-Forwarded-For_SLBID" is added or not; it allows the backend server to know about the SLB ID. Possible values are onandoff. Only available when the protocol ishttporhttps.
- xForwarded stringFor Slb Ip 
- Indicate whether the HTTP header field "X-Forwarded-For_SLBIP" is added or not; it allows the backend server to know about the SLB IP address. Possible values are onandoff. Only available when the protocol ishttporhttps.
- xForwarded stringFor Slb Proto 
- Indicate whether the HTTP header field "X-Forwarded-For_proto" is added or not; it allows the backend server to know about the user's protocol. Possible values are onandoff. Only available when the protocol ishttporhttps.
- backend_port int
- Port opened on the backend server to receive requests.
- bandwidth int
- Peak bandwidth. If the value is set to -1, the listener is not limited by bandwidth.
- ca_certificate_ strid 
- ID of the CA certificate (only required when two-way authentication is used). Only available when the protocol is https.
- str
- Cookie configured by the backend server. Only available when the sticky_session_type is server.
- int
- Cookie timeout in seconds. Only available when the sticky_session_type is insert.
- description str
- The description of slb listener.
- enable_http2 str
- Whether to enable https listener support http2 or not. Valid values are onandoff. Default toon.
- established_timeout int
- Connection timeout in seconds for the Layer 4 TCP listener. Only available when the protocol is tcp.
- frontend_port int
- Filter listeners by the specified frontend port.
- gzip str
- Indicate whether Gzip compression is enabled or not. Possible values are onandoff. Only available when the protocol ishttporhttps.
- health_check str
- Indicate whether health check is enabled of not. Possible values are onandoff.
- health_check_ intconnect_ port 
- Port used for health check.
- health_check_ intconnect_ timeout 
- Amount of time in seconds to wait for the response for a health check.
- health_check_ strdomain 
- Domain name used for health check. The SLB sends HTTP head requests to the backend server, the domain is useful when the backend server verifies the host field in the requests. Only available when the protocol is http,httpsortcp(in this case health_check_type must behttp).
- health_check_ strhttp_ code 
- HTTP status codes indicating that the health check is normal. It can contain several comma-separated values such as "http_2xx,http_3xx". Only available when the protocol is http,httpsortcp(in this case health_check_type must behttp).
- health_check_ intinterval 
- Time interval between two consecutive health checks.
- health_check_ inttimeout 
- Amount of time in seconds to wait for the response from a health check. If an ECS instance sends no response within the specified timeout period, the health check fails. Only available when the protocol is httporhttps.
- health_check_ strtype 
- Health check method. Possible values are tcpandhttp. Only available when the protocol istcp.
- health_check_ struri 
- URI used for health check. Only available when the protocol is http,httpsortcp(in this case health_check_type must behttp).
- healthy_threshold int
- Number of consecutive successes of health check performed on the same ECS instance (from failure to success).
- idle_timeout int
- Timeout of http or https listener established connection idle timeout. Valid value range: [1-60] in seconds. Default to 15.
- master_slave_ strserver_ group_ id 
- ID of the active/standby server group.
- persistence_timeout int
- Timeout value of the TCP connection in seconds. If the value is 0, the session persistence function is disabled. Only available when the protocol is tcp.
- protocol str
- Filter listeners by the specified protocol. Valid values: http,https,tcpandudp.
- proxy_protocol_ boolv2_ enabled 
- Whether to support carrying the client source address to the backend server through the Proxy Protocol. Valid values are trueandfalse. Default tofalse.
- request_timeout int
- Timeout of http or https listener request (which does not get response from backend) timeout. Valid value range: [1-180] in seconds. Default to 60.
- scheduler str
- Algorithm used to distribute traffic. Possible values: wrr(weighted round robin),wlc(weighted least connection) andrr(round robin).
- security_status str
- Security status. Only available when the protocol is https.
- server_certificate_ strid 
- server_group_ strid 
- ID of the linked VServer group.
- ssl_certificate_ strid 
- ID of the server certificate. Only available when the protocol is https.
- status str
- Listener status.
- sticky_session str
- Indicate whether session persistence is enabled or not. If enabled, all session requests from the same client are sent to the same backend server. Possible values are onandoff. Only available when the protocol ishttporhttps.
- sticky_session_ strtype 
- Method used to handle the cookie. Possible values are insert(cookie added to the response) andserver(cookie set by the backend server). Only available when the protocol ishttporhttpsand sticky_session ison.
- tls_cipher_ strpolicy 
- Https listener TLS cipher policy. Valid values are tls_cipher_policy_1_0,tls_cipher_policy_1_1,tls_cipher_policy_1_2,tls_cipher_policy_1_2_strict. Default totls_cipher_policy_1_0.
- unhealthy_threshold int
- Number of consecutive failures of health check performed on the same ECS instance (from success to failure).
- x_forwarded_ strfor 
- Indicate whether the HTTP header field "X-Forwarded-For" is added or not; it allows the backend server to know about the user's IP address. Possible values are onandoff. Only available when the protocol ishttporhttps.
- x_forwarded_ strfor_ slb_ id 
- Indicate whether the HTTP header field "X-Forwarded-For_SLBID" is added or not; it allows the backend server to know about the SLB ID. Possible values are onandoff. Only available when the protocol ishttporhttps.
- x_forwarded_ strfor_ slb_ ip 
- Indicate whether the HTTP header field "X-Forwarded-For_SLBIP" is added or not; it allows the backend server to know about the SLB IP address. Possible values are onandoff. Only available when the protocol ishttporhttps.
- x_forwarded_ strfor_ slb_ proto 
- Indicate whether the HTTP header field "X-Forwarded-For_proto" is added or not; it allows the backend server to know about the user's protocol. Possible values are onandoff. Only available when the protocol ishttporhttps.
- backendPort Number
- Port opened on the backend server to receive requests.
- bandwidth Number
- Peak bandwidth. If the value is set to -1, the listener is not limited by bandwidth.
- caCertificate StringId 
- ID of the CA certificate (only required when two-way authentication is used). Only available when the protocol is https.
- String
- Cookie configured by the backend server. Only available when the sticky_session_type is server.
- Number
- Cookie timeout in seconds. Only available when the sticky_session_type is insert.
- description String
- The description of slb listener.
- enableHttp2 String
- Whether to enable https listener support http2 or not. Valid values are onandoff. Default toon.
- establishedTimeout Number
- Connection timeout in seconds for the Layer 4 TCP listener. Only available when the protocol is tcp.
- frontendPort Number
- Filter listeners by the specified frontend port.
- gzip String
- Indicate whether Gzip compression is enabled or not. Possible values are onandoff. Only available when the protocol ishttporhttps.
- healthCheck String
- Indicate whether health check is enabled of not. Possible values are onandoff.
- healthCheck NumberConnect Port 
- Port used for health check.
- healthCheck NumberConnect Timeout 
- Amount of time in seconds to wait for the response for a health check.
- healthCheck StringDomain 
- Domain name used for health check. The SLB sends HTTP head requests to the backend server, the domain is useful when the backend server verifies the host field in the requests. Only available when the protocol is http,httpsortcp(in this case health_check_type must behttp).
- healthCheck StringHttp Code 
- HTTP status codes indicating that the health check is normal. It can contain several comma-separated values such as "http_2xx,http_3xx". Only available when the protocol is http,httpsortcp(in this case health_check_type must behttp).
- healthCheck NumberInterval 
- Time interval between two consecutive health checks.
- healthCheck NumberTimeout 
- Amount of time in seconds to wait for the response from a health check. If an ECS instance sends no response within the specified timeout period, the health check fails. Only available when the protocol is httporhttps.
- healthCheck StringType 
- Health check method. Possible values are tcpandhttp. Only available when the protocol istcp.
- healthCheck StringUri 
- URI used for health check. Only available when the protocol is http,httpsortcp(in this case health_check_type must behttp).
- healthyThreshold Number
- Number of consecutive successes of health check performed on the same ECS instance (from failure to success).
- idleTimeout Number
- Timeout of http or https listener established connection idle timeout. Valid value range: [1-60] in seconds. Default to 15.
- masterSlave StringServer Group Id 
- ID of the active/standby server group.
- persistenceTimeout Number
- Timeout value of the TCP connection in seconds. If the value is 0, the session persistence function is disabled. Only available when the protocol is tcp.
- protocol String
- Filter listeners by the specified protocol. Valid values: http,https,tcpandudp.
- proxyProtocol BooleanV2Enabled 
- Whether to support carrying the client source address to the backend server through the Proxy Protocol. Valid values are trueandfalse. Default tofalse.
- requestTimeout Number
- Timeout of http or https listener request (which does not get response from backend) timeout. Valid value range: [1-180] in seconds. Default to 60.
- scheduler String
- Algorithm used to distribute traffic. Possible values: wrr(weighted round robin),wlc(weighted least connection) andrr(round robin).
- securityStatus String
- Security status. Only available when the protocol is https.
- serverCertificate StringId 
- serverGroup StringId 
- ID of the linked VServer group.
- sslCertificate StringId 
- ID of the server certificate. Only available when the protocol is https.
- status String
- Listener status.
- stickySession String
- Indicate whether session persistence is enabled or not. If enabled, all session requests from the same client are sent to the same backend server. Possible values are onandoff. Only available when the protocol ishttporhttps.
- stickySession StringType 
- Method used to handle the cookie. Possible values are insert(cookie added to the response) andserver(cookie set by the backend server). Only available when the protocol ishttporhttpsand sticky_session ison.
- tlsCipher StringPolicy 
- Https listener TLS cipher policy. Valid values are tls_cipher_policy_1_0,tls_cipher_policy_1_1,tls_cipher_policy_1_2,tls_cipher_policy_1_2_strict. Default totls_cipher_policy_1_0.
- unhealthyThreshold Number
- Number of consecutive failures of health check performed on the same ECS instance (from success to failure).
- xForwarded StringFor 
- Indicate whether the HTTP header field "X-Forwarded-For" is added or not; it allows the backend server to know about the user's IP address. Possible values are onandoff. Only available when the protocol ishttporhttps.
- xForwarded StringFor Slb Id 
- Indicate whether the HTTP header field "X-Forwarded-For_SLBID" is added or not; it allows the backend server to know about the SLB ID. Possible values are onandoff. Only available when the protocol ishttporhttps.
- xForwarded StringFor Slb Ip 
- Indicate whether the HTTP header field "X-Forwarded-For_SLBIP" is added or not; it allows the backend server to know about the SLB IP address. Possible values are onandoff. Only available when the protocol ishttporhttps.
- xForwarded StringFor Slb Proto 
- Indicate whether the HTTP header field "X-Forwarded-For_proto" is added or not; it allows the backend server to know about the user's protocol. Possible values are onandoff. Only available when the protocol ishttporhttps.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the alicloudTerraform Provider.