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