Skip to content

Latest commit

 

History

History
136 lines (109 loc) · 2.49 KB

fortios_router_accesslist6.md

File metadata and controls

136 lines (109 loc) · 2.49 KB

fortios_router_accesslist6

back

Index

Terraform

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

top

Example Usage

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

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

  rule = [{
    action      = null
    exact_match = null
    flags       = null
    id          = null
    prefix6     = null
  }]
}

top

Variables

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

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

variable "name" {
  description = "(required)"
  type        = string
}

variable "rule" {
  description = "nested block: NestingList, min items: 0, max items: 0"
  type = set(object(
    {
      action      = string
      exact_match = string
      flags       = number
      id          = number
      prefix6     = string
    }
  ))
  default = []
}

top

Resource

resource "fortios_router_accesslist6" "this" {
  # comments - (optional) is a type of string
  comments = var.comments
  # dynamic_sort_subtable - (optional) is a type of string
  dynamic_sort_subtable = var.dynamic_sort_subtable
  # name - (required) is a type of string
  name = var.name

  dynamic "rule" {
    for_each = var.rule
    content {
      # action - (optional) is a type of string
      action = rule.value["action"]
      # exact_match - (optional) is a type of string
      exact_match = rule.value["exact_match"]
      # flags - (optional) is a type of number
      flags = rule.value["flags"]
      # id - (optional) is a type of number
      id = rule.value["id"]
      # prefix6 - (optional) is a type of string
      prefix6 = rule.value["prefix6"]
    }
  }

}

top

Outputs

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

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

output "this" {
  value = fortios_router_accesslist6.this
}

top