Skip to content

Latest commit

 

History

History
120 lines (95 loc) · 2.02 KB

ciscoasa_static_route.md

File metadata and controls

120 lines (95 loc) · 2.02 KB

ciscoasa_static_route

back

Index

Terraform

terraform {
  required_providers {
    ciscoasa = ">= 1.2.0"
  }
}

top

Example Usage

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

Variables

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

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

Outputs

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

output "this" {
  value = ciscoasa_static_route.this
}

top