Skip to content

Latest commit

 

History

History
280 lines (233 loc) · 6.16 KB

File metadata and controls

280 lines (233 loc) · 6.16 KB

fortios_switchcontroller_vlan

back

Index

Terraform

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

top

Example Usage

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

  # auth - (optional) is a type of string
  auth = null
  # color - (optional) is a type of number
  color = null
  # comments - (optional) is a type of string
  comments = null
  # dynamic_sort_subtable - (optional) is a type of string
  dynamic_sort_subtable = null
  # name - (optional) is a type of string
  name = null
  # portal_message_override_group - (optional) is a type of string
  portal_message_override_group = null
  # radius_server - (optional) is a type of string
  radius_server = null
  # security - (optional) is a type of string
  security = null
  # usergroup - (optional) is a type of string
  usergroup = null
  # vdom - (optional) is a type of string
  vdom = null
  # vlanid - (optional) is a type of number
  vlanid = null

  portal_message_overrides = [{
    auth_disclaimer_page   = null
    auth_login_failed_page = null
    auth_login_page        = null
    auth_reject_page       = null
  }]

  selected_usergroups = [{
    name = null
  }]
}

top

Variables

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

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

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

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

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

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

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

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

variable "portal_message_overrides" {
  description = "nested block: NestingList, min items: 0, max items: 1"
  type = set(object(
    {
      auth_disclaimer_page   = string
      auth_login_failed_page = string
      auth_login_page        = string
      auth_reject_page       = string
    }
  ))
  default = []
}

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

top

Resource

resource "fortios_switchcontroller_vlan" "this" {
  # auth - (optional) is a type of string
  auth = var.auth
  # color - (optional) is a type of number
  color = var.color
  # 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
  # name - (optional) is a type of string
  name = var.name
  # portal_message_override_group - (optional) is a type of string
  portal_message_override_group = var.portal_message_override_group
  # radius_server - (optional) is a type of string
  radius_server = var.radius_server
  # security - (optional) is a type of string
  security = var.security
  # usergroup - (optional) is a type of string
  usergroup = var.usergroup
  # vdom - (optional) is a type of string
  vdom = var.vdom
  # vlanid - (optional) is a type of number
  vlanid = var.vlanid

  dynamic "portal_message_overrides" {
    for_each = var.portal_message_overrides
    content {
      # auth_disclaimer_page - (optional) is a type of string
      auth_disclaimer_page = portal_message_overrides.value["auth_disclaimer_page"]
      # auth_login_failed_page - (optional) is a type of string
      auth_login_failed_page = portal_message_overrides.value["auth_login_failed_page"]
      # auth_login_page - (optional) is a type of string
      auth_login_page = portal_message_overrides.value["auth_login_page"]
      # auth_reject_page - (optional) is a type of string
      auth_reject_page = portal_message_overrides.value["auth_reject_page"]
    }
  }

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

}

top

Outputs

output "auth" {
  description = "returns a string"
  value       = fortios_switchcontroller_vlan.this.auth
}

output "color" {
  description = "returns a number"
  value       = fortios_switchcontroller_vlan.this.color
}

output "comments" {
  description = "returns a string"
  value       = fortios_switchcontroller_vlan.this.comments
}

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

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

output "portal_message_override_group" {
  description = "returns a string"
  value       = fortios_switchcontroller_vlan.this.portal_message_override_group
}

output "radius_server" {
  description = "returns a string"
  value       = fortios_switchcontroller_vlan.this.radius_server
}

output "security" {
  description = "returns a string"
  value       = fortios_switchcontroller_vlan.this.security
}

output "usergroup" {
  description = "returns a string"
  value       = fortios_switchcontroller_vlan.this.usergroup
}

output "vdom" {
  description = "returns a string"
  value       = fortios_switchcontroller_vlan.this.vdom
}

output "vlanid" {
  description = "returns a number"
  value       = fortios_switchcontroller_vlan.this.vlanid
}

output "this" {
  value = fortios_switchcontroller_vlan.this
}

top