Skip to content

Latest commit

 

History

History
102 lines (77 loc) · 1.56 KB

File metadata and controls

102 lines (77 loc) · 1.56 KB

vsphere_license

back

Index

Terraform

terraform {
  required_providers {
    vsphere = ">= 1.25.0"
  }
}

top

Example Usage

module "vsphere_license" {
  source = "./modules/vsphere/r/vsphere_license"

  # labels - (optional) is a type of map of string
  labels = {}
  # license_key - (required) is a type of string
  license_key = null
}

top

Variables

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

variable "license_key" {
  description = "(required)"
  type        = string
}

top

Resource

resource "vsphere_license" "this" {
  # labels - (optional) is a type of map of string
  labels = var.labels
  # license_key - (required) is a type of string
  license_key = var.license_key
}

top

Outputs

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

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

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

output "total" {
  description = "returns a number"
  value       = vsphere_license.this.total
}

output "used" {
  description = "returns a number"
  value       = vsphere_license.this.used
}

output "this" {
  value = vsphere_license.this
}

top