Skip to content

Latest commit

 

History

History
247 lines (203 loc) · 4.61 KB

fortios_firewall_localinpolicy.md

File metadata and controls

247 lines (203 loc) · 4.61 KB

fortios_firewall_localinpolicy

back

Index

Terraform

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

top

Example Usage

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

  # action - (optional) is a type of string
  action = null
  # comments - (optional) is a type of string
  comments = null
  # dynamic_sort_subtable - (optional) is a type of string
  dynamic_sort_subtable = null
  # ha_mgmt_intf_only - (optional) is a type of string
  ha_mgmt_intf_only = null
  # intf - (optional) is a type of string
  intf = null
  # policyid - (optional) is a type of number
  policyid = null
  # schedule - (required) is a type of string
  schedule = null
  # status - (optional) is a type of string
  status = null
  # uuid - (optional) is a type of string
  uuid = null

  dstaddr = [{
    name = null
  }]

  service = [{
    name = null
  }]

  srcaddr = [{
    name = null
  }]
}

top

Variables

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

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

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

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

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

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

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

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

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

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

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

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

top

Resource

resource "fortios_firewall_localinpolicy" "this" {
  # action - (optional) is a type of string
  action = var.action
  # 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
  # ha_mgmt_intf_only - (optional) is a type of string
  ha_mgmt_intf_only = var.ha_mgmt_intf_only
  # intf - (optional) is a type of string
  intf = var.intf
  # policyid - (optional) is a type of number
  policyid = var.policyid
  # schedule - (required) is a type of string
  schedule = var.schedule
  # status - (optional) is a type of string
  status = var.status
  # uuid - (optional) is a type of string
  uuid = var.uuid

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

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

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

}

top

Outputs

output "action" {
  description = "returns a string"
  value       = fortios_firewall_localinpolicy.this.action
}

output "ha_mgmt_intf_only" {
  description = "returns a string"
  value       = fortios_firewall_localinpolicy.this.ha_mgmt_intf_only
}

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

output "intf" {
  description = "returns a string"
  value       = fortios_firewall_localinpolicy.this.intf
}

output "policyid" {
  description = "returns a number"
  value       = fortios_firewall_localinpolicy.this.policyid
}

output "status" {
  description = "returns a string"
  value       = fortios_firewall_localinpolicy.this.status
}

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

output "this" {
  value = fortios_firewall_localinpolicy.this
}

top