Skip to content

Latest commit

 

History

History
145 lines (115 loc) · 2.49 KB

fortios_firewallservice_group.md

File metadata and controls

145 lines (115 loc) · 2.49 KB

fortios_firewallservice_group

back

Index

Terraform

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

top

Example Usage

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

  # color - (optional) is a type of number
  color = null
  # comment - (optional) is a type of string
  comment = null
  # dynamic_sort_subtable - (optional) is a type of string
  dynamic_sort_subtable = null
  # name - (required) is a type of string
  name = null
  # proxy - (optional) is a type of string
  proxy = null

  member = [{
    name = null
  }]
}

top

Variables

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

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

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

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

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

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

top

Resource

resource "fortios_firewallservice_group" "this" {
  # color - (optional) is a type of number
  color = var.color
  # comment - (optional) is a type of string
  comment = var.comment
  # 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
  # proxy - (optional) is a type of string
  proxy = var.proxy

  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_firewallservice_group.this.color
}

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

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

output "this" {
  value = fortios_firewallservice_group.this
}

top