back
terraform {
required_providers {
ciscoasa = ">= 1.2.0"
}
}
top
module "ciscoasa_static_route" {
source = "./modules/ciscoasa/r/ciscoasa_static_route"
# gateway - (required) is a type of string
gateway = null
# interface - (required) is a type of string
interface = null
# metric - (optional) is a type of number
metric = null
# network - (required) is a type of string
network = null
# tracked - (optional) is a type of bool
tracked = null
# tunneled - (optional) is a type of bool
tunneled = null
}
top
variable "gateway" {
description = "(required)"
type = string
}
variable "interface" {
description = "(required)"
type = string
}
variable "metric" {
description = "(optional)"
type = number
default = null
}
variable "network" {
description = "(required)"
type = string
}
variable "tracked" {
description = "(optional)"
type = bool
default = null
}
variable "tunneled" {
description = "(optional)"
type = bool
default = null
}
top
resource "ciscoasa_static_route" "this" {
# gateway - (required) is a type of string
gateway = var.gateway
# interface - (required) is a type of string
interface = var.interface
# metric - (optional) is a type of number
metric = var.metric
# network - (required) is a type of string
network = var.network
# tracked - (optional) is a type of bool
tracked = var.tracked
# tunneled - (optional) is a type of bool
tunneled = var.tunneled
}
top
output "id" {
description = "returns a string"
value = ciscoasa_static_route.this.id
}
output "this" {
value = ciscoasa_static_route.this
}
top