Skip to content

Latest commit

 

History

History
167 lines (135 loc) · 3.19 KB

File metadata and controls

167 lines (135 loc) · 3.19 KB

fortios_user_domaincontroller

back

Index

Terraform

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

top

Example Usage

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

  # domain_name - (optional) is a type of string
  domain_name = null
  # dynamic_sort_subtable - (optional) is a type of string
  dynamic_sort_subtable = null
  # ip_address - (required) is a type of string
  ip_address = null
  # ldap_server - (required) is a type of string
  ldap_server = null
  # name - (optional) is a type of string
  name = null
  # port - (optional) is a type of number
  port = null

  extra_server = [{
    id         = null
    ip_address = null
    port       = null
  }]
}

top

Variables

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

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

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

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

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

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

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

top

Resource

resource "fortios_user_domaincontroller" "this" {
  # domain_name - (optional) is a type of string
  domain_name = var.domain_name
  # dynamic_sort_subtable - (optional) is a type of string
  dynamic_sort_subtable = var.dynamic_sort_subtable
  # ip_address - (required) is a type of string
  ip_address = var.ip_address
  # ldap_server - (required) is a type of string
  ldap_server = var.ldap_server
  # name - (optional) is a type of string
  name = var.name
  # port - (optional) is a type of number
  port = var.port

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

}

top

Outputs

output "domain_name" {
  description = "returns a string"
  value       = fortios_user_domaincontroller.this.domain_name
}

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

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

output "port" {
  description = "returns a number"
  value       = fortios_user_domaincontroller.this.port
}

output "this" {
  value = fortios_user_domaincontroller.this
}

top