Skip to content

Latest commit

 

History

History
136 lines (109 loc) · 2.62 KB

fortios_switchcontrollerqos_ipdscpmap.md

File metadata and controls

136 lines (109 loc) · 2.62 KB

fortios_switchcontrollerqos_ipdscpmap

back

Index

Terraform

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

top

Example Usage

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

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

  map = [{
    cos_queue     = null
    diffserv      = null
    ip_precedence = null
    name          = null
    value         = null
  }]
}

top

Variables

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

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

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

variable "map" {
  description = "nested block: NestingList, min items: 0, max items: 0"
  type = set(object(
    {
      cos_queue     = number
      diffserv      = string
      ip_precedence = string
      name          = string
      value         = string
    }
  ))
  default = []
}

top

Resource

resource "fortios_switchcontrollerqos_ipdscpmap" "this" {
  # description - (optional) is a type of string
  description = var.description
  # 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 "map" {
    for_each = var.map
    content {
      # cos_queue - (optional) is a type of number
      cos_queue = map.value["cos_queue"]
      # diffserv - (optional) is a type of string
      diffserv = map.value["diffserv"]
      # ip_precedence - (optional) is a type of string
      ip_precedence = map.value["ip_precedence"]
      # name - (optional) is a type of string
      name = map.value["name"]
      # value - (optional) is a type of string
      value = map.value["value"]
    }
  }

}

top

Outputs

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

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

output "this" {
  value = fortios_switchcontrollerqos_ipdscpmap.this
}

top