Skip to content

Latest commit

 

History

History
138 lines (109 loc) · 2.83 KB

nsxt_logical_router_link_port_on_tier1.md

File metadata and controls

138 lines (109 loc) · 2.83 KB

nsxt_logical_router_link_port_on_tier1

back

Index

Terraform

terraform {
  required_providers {
    nsxt = ">= 3.1.1"
  }
}

top

Example Usage

module "nsxt_logical_router_link_port_on_tier1" {
  source = "./modules/nsxt/r/nsxt_logical_router_link_port_on_tier1"

  # description - (optional) is a type of string
  description = null
  # display_name - (optional) is a type of string
  display_name = null
  # linked_logical_router_port_id - (required) is a type of string
  linked_logical_router_port_id = null
  # logical_router_id - (required) is a type of string
  logical_router_id = null

  tag = [{
    scope = null
    tag   = null
  }]
}

top

Variables

variable "description" {
  description = "(optional) - Description of this resource"
  type        = string
  default     = null
}

variable "display_name" {
  description = "(optional) - The display name of this resource. Defaults to ID if not set"
  type        = string
  default     = null
}

variable "linked_logical_router_port_id" {
  description = "(required) - Identifier for port on logical router to connect to"
  type        = string
}

variable "logical_router_id" {
  description = "(required) - Identifier for logical router on which this port is created"
  type        = string
}

variable "tag" {
  description = "nested block: NestingSet, min items: 0, max items: 0"
  type = set(object(
    {
      scope = string
      tag   = string
    }
  ))
  default = []
}

top

Resource

resource "nsxt_logical_router_link_port_on_tier1" "this" {
  # description - (optional) is a type of string
  description = var.description
  # display_name - (optional) is a type of string
  display_name = var.display_name
  # linked_logical_router_port_id - (required) is a type of string
  linked_logical_router_port_id = var.linked_logical_router_port_id
  # logical_router_id - (required) is a type of string
  logical_router_id = var.logical_router_id

  dynamic "tag" {
    for_each = var.tag
    content {
      # scope - (optional) is a type of string
      scope = tag.value["scope"]
      # tag - (optional) is a type of string
      tag = tag.value["tag"]
    }
  }

}

top

Outputs

output "display_name" {
  description = "returns a string"
  value       = nsxt_logical_router_link_port_on_tier1.this.display_name
}

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

output "revision" {
  description = "returns a number"
  value       = nsxt_logical_router_link_port_on_tier1.this.revision
}

output "this" {
  value = nsxt_logical_router_link_port_on_tier1.this
}

top