DATASOURCE::SLB::LoadBalancerTCPListeners is used to query Classic Load Balancer (CLB) listeners.
Syntax
{
"Type": "DATASOURCE::SLB::LoadBalancerTCPListeners",
"Properties": {
"LoadBalancerId": String,
"RefreshOptions": String
}
}Properties
Property | Type | Required | Editable | Description | Constraint |
LoadBalancerId | String | Yes | Yes | The ID of the CLB instance. | None. |
RefreshOptions | String | No | Yes | The refresh policy for data source resources when the stack is updated. | Valid values:
|
Return values
Fn::GetAtt
LoadBalancerTCPListeners: the CLB listeners.
ListenerPorts: the ports of the CLB listeners.
Property | Type | Description | Constraint |
ListenerPorts | List | The ports of the CLB listeners. | None. |
LoadBalancerTCPListeners | List | The CLB listeners. | None. |
AclType | String | The type of the access control list (ACL). | Valid values:
If you enable a whitelist but do not add an IP address to the whitelist, the listener forwards all requests.
If you enable a blacklist but do not add an IP address to the blacklist, the listener forwards all requests. |
HealthCheckUri | String | The URI that is used for health checks. | None. |
HealthCheckConnectPort | String | The port that is used for health checks. | None. |
ConnectionDrain | String | Indicates whether connection draining is enabled. | Valid values:
|
AclStatus | String | Indicates whether access control is enabled. | Valid values:
|
Description | String | The description of the listener. | None. |
AclId | String | The ID of the ACL. | None. |
VServerGroupId | String | The ID of the vServer group that is associated with the listener. | None. |
Scheduler | String | The scheduling algorithm. | Valid values:
|
ConnectionDrainTimeout | String | The timeout period of connection draining. | Unit: seconds. Valid values: 10 to 900. |
HealthCheckType | String | The protocol that is used for health checks. | None. |
HealthCheckDomain | String | The domain name that is used for health checks. | None. |
MasterSlaveServerGroupId | String | The ID of the primary/secondary server group that is associated with the listener. | None. |
HealthCheck | String | Indicates whether the health check feature is enabled. | Valid values:
|
ListenerPort | String | The port of the listener. | None. |
HealthyThreshold | Integer | The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy. | Valid values: 2 to 10. |
EstablishedTimeout | Integer | The timeout period of a connection. | Unit: seconds. |
HealthCheckInterval | Integer | The interval between two consecutive health checks. | Unit: seconds. |
BackendServerPort | Integer | The port of the backend server. | None. |
HealthCheckHttpCode | String | The HTTP status code that indicates a successful health check. | None. |
PersistenceTimeout | Integer | Indicates whether session persistence is enabled. | Unit: seconds. Valid values: 0 to 3600. A value of 0 indicates that session persistence is disabled. |
UnhealthyThreshold | Integer | The number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy. | Valid values: 2 to 10. |
Bandwidth | Integer | The maximum bandwidth of the listener. | Unit: Mbit/s. |
LoadBalancerId | String | The ID of the CLB instance. | None. |
HealthCheckMethod | String | The health check method. | Valid values: head or get. |
HealthCheckConnectTimeout | Integer | The timeout period of a health check. | Unit: seconds. Valid values: 1 to 300. |
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
LoadBalancerId:
Type: String
Description:
en: The ID of the CLB instance.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::SLB::LoadBalancerTCPListeners
Properties:
LoadBalancerId:
Ref: LoadBalancerId
Outputs:
LoadBalancerTCPListeners:
Description: The list of load balancer tcp listeners.
Value:
Fn::GetAtt:
- ExtensionDataSource
- LoadBalancerTCPListeners
ListenerPorts:
Description: The list of listener ports.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ListenerPorts
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"LoadBalancerId": {
"Type": "String",
"Description": {
"en": "The ID of the CLB instance."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::SLB::LoadBalancerTCPListeners",
"Properties": {
"LoadBalancerId": {
"Ref": "LoadBalancerId"
}
}
}
},
"Outputs": {
"LoadBalancerTCPListeners": {
"Description": "The list of load balancer tcp listeners.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"LoadBalancerTCPListeners"
]
}
},
"ListenerPorts": {
"Description": "The list of listener ports.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ListenerPorts"
]
}
}
}
}