Skip to content

Latest commit

 

History

History
117 lines (92 loc) · 2.06 KB

File metadata and controls

117 lines (92 loc) · 2.06 KB

fortios_router_keychain

back

Index

Terraform

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

top

Example Usage

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

  # dynamic_sort_subtable - (optional) is a type of string
  dynamic_sort_subtable = null
  # name - (required) is a type of string
  name = null

  key = [{
    accept_lifetime = null
    id              = null
    key_string      = null
    send_lifetime   = null
  }]
}

top

Variables

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

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

variable "key" {
  description = "nested block: NestingList, min items: 0, max items: 0"
  type = set(object(
    {
      accept_lifetime = string
      id              = number
      key_string      = string
      send_lifetime   = string
    }
  ))
  default = []
}

top

Resource

resource "fortios_router_keychain" "this" {
  # dynamic_sort_subtable - (optional) is a type of string
  dynamic_sort_subtable = var.dynamic_sort_subtable
  # name - (required) is a type of string
  name = var.name

  dynamic "key" {
    for_each = var.key
    content {
      # accept_lifetime - (optional) is a type of string
      accept_lifetime = key.value["accept_lifetime"]
      # id - (optional) is a type of number
      id = key.value["id"]
      # key_string - (optional) is a type of string
      key_string = key.value["key_string"]
      # send_lifetime - (optional) is a type of string
      send_lifetime = key.value["send_lifetime"]
    }
  }

}

top

Outputs

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

output "this" {
  value = fortios_router_keychain.this
}

top