Skip to content

Latest commit

 

History

History
255 lines (210 loc) · 4.69 KB

File metadata and controls

255 lines (210 loc) · 4.69 KB

fortios_application_group

back

Index

Terraform

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

top

Example Usage

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

  # behavior - (optional) is a type of string
  behavior = null
  # comment - (optional) is a type of string
  comment = null
  # dynamic_sort_subtable - (optional) is a type of string
  dynamic_sort_subtable = null
  # name - (optional) is a type of string
  name = null
  # popularity - (optional) is a type of string
  popularity = null
  # protocols - (optional) is a type of string
  protocols = null
  # technology - (optional) is a type of string
  technology = null
  # type - (optional) is a type of string
  type = null
  # vendor - (optional) is a type of string
  vendor = null

  application = [{
    id = null
  }]

  category = [{
    id = null
  }]

  risk = [{
    level = null
  }]
}

top

Variables

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

variable "comment" {
  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 "popularity" {
  description = "(optional)"
  type        = string
  default     = null
}

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

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

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

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

variable "application" {
  description = "nested block: NestingList, min items: 0, max items: 0"
  type = set(object(
    {
      id = number
    }
  ))
  default = []
}

variable "category" {
  description = "nested block: NestingList, min items: 0, max items: 0"
  type = set(object(
    {
      id = number
    }
  ))
  default = []
}

variable "risk" {
  description = "nested block: NestingList, min items: 0, max items: 0"
  type = set(object(
    {
      level = number
    }
  ))
  default = []
}

top

Resource

resource "fortios_application_group" "this" {
  # behavior - (optional) is a type of string
  behavior = var.behavior
  # 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 - (optional) is a type of string
  name = var.name
  # popularity - (optional) is a type of string
  popularity = var.popularity
  # protocols - (optional) is a type of string
  protocols = var.protocols
  # technology - (optional) is a type of string
  technology = var.technology
  # type - (optional) is a type of string
  type = var.type
  # vendor - (optional) is a type of string
  vendor = var.vendor

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

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

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

}

top

Outputs

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

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

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

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

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

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

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

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

output "this" {
  value = fortios_application_group.this
}

top