Skip to content

Latest commit

 

History

History
204 lines (168 loc) · 3.98 KB

fortios_vpnsslweb_hostchecksoftware.md

File metadata and controls

204 lines (168 loc) · 3.98 KB

fortios_vpnsslweb_hostchecksoftware

back

Index

Terraform

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

top

Example Usage

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

  # dynamic_sort_subtable - (optional) is a type of string
  dynamic_sort_subtable = null
  # guid - (optional) is a type of string
  guid = null
  # name - (optional) is a type of string
  name = null
  # os_type - (optional) is a type of string
  os_type = null
  # type - (optional) is a type of string
  type = null
  # version - (optional) is a type of string
  version = null

  check_item_list = [{
    action = null
    id     = null
    md5s = [{
      id = null
    }]
    target  = null
    type    = null
    version = null
  }]
}

top

Variables

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

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

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

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

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

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

variable "check_item_list" {
  description = "nested block: NestingList, min items: 0, max items: 0"
  type = set(object(
    {
      action = string
      id     = number
      md5s = list(object(
        {
          id = string
        }
      ))
      target  = string
      type    = string
      version = string
    }
  ))
  default = []
}

top

Resource

resource "fortios_vpnsslweb_hostchecksoftware" "this" {
  # dynamic_sort_subtable - (optional) is a type of string
  dynamic_sort_subtable = var.dynamic_sort_subtable
  # guid - (optional) is a type of string
  guid = var.guid
  # name - (optional) is a type of string
  name = var.name
  # os_type - (optional) is a type of string
  os_type = var.os_type
  # type - (optional) is a type of string
  type = var.type
  # version - (optional) is a type of string
  version = var.version

  dynamic "check_item_list" {
    for_each = var.check_item_list
    content {
      # action - (optional) is a type of string
      action = check_item_list.value["action"]
      # id - (optional) is a type of number
      id = check_item_list.value["id"]
      # target - (optional) is a type of string
      target = check_item_list.value["target"]
      # type - (optional) is a type of string
      type = check_item_list.value["type"]
      # version - (optional) is a type of string
      version = check_item_list.value["version"]

      dynamic "md5s" {
        for_each = check_item_list.value.md5s
        content {
          # id - (optional) is a type of string
          id = md5s.value["id"]
        }
      }

    }
  }

}

top

Outputs

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

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

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

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

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

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

output "this" {
  value = fortios_vpnsslweb_hostchecksoftware.this
}

top