Skip to content

Latest commit

 

History

History
86 lines (64 loc) · 1.3 KB

vsphere_tag.md

File metadata and controls

86 lines (64 loc) · 1.3 KB

vsphere_tag

back

Index

Terraform

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

top

Example Usage

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

  # category_id - (required) is a type of string
  category_id = null
  # name - (required) is a type of string
  name = null
}

top

Variables

variable "category_id" {
  description = "(required) - The unique identifier of the parent category for this tag."
  type        = string
}

variable "name" {
  description = "(required) - The display name of the tag."
  type        = string
}

top

Datasource

data "vsphere_tag" "this" {
  # category_id - (required) is a type of string
  category_id = var.category_id
  # name - (required) is a type of string
  name = var.name
}

top

Outputs

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

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

output "this" {
  value = vsphere_tag.this
}

top