Skip to content

Latest commit

 

History

History
102 lines (78 loc) · 1.66 KB

fortios_system_setting_ntp.md

File metadata and controls

102 lines (78 loc) · 1.66 KB

fortios_system_setting_ntp

back

Index

Terraform

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

top

Example Usage

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

  # ntpserver - (optional) is a type of list of string
  ntpserver = []
  # ntpsync - (optional) is a type of string
  ntpsync = null
  # type - (required) is a type of string
  type = null
}

top

Variables

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

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

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

top

Resource

resource "fortios_system_setting_ntp" "this" {
  # ntpserver - (optional) is a type of list of string
  ntpserver = var.ntpserver
  # ntpsync - (optional) is a type of string
  ntpsync = var.ntpsync
  # type - (required) is a type of string
  type = var.type
}

top

Outputs

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

output "ntpserver" {
  description = "returns a list of string"
  value       = fortios_system_setting_ntp.this.ntpserver
}

output "ntpsync" {
  description = "returns a string"
  value       = fortios_system_setting_ntp.this.ntpsync
}

output "this" {
  value = fortios_system_setting_ntp.this
}

top