Skip to content

Latest commit

 

History

History
159 lines (127 loc) · 2.76 KB

fortios_firewall_vipgrp.md

File metadata and controls

159 lines (127 loc) · 2.76 KB

fortios_firewall_vipgrp

back

Index

Terraform

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

top

Example Usage

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

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

  member = [{
    name = null
  }]
}

top

Variables

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

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

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

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

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

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

variable "member" {
  description = "nested block: NestingList, min items: 1, max items: 0"
  type = set(object(
    {
      name = string
    }
  ))
}

top

Resource

resource "fortios_firewall_vipgrp" "this" {
  # color - (optional) is a type of number
  color = var.color
  # 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
  # interface - (required) is a type of string
  interface = var.interface
  # name - (optional) is a type of string
  name = var.name
  # uuid - (optional) is a type of string
  uuid = var.uuid

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

}

top

Outputs

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

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

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

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

output "this" {
  value = fortios_firewall_vipgrp.this
}

top