Skip to content

Latest commit

 

History

History
141 lines (111 loc) · 2.52 KB

fortios_system_automationdestination.md

File metadata and controls

141 lines (111 loc) · 2.52 KB

fortios_system_automationdestination

back

Index

Terraform

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

top

Example Usage

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

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

  destination = [{
    name = null
  }]
}

top

Variables

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

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

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

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

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

top

Resource

resource "fortios_system_automationdestination" "this" {
  # dynamic_sort_subtable - (optional) is a type of string
  dynamic_sort_subtable = var.dynamic_sort_subtable
  # ha_group_id - (optional) is a type of number
  ha_group_id = var.ha_group_id
  # name - (optional) is a type of string
  name = var.name
  # type - (optional) is a type of string
  type = var.type

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

}

top

Outputs

output "ha_group_id" {
  description = "returns a number"
  value       = fortios_system_automationdestination.this.ha_group_id
}

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

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

output "type" {
  description = "returns a string"
  value       = fortios_system_automationdestination.this.type
}

output "this" {
  value = fortios_system_automationdestination.this
}

top