Consulta os detalhes de configuração de uma regra de encaminhamento específica.
Sintaxe
{
"Type": "DATASOURCE::SLB::Rule",
"Properties": {
"RuleId": String,
"RefreshOptions": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatório |
Editável |
Descrição |
Restrição |
|
RuleId |
String |
Sim |
Sim |
ID da regra de encaminhamento. |
Nenhuma. |
|
RefreshOptions |
String |
Não |
Sim |
Política de atualização dos recursos da fonte de dados ao atualizar a pilha. |
Valores válidos:
|
Valores de retorno
Fn::GetAtt
CookieTimeout: tempo limite do cookie.
Cookie: cookie configurado no servidor.
VserverGroupId: ID do grupo de servidores associado à regra de encaminhamento.
ListenerPort: porta de listener de frontend da instância SLB.
HealthCheckInterval: intervalo entre duas verificações de integridade consecutivas.
UnhealthyThreshold: número de falhas consecutivas nas verificações de integridade necessárias para considerar um servidor backend íntegro como não íntegro.
Scheduler: algoritmo de agendamento.
HealthCheckUri: URI (Uniform Resource Identifier) usado nas verificações de integridade.
RuleId: ID da regra de encaminhamento.
HealthCheck: indica se o recurso de verificação de integridade está ativado.
LoadBalancerId: ID da instância SLB.
HealthCheckTimeout: tempo limite para resposta da verificação de integridade. A verificação falha caso a instância ECS backend não responda dentro do período especificado.
Url: caminho da regra de encaminhamento.
StickySession: indica se a persistência de sessão está ativada.
HealthCheckConnectPort: porta usada para verificações de integridade nos servidores backend.
HealthyThreshold: número de sucessos consecutivos nas verificações de integridade necessários para considerar um servidor backend não íntegro como íntegro.
HealthCheckDomain: nome de domínio usado nas verificações de integridade.
ListenerSync: indica se a regra de encaminhamento usa as configurações de algoritmo de agendamento, persistência de sessão e verificação de integridade do listener.
StickySessionType: método de tratamento do cookie.
Domain: nome de domínio da regra de encaminhamento.
HealthCheckHttpCode: códigos de status HTTP que indicam sucesso na verificação de integridade. Múltiplos códigos são separados por vírgulas.
RuleName: nome da regra de encaminhamento.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RuleId:
Type: String
Description:
en: The ID of the forwarding rule.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::SLB::Rule
Properties:
RuleId:
Ref: RuleId
Outputs:
CookieTimeout:
Description: The timeout period of a cookie.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CookieTimeout
Cookie:
Description: The cookie to be configured on the backend server.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Cookie
VserverGroupId:
Description: The ID of the vServer group that is associated with the forwarding rule.
Value:
Fn::GetAtt:
- ExtensionDataSource
- VserverGroupId
ListenerPort:
Description: The listener port that is used by the SLB instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ListenerPort
HealthCheckInterval:
Description: The time interval between two consecutive health checks.
Value:
Fn::GetAtt:
- ExtensionDataSource
- HealthCheckInterval
UnhealthyThreshold:
Description: The number of consecutive failed health checks that must occur before a healthy backend server is declared unhealthy. In this case, the health check state is changed from success to fail.
Value:
Fn::GetAtt:
- ExtensionDataSource
- UnhealthyThreshold
Scheduler:
Description: The scheduling algorithm.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Scheduler
HealthCheckUri:
Description: The URI that is used for health checks.
Value:
Fn::GetAtt:
- ExtensionDataSource
- HealthCheckUri
RuleId:
Description: The ID of the forwarding rule.
Value:
Fn::GetAtt:
- ExtensionDataSource
- RuleId
HealthCheck:
Description: Specifies whether to enable health checks.
Value:
Fn::GetAtt:
- ExtensionDataSource
- HealthCheck
LoadBalancerId:
Description: The ID of the SLB instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- LoadBalancerId
HealthCheckTimeout:
Description: The timeout period of a health check response. If a backend ECS instance does not send an expected response within the specified period of time, the ECS instance is considered unhealthy.
Value:
Fn::GetAtt:
- ExtensionDataSource
- HealthCheckTimeout
Url:
Description: The URL that is configured in the forwarding rule.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Url
StickySession:
Description: 'Indicates whether session persistence is enabled. Valid values: on and off.'
Value:
Fn::GetAtt:
- ExtensionDataSource
- StickySession
HealthCheckConnectPort:
Description: 'The port of the backend server that is used for health checks. Valid values: 1 to 65535.'
Value:
Fn::GetAtt:
- ExtensionDataSource
- HealthCheckConnectPort
HealthyThreshold:
Description: The number of consecutive successful health checks that must occur before an unhealthy backend server is declared healthy. In this case, the health check state is changed from fail to success.
Value:
Fn::GetAtt:
- ExtensionDataSource
- HealthyThreshold
HealthCheckDomain:
Description: 'The domain name that is used for health checks. Valid values: $_ip: The private IP address of the backend server. If the $_ip parameter is set or the HealthCheckDomain parameter is not set, SLB uses the private IP addresses of backend servers as the domain names for health checks. domain: The domain name must be 1 to 80 characters in length. It can contain only letters, digits, periods (.),and hyphens (-).'
Value:
Fn::GetAtt:
- ExtensionDataSource
- HealthCheckDomain
ListenerSync:
Description: Indicates whether the forwarding rule uses the scheduling algorithm, session persistence, and health check configurations of the listener.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ListenerSync
StickySessionType:
Description: The method that is used to handle a cookie.
Value:
Fn::GetAtt:
- ExtensionDataSource
- StickySessionType
Domain:
Description: The domain name that is configured in the forwarding rule.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Domain
HealthCheckHttpCode:
Description: 'The HTTP status code that indicates a successful health check. Separate multiple HTTP status codes with commas (,). Default value: http_2xx.'
Value:
Fn::GetAtt:
- ExtensionDataSource
- HealthCheckHttpCode
RuleName:
Description: The name of the forwarding rule.
Value:
Fn::GetAtt:
- ExtensionDataSource
- RuleName
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RuleId": {
"Type": "String",
"Description": {
"en": "The ID of the forwarding rule."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::SLB::Rule",
"Properties": {
"RuleId": {
"Ref": "RuleId"
}
}
}
},
"Outputs": {
"CookieTimeout": {
"Description": "The timeout period of a cookie.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CookieTimeout"
]
}
},
"Cookie": {
"Description": "The cookie to be configured on the backend server.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Cookie"
]
}
},
"VserverGroupId": {
"Description": "The ID of the vServer group that is associated with the forwarding rule.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"VserverGroupId"
]
}
},
"ListenerPort": {
"Description": "The listener port that is used by the SLB instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ListenerPort"
]
}
},
"HealthCheckInterval": {
"Description": "The time interval between two consecutive health checks.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"HealthCheckInterval"
]
}
},
"UnhealthyThreshold": {
"Description": "The number of consecutive failed health checks that must occur before a healthy backend server is declared unhealthy. In this case, the health check state is changed from success to fail.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"UnhealthyThreshold"
]
}
},
"Scheduler": {
"Description": "The scheduling algorithm.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Scheduler"
]
}
},
"HealthCheckUri": {
"Description": "The URI that is used for health checks.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"HealthCheckUri"
]
}
},
"RuleId": {
"Description": "The ID of the forwarding rule.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"RuleId"
]
}
},
"HealthCheck": {
"Description": "Specifies whether to enable health checks.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"HealthCheck"
]
}
},
"LoadBalancerId": {
"Description": "The ID of the SLB instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"LoadBalancerId"
]
}
},
"HealthCheckTimeout": {
"Description": "The timeout period of a health check response. If a backend ECS instance does not send an expected response within the specified period of time, the ECS instance is considered unhealthy.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"HealthCheckTimeout"
]
}
},
"Url": {
"Description": "The URL that is configured in the forwarding rule.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Url"
]
}
},
"StickySession": {
"Description": "Indicates whether session persistence is enabled. Valid values: on and off.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"StickySession"
]
}
},
"HealthCheckConnectPort": {
"Description": "The port of the backend server that is used for health checks. Valid values: 1 to 65535.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"HealthCheckConnectPort"
]
}
},
"HealthyThreshold": {
"Description": "The number of consecutive successful health checks that must occur before an unhealthy backend server is declared healthy. In this case, the health check state is changed from fail to success.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"HealthyThreshold"
]
}
},
"HealthCheckDomain": {
"Description": "The domain name that is used for health checks. Valid values: $_ip: The private IP address of the backend server. If the $_ip parameter is set or the HealthCheckDomain parameter is not set, SLB uses the private IP addresses of backend servers as the domain names for health checks. domain: The domain name must be 1 to 80 characters in length. It can contain only letters, digits, periods (.),and hyphens (-).",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"HealthCheckDomain"
]
}
},
"ListenerSync": {
"Description": "Indicates whether the forwarding rule uses the scheduling algorithm, session persistence, and health check configurations of the listener.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ListenerSync"
]
}
},
"StickySessionType": {
"Description": "The method that is used to handle a cookie.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"StickySessionType"
]
}
},
"Domain": {
"Description": "The domain name that is configured in the forwarding rule.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Domain"
]
}
},
"HealthCheckHttpCode": {
"Description": "The HTTP status code that indicates a successful health check. Separate multiple HTTP status codes with commas (,). Default value: http_2xx.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"HealthCheckHttpCode"
]
}
},
"RuleName": {
"Description": "The name of the forwarding rule.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"RuleName"
]
}
}
}
}