Skip to content

Latest commit

 

History

History
84 lines (61 loc) · 3.42 KB

File metadata and controls

84 lines (61 loc) · 3.42 KB
page_title subcategory description
citrix_zone Resource - citrix
CVAD
Manages a zone. ~> Please Note For Citrix Cloud Customer, Citrix Cloud Resource Location permissions are required to manage DaaS Zones.

citrix_zone (Resource)

Manages a zone.

~> Please Note For Citrix Cloud Customer, Citrix Cloud Resource Location permissions are required to manage DaaS Zones.

Zone For Citrix Cloud Customers

  • For Citrix Cloud customers, Zones and Cloud Connectors are managed only by Citrix Cloud. Ensure you have a resource location created either manually or using citrix_cloud_resource_location in terraform. For more information regarding Citrix Cloud Resource Location click here.
  • Use resource_location_id instead of name to create a cloud zone resource via Terraform.
  • If the zone from the resource location specified in resource_location_id has description, please make sure that the description field matches the description of the existing zone.
  • If a zone is used for On-Premises Hypervisors, it is required to have cloud connectors deployed in it.
  • If a zone is used for MCS Domain Joined Machine Catalogs, it is required to have cloud connectors deployed in it.

Example Usage

# Example for On-Premises Zone
resource "citrix_zone" "example-onpremises-zone" {
    name                = "example-zone"
    description         = "zone example"
    metadata            = [
        {
            name    = "key1"
            value   = "value1"
        }
    ]
}

# Example for Cloud Zone
resource "citrix_cloud_resource_location" "example-resource-location" {
    name = "example-resource-location"
}

resource "citrix_zone" "example-cloud-zone" {
    resource_location_id = citrix_cloud_resource_location.example-resource-location.id
}

Schema

Optional

  • description (String) Description of the zone.

-> Note For Citrix Cloud customer, ensure this matches the description of the existing zone behind the resource_location_id that needs to be used.

-> Note For Citrix Cloud Customer, name is not allowed to be used for creating zone and is computed only. Use resource_location_id to create zone Instead.

  • resource_location_id (String) GUID identifier off the resource location the zone belongs to. Only applies to Citrix Cloud customers.

-> Note When using resource_location_id, ensure that the resource location is already created, or the value must be a reference to a citrix_cloud_resource_location's id property.

Read-Only

  • id (String) GUID identifier of the zone.

Nested Schema for metadata

Required:

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

Import

Import is supported using the following syntax:

# Zone can be imported by specifying the GUID
terraform import citrix_zone.example-zone 06e5981e-dbaf-48db-b134-245fca2dc672