Consulta a configuração de um listener TCP.
Sintaxe
{
"Type": "DATASOURCE::SLB::LoadBalancerTCPListener",
"Properties": {
"ListenerPort": Integer,
"LoadBalancerId": String,
"RefreshOptions": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
ListenerPort |
Integer |
Sim |
Sim |
Porta de frontend da instância do Classic Load Balancer (CLB). |
Valores válidos: 1 a 65535. |
|
LoadBalancerId |
String |
Sim |
Sim |
ID da instância CLB. |
Nenhuma. |
|
RefreshOptions |
String |
Não |
Sim |
Política de atualização dos recursos de source durante a atualização da pilha. |
Valores válidos:
|
Valores de retorno
Fn::GetAtt
VServerGroupId: ID do grupo de servidores associado.
SynProxy: indica se o módulo SYNPROXY está ativado para mitigar ataques.
Description: descrição do listener TCP.
ProxyProtocolV2Enabled: indica se o protocolo Proxy transmite endereços IP dos clientes de origem para os servidores de backend.
UnhealthyThreshold: número de falhas consecutivas em verificações de saúde necessárias para classificar um servidor de backend saudável como não saudável.
Scheduler: algoritmo de agendamento.
HealthCheckUri: URL das verificações de saúde.
HealthCheck: indica se o recurso de verificação de saúde está ativado.
LoadBalancerId: ID da instância CLB.
BackendServerPort: porta de backend da instância CLB.
ConnectionDrainTimeout: tempo limite para drenagem de conexões.
PersistenceTimeout: tempo limite para persistência de sessão.
HealthCheckConnectPort: porta das verificações de saúde.
HealthCheckMethod: método das verificações de saúde.
Bandwidth: largura de banda máxima do listener TCP.
HealthCheckHttpCode: código de status HTTP que indica sucesso na verificação de saúde.
EstablishedTimeout: tempo limite da conexão.
ListenerPort: porta de frontend da instância CLB.
HealthCheckInterval: intervalo entre duas verificações de saúde consecutivas.
AclId: ID da lista de controle de acesso (ACL) associada ao listener TCP.
HealthCheckConnectTimeout: tempo limite.
ConnectionDrain: indica se o recurso de drenagem de conexões está ativado.
AclStatus: indica se o recurso ACL está ativado.
HealthyThreshold: quantidade de verificações de saúde consecutivas com sucesso necessárias para classificar um servidor de backend não saudável como saudável.
HealthCheckDomain: nome de domínio das verificações de saúde.
MasterSlaveServerGroupId: ID do grupo de servidores primário/secundário associado.
AclType: tipo da ACL.
HealthCheckType: tipo de verificação de saúde do listener TCP.
AclIds: IDs das ACLs.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ListenerPort:
Type: Number
Description:
en: 'The frontend port used by the CLB instance.Valid values: 1 to 65535.'
Required: true
LoadBalancerId:
Type: String
Description:
en: The ID of the CLB instance.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::SLB::LoadBalancerTCPListener
Properties:
ListenerPort:
Ref: ListenerPort
LoadBalancerId:
Ref: LoadBalancerId
Outputs:
VServerGroupId:
Description: The ID of the associated server group.
Value:
Fn::GetAtt:
- ExtensionDataSource
- VServerGroupId
SynProxy:
Description: Indicates whether the SynProxy feature of CLB is enabled for protection.
Value:
Fn::GetAtt:
- ExtensionDataSource
- SynProxy
Description:
Description: The description of the listener.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Description
ProxyProtocolV2Enabled:
Description: Indicates whether the Proxy protocol is used to pass client IP addresses to backend servers.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ProxyProtocolV2Enabled
UnhealthyThreshold:
Description: 'The unhealthy threshold. The number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy. In this case, the health status is changed from success to fail. Valid values: 2 to 10.'
Value:
Fn::GetAtt:
- ExtensionDataSource
- UnhealthyThreshold
Scheduler:
Description: The scheduling algorithm.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Scheduler
HealthCheckUri:
Description: 'The URL that is used for health checks. '
Value:
Fn::GetAtt:
- ExtensionDataSource
- HealthCheckUri
HealthCheck:
Description: Indicates whether the health check feature is enabled.
Value:
Fn::GetAtt:
- ExtensionDataSource
- HealthCheck
LoadBalancerId:
Description: The ID of the CLB instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- LoadBalancerId
BackendServerPort:
Description: The backend port used by the CLB instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- BackendServerPort
ConnectionDrainTimeout:
Description: The timeout period of connection draining. If ConnectionDrain is set to on, the parameter is returned.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ConnectionDrainTimeout
PersistenceTimeout:
Description: The timeout period of session persistence.
Value:
Fn::GetAtt:
- ExtensionDataSource
- PersistenceTimeout
HealthCheckConnectPort:
Description: The port that is used for health checks.
Value:
Fn::GetAtt:
- ExtensionDataSource
- HealthCheckConnectPort
HealthCheckMethod:
Description: The health check method.
Value:
Fn::GetAtt:
- ExtensionDataSource
- HealthCheckMethod
Bandwidth:
Description: 'The maximum bandwidth of the listener. Unit: Mbit/s.'
Value:
Fn::GetAtt:
- ExtensionDataSource
- Bandwidth
HealthCheckHttpCode:
Description: The HTTP status code for a successful health check.
Value:
Fn::GetAtt:
- ExtensionDataSource
- HealthCheckHttpCode
EstablishedTimeout:
Description: The timeout period of a connection.
Value:
Fn::GetAtt:
- ExtensionDataSource
- EstablishedTimeout
ListenerPort:
Description: The frontend port used by the CLB instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ListenerPort
HealthCheckInterval:
Description: 'The interval between two consecutive health checks. Valid values: 1 to 50. Unit: seconds.'
Value:
Fn::GetAtt:
- ExtensionDataSource
- HealthCheckInterval
AclId:
Description: The ID of the network ACL that is associated with the listener.
Value:
Fn::GetAtt:
- ExtensionDataSource
- AclId
HealthCheckConnectTimeout:
Description: 'The timeout period. Unit: seconds.'
Value:
Fn::GetAtt:
- ExtensionDataSource
- HealthCheckConnectTimeout
ConnectionDrain:
Description: Indicates whether connection draining is enabled. If ConnectionDrain is set to on, the parameter is returned.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ConnectionDrain
AclStatus:
Description: 'Indicates whether access control is enabled. '
Value:
Fn::GetAtt:
- ExtensionDataSource
- AclStatus
HealthyThreshold:
Description: 'The healthy threshold. The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy. In this case, the health status is changed from fail to success. Valid values: 2 to 10.'
Value:
Fn::GetAtt:
- ExtensionDataSource
- HealthyThreshold
HealthCheckDomain:
Description: The domain name that is used for health checks.
Value:
Fn::GetAtt:
- ExtensionDataSource
- HealthCheckDomain
MasterSlaveServerGroupId:
Description: The ID of the primary/secondary server group that is associated with the listener.
Value:
Fn::GetAtt:
- ExtensionDataSource
- MasterSlaveServerGroupId
AclType:
Description: The type of the ACL.
Value:
Fn::GetAtt:
- ExtensionDataSource
- AclType
HealthCheckType:
Description: The health check method that is used by the TCP listener.
Value:
Fn::GetAtt:
- ExtensionDataSource
- HealthCheckType
AclIds:
Description: The ID list of the network ACL that is associated with the listener.
Value:
Fn::GetAtt:
- ExtensionDataSource
- AclIds
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ListenerPort": {
"Type": "Number",
"Description": {
"en": "The frontend port used by the CLB instance.Valid values: 1 to 65535."
},
"Required": true
},
"LoadBalancerId": {
"Type": "String",
"Description": {
"en": "The ID of the CLB instance."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::SLB::LoadBalancerTCPListener",
"Properties": {
"ListenerPort": {
"Ref": "ListenerPort"
},
"LoadBalancerId": {
"Ref": "LoadBalancerId"
}
}
}
},
"Outputs": {
"VServerGroupId": {
"Description": "The ID of the associated server group.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"VServerGroupId"
]
}
},
"SynProxy": {
"Description": "Indicates whether the SynProxy feature of CLB is enabled for protection.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"SynProxy"
]
}
},
"Description": {
"Description": "The description of the listener.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Description"
]
}
},
"ProxyProtocolV2Enabled": {
"Description": "Indicates whether the Proxy protocol is used to pass client IP addresses to backend servers.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ProxyProtocolV2Enabled"
]
}
},
"UnhealthyThreshold": {
"Description": "The unhealthy threshold. The number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy. In this case, the health status is changed from success to fail. Valid values: 2 to 10.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"UnhealthyThreshold"
]
}
},
"Scheduler": {
"Description": "The scheduling algorithm.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Scheduler"
]
}
},
"HealthCheckUri": {
"Description": "The URL that is used for health checks. ",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"HealthCheckUri"
]
}
},
"HealthCheck": {
"Description": "Indicates whether the health check feature is enabled.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"HealthCheck"
]
}
},
"LoadBalancerId": {
"Description": "The ID of the CLB instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"LoadBalancerId"
]
}
},
"BackendServerPort": {
"Description": "The backend port used by the CLB instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"BackendServerPort"
]
}
},
"ConnectionDrainTimeout": {
"Description": "The timeout period of connection draining. If ConnectionDrain is set to on, the parameter is returned.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ConnectionDrainTimeout"
]
}
},
"PersistenceTimeout": {
"Description": "The timeout period of session persistence.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PersistenceTimeout"
]
}
},
"HealthCheckConnectPort": {
"Description": "The port that is used for health checks.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"HealthCheckConnectPort"
]
}
},
"HealthCheckMethod": {
"Description": "The health check method.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"HealthCheckMethod"
]
}
},
"Bandwidth": {
"Description": "The maximum bandwidth of the listener. Unit: Mbit/s.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Bandwidth"
]
}
},
"HealthCheckHttpCode": {
"Description": "The HTTP status code for a successful health check.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"HealthCheckHttpCode"
]
}
},
"EstablishedTimeout": {
"Description": "The timeout period of a connection.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"EstablishedTimeout"
]
}
},
"ListenerPort": {
"Description": "The frontend port used by the CLB instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ListenerPort"
]
}
},
"HealthCheckInterval": {
"Description": "The interval between two consecutive health checks. Valid values: 1 to 50. Unit: seconds.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"HealthCheckInterval"
]
}
},
"AclId": {
"Description": "The ID of the network ACL that is associated with the listener.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"AclId"
]
}
},
"HealthCheckConnectTimeout": {
"Description": "The timeout period. Unit: seconds.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"HealthCheckConnectTimeout"
]
}
},
"ConnectionDrain": {
"Description": "Indicates whether connection draining is enabled. If ConnectionDrain is set to on, the parameter is returned.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ConnectionDrain"
]
}
},
"AclStatus": {
"Description": "Indicates whether access control is enabled. ",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"AclStatus"
]
}
},
"HealthyThreshold": {
"Description": "The healthy threshold. The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy. In this case, the health status is changed from fail to success. Valid values: 2 to 10.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"HealthyThreshold"
]
}
},
"HealthCheckDomain": {
"Description": "The domain name that is used for health checks.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"HealthCheckDomain"
]
}
},
"MasterSlaveServerGroupId": {
"Description": "The ID of the primary/secondary server group that is associated with the listener.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"MasterSlaveServerGroupId"
]
}
},
"AclType": {
"Description": "The type of the ACL.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"AclType"
]
}
},
"HealthCheckType": {
"Description": "The health check method that is used by the TCP listener.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"HealthCheckType"
]
}
},
"AclIds": {
"Description": "The ID list of the network ACL that is associated with the listener.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"AclIds"
]
}
}
}
}