最近更新时间:2025-03-18 20:13:33
此数据源提供当前区域中的ksyun lb规则列表。
provider "ksyun" {
}
# Get slb rule
data "ksyun_lb_rules" "default" {
output_file="output_result"
ids=[]
host_header_id=[]
}支持以下参数:
ids - (可选)规则ID列表。
output_file - (可选)保存数据源结果的文件名称(在运行terraform plan之后)。
host_header_id - (可选)主机头ID。
除了上述所有参数外,还导出以下属性:
create_time - 规则创建的时间。
rule_id - 规则的ID。
path - 规则的路径。
backend_server_group_id - 后端服务器组的ID。
listener_sync - 是否同步监听器的健康检查、会话保持和转发算法。有效值:‘on’, ‘off’。
method - 监听器的转发模式。有效值:‘RoundRobin’, ‘LeastConnections’。
session_state - 会话状态。有效值:‘start’, ‘stop’。
session_persistence_period - 会话保持超时时间。有效值:1-86400。
cookie_type - Cookie类型。有效值:‘ImplantCookie’, ‘RewriteCookie’。
cookie_name - Cookie名称。当CookieType有效且为’RewriteCookie’时,这个值是必填项;否则,这个值将被忽略。
timeout - 健康检查超时时间。有效值:1-3600。
interval - 健康检查间隔。有效值:1-3600。
health_check_state - 健康检查状态。当ListenerSync为’off’时,这个值有效且可选;否则,这个值将被忽略。有效值:‘start’, ‘stop’。
healthy_threshold - 健康阈值。当HealthCheckState为’start’时,这个值有效且必填;在其他情况下,这个值将被忽略。有效值:1-10。
unhealthy_threshold - 不健康阈值。有效值:1-10。
url_path - HTTP类型监听器的健康检查链接。
host_name - HTTP类型健康检查的域名。
纯净模式
