Skip to content

Latest commit

 

History

History
68 lines (50 loc) · 2.29 KB

File metadata and controls

68 lines (50 loc) · 2.29 KB
page_title subcategory description
citrix_gcp_hypervisor_resource_pool Resource - citrix
CVAD
Manages a GCP hypervisor resource pool.

citrix_gcp_hypervisor_resource_pool (Resource)

Manages a GCP hypervisor resource pool.

Example Usage

resource "citrix_gcp_hypervisor_resource_pool" "example-gcp-hypervisor-resource-pool" {
    name                = "example-gcp-hypervisor-resource-pool"
    hypervisor          = citrix_gcp_hypervisor.example-gcp-hypervisor.id
    project_name       = "10000-example-gcp-project"
    region             = "us-east1"
    subnets             = [
        "us-east1",
    ]
    vpc    = "<VPC 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.
  • project_name (String) GCP Project name.
  • region (String) Cloud Region where the virtual network sits in.
  • subnets (List of String) Subnets to allocate VDAs within the virtual network.
  • vpc (String) Name of the cloud virtual network.

Optional

  • metadata (Attributes List) Metadata for the Hypervisor Resource Pool. (see below for nested schema)
  • shared_vpc (Boolean) Indicate whether the GCP Virtual Private Cloud is a shared VPC.
  • 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_gcp_hypervisor_resource_pool.example-gcp-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_gcp_hypervisor_resource_pool.example-gcp-hypervisor-resource-pool ce571dd9-1a46-4b85-891c-484423322c53