You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"nsxt_policy_lb_virtual_server" {
source="./modules/nsxt/r/nsxt_policy_lb_virtual_server"# access_log_enabled - (optional) is a type of boolaccess_log_enabled=null# application_profile_path - (required) is a type of stringapplication_profile_path=null# default_pool_member_ports - (optional) is a type of list of stringdefault_pool_member_ports=[]
# description - (optional) is a type of stringdescription=null# display_name - (required) is a type of stringdisplay_name=null# enabled - (optional) is a type of boolenabled=null# ip_address - (required) is a type of stringip_address=null# log_significant_event_only - (optional) is a type of boollog_significant_event_only=null# max_concurrent_connections - (optional) is a type of numbermax_concurrent_connections=null# max_new_connection_rate - (optional) is a type of numbermax_new_connection_rate=null# nsx_id - (optional) is a type of stringnsx_id=null# persistence_profile_path - (optional) is a type of stringpersistence_profile_path=null# pool_path - (optional) is a type of stringpool_path=null# ports - (required) is a type of list of stringports=[]
# service_path - (optional) is a type of stringservice_path=null# sorry_pool_path - (optional) is a type of stringsorry_pool_path=nullaccess_list_control=[{
action =null
enabled =null
group_path =null
}]
client_ssl=[{
ca_paths = []
certificate_chain_depth =null
client_auth =null
crl_paths = []
default_certificate_path =null
sni_paths = []
ssl_profile_path =null
}]
server_ssl=[{
ca_paths = []
certificate_chain_depth =null
client_certificate_path =null
crl_paths = []
server_auth =null
ssl_profile_path =null
}]
tag=[{
scope =null
tag =null
}]
}
variable"access_log_enabled" {
description="(optional) - If enabled, all connections/requests sent to virtual server are logged to the access log file"type=booldefault=null
}
variable"application_profile_path" {
description="(required) - Application profile for this virtual server"type=string
}
variable"default_pool_member_ports" {
description="(optional) - Default pool member ports when member port is not defined"type=list(string)
default=null
}
variable"description" {
description="(optional) - Description for this resource"type=stringdefault=null
}
variable"display_name" {
description="(required) - Display name for this resource"type=string
}
variable"enabled" {
description="(optional) - Flag to enable Virtual Server"type=booldefault=null
}
variable"ip_address" {
description="(required) - Virtual Server IP address"type=string
}
variable"log_significant_event_only" {
description="(optional) - Flag to log significant events in access log, if access log is enabed"type=booldefault=null
}
variable"max_concurrent_connections" {
description="(optional) - To ensure one virtual server does not over consume resources, connections to a virtual server can be capped."type=numberdefault=null
}
variable"max_new_connection_rate" {
description="(optional) - To ensure one virtual server does not over consume resources, connections to a member can be rate limited."type=numberdefault=null
}
variable"nsx_id" {
description="(optional) - NSX ID for this resource"type=stringdefault=null
}
variable"persistence_profile_path" {
description="(optional) - Path to persistence profile allowing related client connections to be sent to the same backend server."type=stringdefault=null
}
variable"pool_path" {
description="(optional) - Path for Load Balancer Pool"type=stringdefault=null
}
variable"ports" {
description="(required) - Virtual Server ports"type=list(string)
}
variable"service_path" {
description="(optional) - Virtual Server can be associated with Load Balancer Service"type=stringdefault=null
}
variable"sorry_pool_path" {
description="(optional) - When load balancer can not select server in default pool or pool in rules, the request would be served by sorry pool"type=stringdefault=null
}
variable"access_list_control" {
description="nested block: NestingList, min items: 0, max items: 1"type=set(object(
{
action =string
enabled =bool
group_path =string
}
))
default=[]
}
variable"client_ssl" {
description="nested block: NestingList, min items: 0, max items: 1"type=set(object(
{
ca_paths =list(string)
certificate_chain_depth =number
client_auth =string
crl_paths =list(string)
default_certificate_path =string
sni_paths =list(string)
ssl_profile_path =string
}
))
default=[]
}
variable"server_ssl" {
description="nested block: NestingList, min items: 0, max items: 1"type=set(object(
{
ca_paths =list(string)
certificate_chain_depth =number
client_certificate_path =string
crl_paths =list(string)
server_auth =string
ssl_profile_path =string
}
))
default=[]
}
variable"tag" {
description="nested block: NestingSet, min items: 0, max items: 0"type=set(object(
{
scope =string
tag =string
}
))
default=[]
}
resource"nsxt_policy_lb_virtual_server""this" {
# access_log_enabled - (optional) is a type of boolaccess_log_enabled=var.access_log_enabled# application_profile_path - (required) is a type of stringapplication_profile_path=var.application_profile_path# default_pool_member_ports - (optional) is a type of list of stringdefault_pool_member_ports=var.default_pool_member_ports# description - (optional) is a type of stringdescription=var.description# display_name - (required) is a type of stringdisplay_name=var.display_name# enabled - (optional) is a type of boolenabled=var.enabled# ip_address - (required) is a type of stringip_address=var.ip_address# log_significant_event_only - (optional) is a type of boollog_significant_event_only=var.log_significant_event_only# max_concurrent_connections - (optional) is a type of numbermax_concurrent_connections=var.max_concurrent_connections# max_new_connection_rate - (optional) is a type of numbermax_new_connection_rate=var.max_new_connection_rate# nsx_id - (optional) is a type of stringnsx_id=var.nsx_id# persistence_profile_path - (optional) is a type of stringpersistence_profile_path=var.persistence_profile_path# pool_path - (optional) is a type of stringpool_path=var.pool_path# ports - (required) is a type of list of stringports=var.ports# service_path - (optional) is a type of stringservice_path=var.service_path# sorry_pool_path - (optional) is a type of stringsorry_pool_path=var.sorry_pool_pathdynamic"access_list_control" {
for_each=var.access_list_controlcontent {
# action - (required) is a type of stringaction=access_list_control.value["action"]
# enabled - (optional) is a type of boolenabled=access_list_control.value["enabled"]
# group_path - (required) is a type of stringgroup_path=access_list_control.value["group_path"]
}
}
dynamic"client_ssl" {
for_each=var.client_sslcontent {
# ca_paths - (optional) is a type of list of stringca_paths=client_ssl.value["ca_paths"]
# certificate_chain_depth - (optional) is a type of numbercertificate_chain_depth=client_ssl.value["certificate_chain_depth"]
# client_auth - (optional) is a type of stringclient_auth=client_ssl.value["client_auth"]
# crl_paths - (optional) is a type of list of stringcrl_paths=client_ssl.value["crl_paths"]
# default_certificate_path - (required) is a type of stringdefault_certificate_path=client_ssl.value["default_certificate_path"]
# sni_paths - (optional) is a type of list of stringsni_paths=client_ssl.value["sni_paths"]
# ssl_profile_path - (optional) is a type of stringssl_profile_path=client_ssl.value["ssl_profile_path"]
}
}
dynamic"server_ssl" {
for_each=var.server_sslcontent {
# ca_paths - (optional) is a type of list of stringca_paths=server_ssl.value["ca_paths"]
# certificate_chain_depth - (optional) is a type of numbercertificate_chain_depth=server_ssl.value["certificate_chain_depth"]
# client_certificate_path - (optional) is a type of stringclient_certificate_path=server_ssl.value["client_certificate_path"]
# crl_paths - (optional) is a type of list of stringcrl_paths=server_ssl.value["crl_paths"]
# server_auth - (optional) is a type of stringserver_auth=server_ssl.value["server_auth"]
# ssl_profile_path - (optional) is a type of stringssl_profile_path=server_ssl.value["ssl_profile_path"]
}
}
dynamic"tag" {
for_each=var.tagcontent {
# scope - (optional) is a type of stringscope=tag.value["scope"]
# tag - (optional) is a type of stringtag=tag.value["tag"]
}
}
}