Skip to content

Latest commit

 

History

History
100 lines (77 loc) · 1.64 KB

bigip_net_selfip.md

File metadata and controls

100 lines (77 loc) · 1.64 KB

bigip_net_selfip

back

Index

Terraform

terraform {
  required_providers {
    bigip = ">= 1.8.0"
  }
}

top

Example Usage

module "bigip_net_selfip" {
  source = "./modules/bigip/r/bigip_net_selfip"

  # ip - (required) is a type of string
  ip = null
  # name - (required) is a type of string
  name = null
  # traffic_group - (optional) is a type of string
  traffic_group = null
  # vlan - (required) is a type of string
  vlan = null
}

top

Variables

variable "ip" {
  description = "(required) - SelfIP IP address"
  type        = string
}

variable "name" {
  description = "(required) - Name of the SelfIP"
  type        = string
}

variable "traffic_group" {
  description = "(optional) - Name of the traffic group, defaults to traffic-group-local-only if not specified"
  type        = string
  default     = null
}

variable "vlan" {
  description = "(required) - Name of the vlan"
  type        = string
}

top

Resource

resource "bigip_net_selfip" "this" {
  # ip - (required) is a type of string
  ip = var.ip
  # name - (required) is a type of string
  name = var.name
  # traffic_group - (optional) is a type of string
  traffic_group = var.traffic_group
  # vlan - (required) is a type of string
  vlan = var.vlan
}

top

Outputs

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

output "this" {
  value = bigip_net_selfip.this
}

top