back
terraform {
required_providers {
vsphere = ">= 1.25.0"
}
}
top
module "vsphere_custom_attribute" {
source = "./modules/vsphere/r/vsphere_custom_attribute"
# managed_object_type - (optional) is a type of string
managed_object_type = null
# name - (required) is a type of string
name = null
}
top
variable "managed_object_type" {
description = "(optional) - Object type for which the custom attribute is valid. If not specified, the attribute is valid for all managed object types."
type = string
default = null
}
variable "name" {
description = "(required) - The display name of the custom attribute."
type = string
}
top
resource "vsphere_custom_attribute" "this" {
# managed_object_type - (optional) is a type of string
managed_object_type = var.managed_object_type
# name - (required) is a type of string
name = var.name
}
top
output "id" {
description = "returns a string"
value = vsphere_custom_attribute.this.id
}
output "this" {
value = vsphere_custom_attribute.this
}
top