Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 2 KB

File metadata and controls

62 lines (44 loc) · 2 KB
page_title subcategory description
citrix_nutanix_hypervisor_resource_pool Resource - citrix
CVAD
Manages a Nutanix AHV hypervisor resource pool.

citrix_nutanix_hypervisor_resource_pool (Resource)

Manages a Nutanix AHV hypervisor resource pool.

Example Usage

resource "citrix_nutanix_hypervisor_resource_pool" "example-nutanix-hypervisor-resource-pool" {
    name                = "example-nutanix-hypervisor-resource-pool"
    hypervisor          = citrix_nutanix_hypervisor.example-nutanix-hypervisor.id 
    networks    = [
        "<network 1 name>",
        "<network 2 name>"
    ]
}

Schema

Required

  • hypervisor (String) Id of the hypervisor for which the resource pool needs to be created.
  • name (String) Name of the resource pool. Name should be unique across all hypervisors.
  • networks (List of String) Networks for allocating resources.

Optional

  • metadata (Attributes List) Metadata for the Hypervisor Resource Pool. (see below for nested schema)
  • vm_tagging (Boolean) Indicates whether VMs created by provisioning operations should be tagged. Default is true.

Read-Only

  • id (String) GUID identifier of the resource pool.

Nested Schema for metadata

Required:

  • name (String) Metadata name.
  • value (String) Metadata value.

Import

Import is supported using the following syntax:

# Hypervisor Resource Pool can be imported with the format HypervisorId,HypervisorResourcePoolId
terraform import citrix_nutanix_hypervisor_resource_pool.example-nutanix-hypervisor-resource-pool sbf0dc45-5c42-45a0-a15d-a3df4ff5da8c,ce571dd9-1a46-4b85-891c-484423322c53

# Hypervisor Resource Pool can be imported by specifying the GUID
terraform import citrix_nutanix_hypervisor_resource_pool.example-nutanix-hypervisor-resource-pool ce571dd9-1a46-4b85-891c-484423322c53