Skip to content

Latest commit

 

History

History
91 lines (69 loc) · 1.52 KB

vsphere_tag.md

File metadata and controls

91 lines (69 loc) · 1.52 KB

vsphere_tag

back

Index

Terraform

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

top

Example Usage

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

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

top

Variables

variable "category_id" {
  description = "(required) - The unique identifier of the parent category in which this tag will be created."
  type        = string
}

variable "description" {
  description = "(optional) - The description of the tag."
  type        = string
  default     = null
}

variable "name" {
  description = "(required) - The display name of the tag. The name must be unique within its category."
  type        = string
}

top

Resource

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

top

Outputs

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

output "this" {
  value = vsphere_tag.this
}

top