How to create NSX-T IPSET with Terraform
resource "nsxt_policy_group" "SG-IPSET-172_25_11_104_32" {
display_name = "SG-IPSET-172_25_11_104_32"
criteria {
ipaddress_expression {
ip_addresses = ["172.25.11.104"]
}
}
}
Note: you are free to put any preferred resource name and display name, but from my point of view, this is the best way of naming because once you see it in the GUI, you will know directly what is the IP or the subnet included in this IP-SET
No comments:
Post a Comment