Skip to content

Latest commit

 

History

History
191 lines (158 loc) · 3.34 KB

fortios_user_securityexemptlist.md

File metadata and controls

191 lines (158 loc) · 3.34 KB

fortios_user_securityexemptlist

back

Index

Terraform

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

top

Example Usage

module "fortios_user_securityexemptlist" {
  source = "./modules/fortios/r/fortios_user_securityexemptlist"

  # description - (optional) is a type of string
  description = null
  # dynamic_sort_subtable - (optional) is a type of string
  dynamic_sort_subtable = null
  # name - (optional) is a type of string
  name = null

  rule = [{
    devices = [{
      name = null
    }]
    dstaddr = [{
      name = null
    }]
    id = null
    service = [{
      name = null
    }]
    srcaddr = [{
      name = null
    }]
  }]
}

top

Variables

variable "description" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "dynamic_sort_subtable" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "name" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "rule" {
  description = "nested block: NestingList, min items: 0, max items: 0"
  type = set(object(
    {
      devices = list(object(
        {
          name = string
        }
      ))
      dstaddr = list(object(
        {
          name = string
        }
      ))
      id = number
      service = list(object(
        {
          name = string
        }
      ))
      srcaddr = list(object(
        {
          name = string
        }
      ))
    }
  ))
  default = []
}

top

Resource

resource "fortios_user_securityexemptlist" "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
  # name - (optional) is a type of string
  name = var.name

  dynamic "rule" {
    for_each = var.rule
    content {
      # id - (optional) is a type of number
      id = rule.value["id"]

      dynamic "devices" {
        for_each = rule.value.devices
        content {
          # name - (optional) is a type of string
          name = devices.value["name"]
        }
      }

      dynamic "dstaddr" {
        for_each = rule.value.dstaddr
        content {
          # name - (optional) is a type of string
          name = dstaddr.value["name"]
        }
      }

      dynamic "service" {
        for_each = rule.value.service
        content {
          # name - (optional) is a type of string
          name = service.value["name"]
        }
      }

      dynamic "srcaddr" {
        for_each = rule.value.srcaddr
        content {
          # name - (optional) is a type of string
          name = srcaddr.value["name"]
        }
      }

    }
  }

}

top

Outputs

output "description" {
  description = "returns a string"
  value       = fortios_user_securityexemptlist.this.description
}

output "id" {
  description = "returns a string"
  value       = fortios_user_securityexemptlist.this.id
}

output "name" {
  description = "returns a string"
  value       = fortios_user_securityexemptlist.this.name
}

output "this" {
  value = fortios_user_securityexemptlist.this
}

top