Skip to content

Latest commit

 

History

History
444 lines (376 loc) · 8.79 KB

fortios_firewall_address6.md

File metadata and controls

444 lines (376 loc) · 8.79 KB

fortios_firewall_address6

back

Index

Terraform

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

top

Example Usage

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

  # cache_ttl - (optional) is a type of number
  cache_ttl = null
  # color - (optional) is a type of number
  color = null
  # comment - (optional) is a type of string
  comment = null
  # country - (optional) is a type of string
  country = null
  # dynamic_sort_subtable - (optional) is a type of string
  dynamic_sort_subtable = null
  # end_ip - (optional) is a type of string
  end_ip = null
  # end_mac - (optional) is a type of string
  end_mac = null
  # fqdn - (optional) is a type of string
  fqdn = null
  # host - (optional) is a type of string
  host = null
  # host_type - (optional) is a type of string
  host_type = null
  # ip6 - (optional) is a type of string
  ip6 = null
  # name - (optional) is a type of string
  name = null
  # obj_id - (optional) is a type of string
  obj_id = null
  # sdn - (optional) is a type of string
  sdn = null
  # start_ip - (optional) is a type of string
  start_ip = null
  # start_mac - (optional) is a type of string
  start_mac = null
  # template - (optional) is a type of string
  template = null
  # type - (optional) is a type of string
  type = null
  # uuid - (optional) is a type of string
  uuid = null
  # visibility - (optional) is a type of string
  visibility = null

  list = [{
    ip = null
  }]

  subnet_segment = [{
    name  = null
    type  = null
    value = null
  }]

  tagging = [{
    category = null
    name     = null
    tags = [{
      name = null
    }]
  }]
}

top

Variables

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

variable "list" {
  description = "nested block: NestingList, min items: 0, max items: 0"
  type = set(object(
    {
      ip = string
    }
  ))
  default = []
}

variable "subnet_segment" {
  description = "nested block: NestingList, min items: 0, max items: 0"
  type = set(object(
    {
      name  = string
      type  = string
      value = 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

resource "fortios_firewall_address6" "this" {
  # cache_ttl - (optional) is a type of number
  cache_ttl = var.cache_ttl
  # color - (optional) is a type of number
  color = var.color
  # comment - (optional) is a type of string
  comment = var.comment
  # country - (optional) is a type of string
  country = var.country
  # dynamic_sort_subtable - (optional) is a type of string
  dynamic_sort_subtable = var.dynamic_sort_subtable
  # end_ip - (optional) is a type of string
  end_ip = var.end_ip
  # end_mac - (optional) is a type of string
  end_mac = var.end_mac
  # fqdn - (optional) is a type of string
  fqdn = var.fqdn
  # host - (optional) is a type of string
  host = var.host
  # host_type - (optional) is a type of string
  host_type = var.host_type
  # ip6 - (optional) is a type of string
  ip6 = var.ip6
  # name - (optional) is a type of string
  name = var.name
  # obj_id - (optional) is a type of string
  obj_id = var.obj_id
  # sdn - (optional) is a type of string
  sdn = var.sdn
  # start_ip - (optional) is a type of string
  start_ip = var.start_ip
  # start_mac - (optional) is a type of string
  start_mac = var.start_mac
  # template - (optional) is a type of string
  template = var.template
  # type - (optional) is a type of string
  type = var.type
  # uuid - (optional) is a type of string
  uuid = var.uuid
  # visibility - (optional) is a type of string
  visibility = var.visibility

  dynamic "list" {
    for_each = var.list
    content {
      # ip - (optional) is a type of string
      ip = list.value["ip"]
    }
  }

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

  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

Outputs

output "cache_ttl" {
  description = "returns a number"
  value       = fortios_firewall_address6.this.cache_ttl
}

output "color" {
  description = "returns a number"
  value       = fortios_firewall_address6.this.color
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

output "this" {
  value = fortios_firewall_address6.this
}

top