Skip to content

Latest commit

 

History

History
83 lines (62 loc) · 1.42 KB

vsphere_resource_pool.md

File metadata and controls

83 lines (62 loc) · 1.42 KB

vsphere_resource_pool

back

Index

Terraform

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

top

Example Usage

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

  # datacenter_id - (optional) is a type of string
  datacenter_id = null
  # name - (optional) is a type of string
  name = null
}

top

Variables

variable "datacenter_id" {
  description = "(optional) - The managed object ID of the datacenter the resource pool is in. This is not required when using ESXi directly, or if there is only one datacenter in your infrastructure."
  type        = string
  default     = null
}

variable "name" {
  description = "(optional) - The name or path of the resource pool."
  type        = string
  default     = null
}

top

Datasource

data "vsphere_resource_pool" "this" {
  # datacenter_id - (optional) is a type of string
  datacenter_id = var.datacenter_id
  # name - (optional) is a type of string
  name = var.name
}

top

Outputs

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

output "this" {
  value = vsphere_resource_pool.this
}

top