Skip to content

Latest commit

 

History

History
122 lines (97 loc) · 2.22 KB

File metadata and controls

122 lines (97 loc) · 2.22 KB

fortios_fmg_system_network_interface

back

Index

Terraform

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

top

Example Usage

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

  # allow_access - (optional) is a type of list of string
  allow_access = []
  # description - (optional) is a type of string
  description = null
  # ip - (optional) is a type of string
  ip = null
  # name - (required) is a type of string
  name = null
  # service_access - (optional) is a type of list of string
  service_access = []
  # status - (optional) is a type of string
  status = null
}

top

Variables

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

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

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

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

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

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

top

Resource

resource "fortios_fmg_system_network_interface" "this" {
  # allow_access - (optional) is a type of list of string
  allow_access = var.allow_access
  # description - (optional) is a type of string
  description = var.description
  # ip - (optional) is a type of string
  ip = var.ip
  # name - (required) is a type of string
  name = var.name
  # service_access - (optional) is a type of list of string
  service_access = var.service_access
  # status - (optional) is a type of string
  status = var.status
}

top

Outputs

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

output "this" {
  value = fortios_fmg_system_network_interface.this
}

top