Skip to content

Latest commit

 

History

History
561 lines (495 loc) · 14.3 KB

File metadata and controls

561 lines (495 loc) · 14.3 KB

fortios_application_list

back

Index

Terraform

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

top

Example Usage

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

  # app_replacemsg - (optional) is a type of string
  app_replacemsg = null
  # comment - (optional) is a type of string
  comment = null
  # control_default_network_services - (optional) is a type of string
  control_default_network_services = null
  # deep_app_inspection - (optional) is a type of string
  deep_app_inspection = null
  # dynamic_sort_subtable - (optional) is a type of string
  dynamic_sort_subtable = null
  # enforce_default_app_port - (optional) is a type of string
  enforce_default_app_port = null
  # extended_log - (optional) is a type of string
  extended_log = null
  # force_inclusion_ssl_di_sigs - (optional) is a type of string
  force_inclusion_ssl_di_sigs = null
  # name - (required) is a type of string
  name = null
  # options - (optional) is a type of string
  options = null
  # other_application_action - (optional) is a type of string
  other_application_action = null
  # other_application_log - (optional) is a type of string
  other_application_log = null
  # p2p_black_list - (optional) is a type of string
  p2p_black_list = null
  # p2p_block_list - (optional) is a type of string
  p2p_block_list = null
  # replacemsg_group - (optional) is a type of string
  replacemsg_group = null
  # unknown_application_action - (optional) is a type of string
  unknown_application_action = null
  # unknown_application_log - (optional) is a type of string
  unknown_application_log = null

  default_network_services = [{
    id               = null
    port             = null
    services         = null
    violation_action = null
  }]

  entries = [{
    action = null
    application = [{
      id = null
    }]
    behavior = null
    category = [{
      id = null
    }]
    exclusion = [{
      id = null
    }]
    id         = null
    log        = null
    log_packet = null
    parameters = [{
      id = null
      members = [{
        id    = null
        name  = null
        value = null
      }]
      value = null
    }]
    per_ip_shaper     = null
    popularity        = null
    protocols         = null
    quarantine        = null
    quarantine_expiry = null
    quarantine_log    = null
    rate_count        = null
    rate_duration     = null
    rate_mode         = null
    rate_track        = null
    risk = [{
      level = null
    }]
    session_ttl    = null
    shaper         = null
    shaper_reverse = null
    sub_category = [{
      id = null
    }]
    technology = null
    vendor     = null
  }]
}

top

Variables

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

variable "entries" {
  description = "nested block: NestingList, min items: 0, max items: 0"
  type = set(object(
    {
      action = string
      application = list(object(
        {
          id = number
        }
      ))
      behavior = string
      category = list(object(
        {
          id = number
        }
      ))
      exclusion = list(object(
        {
          id = number
        }
      ))
      id         = number
      log        = string
      log_packet = string
      parameters = list(object(
        {
          id = number
          members = list(object(
            {
              id    = number
              name  = string
              value = string
            }
          ))
          value = string
        }
      ))
      per_ip_shaper     = string
      popularity        = string
      protocols         = string
      quarantine        = string
      quarantine_expiry = string
      quarantine_log    = string
      rate_count        = number
      rate_duration     = number
      rate_mode         = string
      rate_track        = string
      risk = list(object(
        {
          level = number
        }
      ))
      session_ttl    = number
      shaper         = string
      shaper_reverse = string
      sub_category = list(object(
        {
          id = number
        }
      ))
      technology = string
      vendor     = string
    }
  ))
  default = []
}

top

Resource

resource "fortios_application_list" "this" {
  # app_replacemsg - (optional) is a type of string
  app_replacemsg = var.app_replacemsg
  # comment - (optional) is a type of string
  comment = var.comment
  # control_default_network_services - (optional) is a type of string
  control_default_network_services = var.control_default_network_services
  # deep_app_inspection - (optional) is a type of string
  deep_app_inspection = var.deep_app_inspection
  # dynamic_sort_subtable - (optional) is a type of string
  dynamic_sort_subtable = var.dynamic_sort_subtable
  # enforce_default_app_port - (optional) is a type of string
  enforce_default_app_port = var.enforce_default_app_port
  # extended_log - (optional) is a type of string
  extended_log = var.extended_log
  # force_inclusion_ssl_di_sigs - (optional) is a type of string
  force_inclusion_ssl_di_sigs = var.force_inclusion_ssl_di_sigs
  # name - (required) is a type of string
  name = var.name
  # options - (optional) is a type of string
  options = var.options
  # other_application_action - (optional) is a type of string
  other_application_action = var.other_application_action
  # other_application_log - (optional) is a type of string
  other_application_log = var.other_application_log
  # p2p_black_list - (optional) is a type of string
  p2p_black_list = var.p2p_black_list
  # p2p_block_list - (optional) is a type of string
  p2p_block_list = var.p2p_block_list
  # replacemsg_group - (optional) is a type of string
  replacemsg_group = var.replacemsg_group
  # unknown_application_action - (optional) is a type of string
  unknown_application_action = var.unknown_application_action
  # unknown_application_log - (optional) is a type of string
  unknown_application_log = var.unknown_application_log

  dynamic "default_network_services" {
    for_each = var.default_network_services
    content {
      # id - (optional) is a type of number
      id = default_network_services.value["id"]
      # port - (optional) is a type of number
      port = default_network_services.value["port"]
      # services - (optional) is a type of string
      services = default_network_services.value["services"]
      # violation_action - (optional) is a type of string
      violation_action = default_network_services.value["violation_action"]
    }
  }

  dynamic "entries" {
    for_each = var.entries
    content {
      # action - (optional) is a type of string
      action = entries.value["action"]
      # behavior - (optional) is a type of string
      behavior = entries.value["behavior"]
      # id - (optional) is a type of number
      id = entries.value["id"]
      # log - (optional) is a type of string
      log = entries.value["log"]
      # log_packet - (optional) is a type of string
      log_packet = entries.value["log_packet"]
      # per_ip_shaper - (optional) is a type of string
      per_ip_shaper = entries.value["per_ip_shaper"]
      # popularity - (optional) is a type of string
      popularity = entries.value["popularity"]
      # protocols - (optional) is a type of string
      protocols = entries.value["protocols"]
      # quarantine - (optional) is a type of string
      quarantine = entries.value["quarantine"]
      # quarantine_expiry - (optional) is a type of string
      quarantine_expiry = entries.value["quarantine_expiry"]
      # quarantine_log - (optional) is a type of string
      quarantine_log = entries.value["quarantine_log"]
      # rate_count - (optional) is a type of number
      rate_count = entries.value["rate_count"]
      # rate_duration - (optional) is a type of number
      rate_duration = entries.value["rate_duration"]
      # rate_mode - (optional) is a type of string
      rate_mode = entries.value["rate_mode"]
      # rate_track - (optional) is a type of string
      rate_track = entries.value["rate_track"]
      # session_ttl - (optional) is a type of number
      session_ttl = entries.value["session_ttl"]
      # shaper - (optional) is a type of string
      shaper = entries.value["shaper"]
      # shaper_reverse - (optional) is a type of string
      shaper_reverse = entries.value["shaper_reverse"]
      # technology - (optional) is a type of string
      technology = entries.value["technology"]
      # vendor - (optional) is a type of string
      vendor = entries.value["vendor"]

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

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

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

      dynamic "parameters" {
        for_each = entries.value.parameters
        content {
          # id - (optional) is a type of number
          id = parameters.value["id"]
          # value - (optional) is a type of string
          value = parameters.value["value"]

          dynamic "members" {
            for_each = parameters.value.members
            content {
              # id - (optional) is a type of number
              id = members.value["id"]
              # name - (optional) is a type of string
              name = members.value["name"]
              # value - (optional) is a type of string
              value = members.value["value"]
            }
          }

        }
      }

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

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

    }
  }

}

top

Outputs

output "app_replacemsg" {
  description = "returns a string"
  value       = fortios_application_list.this.app_replacemsg
}

output "control_default_network_services" {
  description = "returns a string"
  value       = fortios_application_list.this.control_default_network_services
}

output "deep_app_inspection" {
  description = "returns a string"
  value       = fortios_application_list.this.deep_app_inspection
}

output "enforce_default_app_port" {
  description = "returns a string"
  value       = fortios_application_list.this.enforce_default_app_port
}

output "extended_log" {
  description = "returns a string"
  value       = fortios_application_list.this.extended_log
}

output "force_inclusion_ssl_di_sigs" {
  description = "returns a string"
  value       = fortios_application_list.this.force_inclusion_ssl_di_sigs
}

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

output "options" {
  description = "returns a string"
  value       = fortios_application_list.this.options
}

output "other_application_action" {
  description = "returns a string"
  value       = fortios_application_list.this.other_application_action
}

output "other_application_log" {
  description = "returns a string"
  value       = fortios_application_list.this.other_application_log
}

output "p2p_black_list" {
  description = "returns a string"
  value       = fortios_application_list.this.p2p_black_list
}

output "p2p_block_list" {
  description = "returns a string"
  value       = fortios_application_list.this.p2p_block_list
}

output "replacemsg_group" {
  description = "returns a string"
  value       = fortios_application_list.this.replacemsg_group
}

output "unknown_application_action" {
  description = "returns a string"
  value       = fortios_application_list.this.unknown_application_action
}

output "unknown_application_log" {
  description = "returns a string"
  value       = fortios_application_list.this.unknown_application_log
}

output "this" {
  value = fortios_application_list.this
}

top