Skip to content

Latest commit

 

History

History
126 lines (98 loc) · 2.01 KB

File metadata and controls

126 lines (98 loc) · 2.01 KB

fortios_firewall_region

back

Index

Terraform

terraform {
  required_providers {
    fortios = ">= 1.11.0"
  }
}

top

Example Usage

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

Variables

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

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

Outputs

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