Skip to content

Latest commit

 

History

History
126 lines (99 loc) · 2.46 KB

fortios_switchcontrollerqos_qospolicy.md

File metadata and controls

126 lines (99 loc) · 2.46 KB

fortios_switchcontrollerqos_qospolicy

back

Index

Terraform

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

top

Example Usage

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

  # default_cos - (required) is a type of number
  default_cos = null
  # name - (required) is a type of string
  name = null
  # queue_policy - (optional) is a type of string
  queue_policy = null
  # trust_dot1p_map - (optional) is a type of string
  trust_dot1p_map = null
  # trust_ip_dscp_map - (optional) is a type of string
  trust_ip_dscp_map = null
}

top

Variables

variable "default_cos" {
  description = "(required)"
  type        = number
}

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

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

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

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

top

Resource

resource "fortios_switchcontrollerqos_qospolicy" "this" {
  # default_cos - (required) is a type of number
  default_cos = var.default_cos
  # name - (required) is a type of string
  name = var.name
  # queue_policy - (optional) is a type of string
  queue_policy = var.queue_policy
  # trust_dot1p_map - (optional) is a type of string
  trust_dot1p_map = var.trust_dot1p_map
  # trust_ip_dscp_map - (optional) is a type of string
  trust_ip_dscp_map = var.trust_ip_dscp_map
}

top

Outputs

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

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

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

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

output "this" {
  value = fortios_switchcontrollerqos_qospolicy.this
}

top