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_l4_port_set_ns_service" {
source="./modules/nsxt/r/nsxt_l4_port_set_ns_service"# description - (optional) is a type of stringdescription=null# destination_ports - (optional) is a type of set of stringdestination_ports=[]
# display_name - (optional) is a type of stringdisplay_name=null# protocol - (required) is a type of stringprotocol=null# source_ports - (optional) is a type of set of stringsource_ports=[]
tag=[{
scope =null
tag =null
}]
}
variable"description" {
description="(optional) - Description of this resource"type=stringdefault=null
}
variable"destination_ports" {
description="(optional) - Set of destination ports"type=set(string)
default=null
}
variable"display_name" {
description="(optional) - The display name of this resource. Defaults to ID if not set"type=stringdefault=null
}
variable"protocol" {
description="(required) - L4 Protocol"type=string
}
variable"source_ports" {
description="(optional) - Set of source ports"type=set(string)
default=null
}
variable"tag" {
description="nested block: NestingSet, min items: 0, max items: 0"type=set(object(
{
scope =string
tag =string
}
))
default=[]
}
resource"nsxt_l4_port_set_ns_service""this" {
# description - (optional) is a type of stringdescription=var.description# destination_ports - (optional) is a type of set of stringdestination_ports=var.destination_ports# display_name - (optional) is a type of stringdisplay_name=var.display_name# protocol - (required) is a type of stringprotocol=var.protocol# source_ports - (optional) is a type of set of stringsource_ports=var.source_portsdynamic"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"]
}
}
}