back
terraform {
required_providers {
fortios = ">= 1.11.0"
}
}
top
module "fortios_json_generic_api" {
source = "./modules/fortios/d/fortios_json_generic_api"
# path - (required) is a type of string
path = null
# specialparams - (optional) is a type of string
specialparams = null
}
top
variable "path" {
description = "(required)"
type = string
}
variable "specialparams" {
description = "(optional)"
type = string
default = null
}
top
data "fortios_json_generic_api" "this" {
# path - (required) is a type of string
path = var.path
# specialparams - (optional) is a type of string
specialparams = var.specialparams
}
top
output "id" {
description = "returns a string"
value = data.fortios_json_generic_api.this.id
}
output "response" {
description = "returns a string"
value = data.fortios_json_generic_api.this.response
}
output "this" {
value = fortios_json_generic_api.this
}
top