back
terraform {
required_providers {
vsphere = ">= 1.25.0"
}
}
top
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
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
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
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