tfwriter

Terraform HCL code generator.

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

avi_controllerportalregistration

back

Index

Terraform

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

top

Example Usage

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

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

  asset = [{
    asset_id = null
  }]

  portal_auth = [{
    access_token = null
    instance_url = null
    jwt_token    = null
  }]
}

top

Variables

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

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

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

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

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

top

Resource

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

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

  dynamic "portal_auth" {
    for_each = var.portal_auth
    content {
      # access_token - (optional) is a type of string
      access_token = portal_auth.value["access_token"]
      # instance_url - (optional) is a type of string
      instance_url = portal_auth.value["instance_url"]
      # jwt_token - (optional) is a type of string
      jwt_token = portal_auth.value["jwt_token"]
    }
  }

}

top

Outputs

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

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

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

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

output "this" {
  value = avi_controllerportalregistration.this
}

top