Skip to content

Latest commit

 

History

History
155 lines (128 loc) · 3.39 KB

File metadata and controls

155 lines (128 loc) · 3.39 KB

fortios_switchcontrollerqos_queuepolicy

back

Index

Terraform

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

top

Example Usage

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

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

  cos_queue = [{
    description      = null
    drop_policy      = null
    ecn              = null
    max_rate         = null
    max_rate_percent = null
    min_rate         = null
    min_rate_percent = null
    name             = null
    weight           = null
  }]
}

top

Variables

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

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

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

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

variable "cos_queue" {
  description = "nested block: NestingList, min items: 0, max items: 0"
  type = set(object(
    {
      description      = string
      drop_policy      = string
      ecn              = string
      max_rate         = number
      max_rate_percent = number
      min_rate         = number
      min_rate_percent = number
      name             = string
      weight           = number
    }
  ))
  default = []
}

top

Resource

resource "fortios_switchcontrollerqos_queuepolicy" "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
  # rate_by - (required) is a type of string
  rate_by = var.rate_by
  # schedule - (required) is a type of string
  schedule = var.schedule

  dynamic "cos_queue" {
    for_each = var.cos_queue
    content {
      # description - (optional) is a type of string
      description = cos_queue.value["description"]
      # drop_policy - (optional) is a type of string
      drop_policy = cos_queue.value["drop_policy"]
      # ecn - (optional) is a type of string
      ecn = cos_queue.value["ecn"]
      # max_rate - (optional) is a type of number
      max_rate = cos_queue.value["max_rate"]
      # max_rate_percent - (optional) is a type of number
      max_rate_percent = cos_queue.value["max_rate_percent"]
      # min_rate - (optional) is a type of number
      min_rate = cos_queue.value["min_rate"]
      # min_rate_percent - (optional) is a type of number
      min_rate_percent = cos_queue.value["min_rate_percent"]
      # name - (optional) is a type of string
      name = cos_queue.value["name"]
      # weight - (optional) is a type of number
      weight = cos_queue.value["weight"]
    }
  }

}

top

Outputs

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

output "this" {
  value = fortios_switchcontrollerqos_queuepolicy.this
}

top