Skip to content

Latest commit

 

History

History
92 lines (70 loc) · 1.56 KB

vsphere_host_thumbprint.md

File metadata and controls

92 lines (70 loc) · 1.56 KB

vsphere_host_thumbprint

back

Index

Terraform

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

top

Example Usage

module "vsphere_host_thumbprint" {
  source = "./modules/vsphere/d/vsphere_host_thumbprint"

  # address - (required) is a type of string
  address = null
  # insecure - (optional) is a type of bool
  insecure = null
  # port - (optional) is a type of string
  port = null
}

top

Variables

variable "address" {
  description = "(required) - The address of the ESXi to extract the thumbprint from."
  type        = string
}

variable "insecure" {
  description = "(optional) - Boolean that can be set to true to disable SSL certificate verification."
  type        = bool
  default     = null
}

variable "port" {
  description = "(optional) - The port to connect to on the ESXi host."
  type        = string
  default     = null
}

top

Datasource

data "vsphere_host_thumbprint" "this" {
  # address - (required) is a type of string
  address = var.address
  # insecure - (optional) is a type of bool
  insecure = var.insecure
  # port - (optional) is a type of string
  port = var.port
}

top

Outputs

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

output "this" {
  value = vsphere_host_thumbprint.this
}

top