Skip to content

Latest commit

 

History

History
82 lines (61 loc) · 1.4 KB

vsphere_custom_attribute.md

File metadata and controls

82 lines (61 loc) · 1.4 KB

vsphere_custom_attribute

back

Index

Terraform

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

top

Example Usage

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

Variables

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

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

Outputs

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

output "this" {
  value = vsphere_custom_attribute.this
}

top