oci_desktops_desktop_pool

This resource provides the Desktop Pool resource in Oracle Cloud Infrastructure Desktops service.

Creates a desktop pool with the given configuration parameters.

Example Usage

resource "oci_desktops_desktop_pool" "test_desktop_pool" {
	#Required
	are_privileged_users = var.desktop_pool_are_privileged_users
	availability_domain = var.desktop_pool_availability_domain
	availability_policy {
		#Required
		start_schedule {
			#Required
			cron_expression = "0 10 8 ? * 2"
			timezone = "America/Denver"
		}
		stop_schedule {
			#Required
			cron_expression = "0 20 18 ? * 6"
			timezone = "America/Denver"
		}
	}
	compartment_id = var.compartment_id
	contact_details = var.desktop_pool_contact_details
	device_policy {
		#Required
		audio_mode = var.desktop_pool_device_policy_audio_mode
		cdm_mode = var.desktop_pool_device_policy_cdm_mode
		clipboard_mode = var.desktop_pool_device_policy_clipboard_mode
		is_display_enabled = var.desktop_pool_device_policy_is_display_enabled
		is_keyboard_enabled = var.desktop_pool_device_policy_is_keyboard_enabled
		is_pointer_enabled = var.desktop_pool_device_policy_is_pointer_enabled
		is_printing_enabled = var.desktop_pool_device_policy_is_printing_enabled
	}
	display_name = var.desktop_pool_display_name
	image {
		#Required
		image_id = oci_core_image.test_image.id
		image_name = var.desktop_pool_image_image_name
	}
	is_storage_enabled = var.desktop_pool_is_storage_enabled
	maximum_size = var.desktop_pool_maximum_size
	network_configuration {
		#Required
		subnet_id = oci_core_subnet.test_subnet.id
		vcn_id = oci_core_vcn.test_vcn.id
	}
	shape_name = "VM.Standard.E4.Flex"
	standby_size = var.desktop_pool_standby_size
	storage_backup_policy_id = "ocid1.volumebackuppolicy.oc1.xxxxyyyyyzzzz"
	storage_size_in_gbs = var.desktop_pool_storage_size_in_gbs

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.desktop_pool_description
	freeform_tags = {"Department"= "Finance"}
	nsg_ids = var.desktop_pool_nsg_ids
	time_start_scheduled = var.desktop_pool_time_start_scheduled
	time_stop_scheduled = var.desktop_pool_time_stop_scheduled
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Desktop Pool * update - (Defaults to 20 minutes), when updating the Desktop Pool * delete - (Defaults to 20 minutes), when destroying the Desktop Pool

Import

DesktopPools can be imported using the id, e.g.

$ terraform import oci_desktops_desktop_pool.test_desktop_pool "id"