Skip to content

Latest commit

 

History

History
116 lines (91 loc) · 1.98 KB

fortios_json_generic_api.md

File metadata and controls

116 lines (91 loc) · 1.98 KB

fortios_json_generic_api

back

Index

Terraform

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

top

Example Usage

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

  # force_recreate - (optional) is a type of string
  force_recreate = null
  # json - (optional) is a type of string
  json = null
  # method - (required) is a type of string
  method = null
  # path - (required) is a type of string
  path = null
  # specialparams - (optional) is a type of string
  specialparams = null
}

top

Variables

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

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

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

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

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

top

Resource

resource "fortios_json_generic_api" "this" {
  # force_recreate - (optional) is a type of string
  force_recreate = var.force_recreate
  # json - (optional) is a type of string
  json = var.json
  # method - (required) is a type of string
  method = var.method
  # path - (required) is a type of string
  path = var.path
  # specialparams - (optional) is a type of string
  specialparams = var.specialparams
}

top

Outputs

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

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

output "this" {
  value = fortios_json_generic_api.this
}

top