tfwriter

Terraform HCL code generator.

Download as .zip Download as .tar.gz View on GitHub

avi_pingaccessagent

back

Index

Terraform

terraform {
  required_providers {
    avi = ">= 0.2.3"
  }
}

top

Example Usage

module "avi_pingaccessagent" {
  source = "./modules/avi/r/avi_pingaccessagent"

  # description - (optional) is a type of string
  description = null
  # name - (optional) is a type of string
  name = null
  # pingaccess_pool_ref - (optional) is a type of string
  pingaccess_pool_ref = null
  # properties_file_data - (optional) is a type of string
  properties_file_data = null
  # tenant_ref - (optional) is a type of string
  tenant_ref = null
  # uuid - (optional) is a type of string
  uuid = null

  primary_server = [{
    hostname = null
    ip = [{
      addr = null
      type = null
    }]
    port = null
  }]
}

top

Variables

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

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

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

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

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

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

variable "primary_server" {
  description = "nested block: NestingSet, min items: 0, max items: 0"
  type = set(object(
    {
      hostname = string
      ip = set(object(
        {
          addr = string
          type = string
        }
      ))
      port = number
    }
  ))
  default = []
}

top

Resource

resource "avi_pingaccessagent" "this" {
  # description - (optional) is a type of string
  description = var.description
  # name - (optional) is a type of string
  name = var.name
  # pingaccess_pool_ref - (optional) is a type of string
  pingaccess_pool_ref = var.pingaccess_pool_ref
  # properties_file_data - (optional) is a type of string
  properties_file_data = var.properties_file_data
  # tenant_ref - (optional) is a type of string
  tenant_ref = var.tenant_ref
  # uuid - (optional) is a type of string
  uuid = var.uuid

  dynamic "primary_server" {
    for_each = var.primary_server
    content {
      # hostname - (optional) is a type of string
      hostname = primary_server.value["hostname"]
      # port - (optional) is a type of number
      port = primary_server.value["port"]

      dynamic "ip" {
        for_each = primary_server.value.ip
        content {
          # addr - (required) is a type of string
          addr = ip.value["addr"]
          # type - (required) is a type of string
          type = ip.value["type"]
        }
      }

    }
  }

}

top

Outputs

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

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

output "name" {
  description = "returns a string"
  value       = avi_pingaccessagent.this.name
}

output "pingaccess_pool_ref" {
  description = "returns a string"
  value       = avi_pingaccessagent.this.pingaccess_pool_ref
}

output "properties_file_data" {
  description = "returns a string"
  value       = avi_pingaccessagent.this.properties_file_data
}

output "tenant_ref" {
  description = "returns a string"
  value       = avi_pingaccessagent.this.tenant_ref
}

output "uuid" {
  description = "returns a string"
  value       = avi_pingaccessagent.this.uuid
}

output "this" {
  value = avi_pingaccessagent.this
}

top