back
terraform {
required_providers {
fortios = ">= 1.11.0"
}
}
top
module "fortios_user_peergrp" {
source = "./modules/fortios/r/fortios_user_peergrp"
# dynamic_sort_subtable - (optional) is a type of string
dynamic_sort_subtable = null
# name - (optional) is a type of string
name = null
member = [{
name = null
}]
}
top
variable "dynamic_sort_subtable" {
description = "(optional)"
type = string
default = null
}
variable "name" {
description = "(optional)"
type = string
default = null
}
variable "member" {
description = "nested block: NestingList, min items: 0, max items: 0"
type = set(object(
{
name = string
}
))
default = []
}
top
resource "fortios_user_peergrp" "this" {
# 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
dynamic "member" {
for_each = var.member
content {
# name - (optional) is a type of string
name = member.value["name"]
}
}
}
top
output "id" {
description = "returns a string"
value = fortios_user_peergrp.this.id
}
output "name" {
description = "returns a string"
value = fortios_user_peergrp.this.name
}
output "this" {
value = fortios_user_peergrp.this
}
top