back
terraform {
required_providers {
fortios = ">= 1.11.0"
}
}
top
module "fortios_firewall_region" {
source = "./modules/fortios/r/fortios_firewall_region"
# dynamic_sort_subtable - (optional) is a type of string
dynamic_sort_subtable = null
# fosid - (optional) is a type of number
fosid = null
# name - (optional) is a type of string
name = null
city = [{
id = null
}]
}
top
variable "dynamic_sort_subtable" {
description = "(optional)"
type = string
default = null
}
variable "fosid" {
description = "(optional)"
type = number
default = null
}
variable "name" {
description = "(optional)"
type = string
default = null
}
variable "city" {
description = "nested block: NestingList, min items: 0, max items: 0"
type = set(object(
{
id = number
}
))
default = []
}
top
resource "fortios_firewall_region" "this" {
# dynamic_sort_subtable - (optional) is a type of string
dynamic_sort_subtable = var.dynamic_sort_subtable
# fosid - (optional) is a type of number
fosid = var.fosid
# name - (optional) is a type of string
name = var.name
dynamic "city" {
for_each = var.city
content {
# id - (optional) is a type of number
id = city.value["id"]
}
}
}
top
output "fosid" {
description = "returns a number"
value = fortios_firewall_region.this.fosid
}
output "id" {
description = "returns a string"
value = fortios_firewall_region.this.id
}
output "name" {
description = "returns a string"
value = fortios_firewall_region.this.name
}
output "this" {
value = fortios_firewall_region.this
}
top