Data Source: oci_desktops_desktops
This data source provides the list of Desktops in Oracle Cloud Infrastructure Desktops service.
Returns a list of desktops filtered by the specified parameters. You can limit the results to an availability domain, desktop name, desktop OCID, desktop state, pool OCID, or compartment OCID. You can limit the number of results returned, sort the results by time or name, and sort in ascending or descending order.
Example Usage
data "oci_desktops_desktops" "test_desktops" {
#Required
compartment_id = var.compartment_id
#Optional
availability_domain = var.desktop_availability_domain
desktop_pool_id = oci_desktops_desktop_pool.test_desktop_pool.id
display_name = var.desktop_display_name
id = var.desktop_id
state = var.desktop_state
}
Argument Reference
The following arguments are supported:
availability_domain- (Optional) The name of the availability domain.compartment_id- (Required) The OCID of the compartment of the desktop pool.desktop_pool_id- (Optional) The OCID of the desktop pool.display_name- (Optional) A filter to return only results with the given displayName.id- (Optional) A filter to return only results with the given OCID.state- (Optional) A filter to return only results with the given lifecycleState.
Attributes Reference
The following attributes are exported:
desktop_collection- The list of desktop_collection.
Desktop Reference
The following attributes are exported:
defined_tags- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"Operations.CostCenter": "42"}desktop_connection- Provides information about a connection to a desktop, including connect and disconnect time, and client properties.client_platform- The platform on which the Secure Desktops client runs.client_type- The type of Secure Desktops client connected to a desktop.client_version- The version of the Secure Desktops client connected to a desktop, applicable only to the installed client type.last_action- Provides information about actions performed on a desktop, including type and time.action- An action performed on a desktop.time_applied- The time of an action performed on a desktop.
next_action- Provides information about actions performed on a desktop, including type and time.action- An action performed on a desktop.time_applied- The time of an action performed on a desktop.
time_connected- The time when the last connection to a desktop started.time_disconnected- The time when the last connection to a desktop ended.
device_policy- Provides the settings for desktop and client device options, such as audio in and out, client drive mapping, and clipboard access.audio_mode- The audio mode. NONE: No access to the local audio devices is permitted. TODESKTOP: The user may record audio on their desktop. FROMDESKTOP: The user may play audio on their desktop. FULL: The user may play and record audio on their desktop.cdm_mode- The client local drive access mode. NONE: No access to local drives permitted. READONLY: The user may read from local drives on their desktop. FULL: The user may read from and write to their local drives on their desktop.
clipboard_mode- The clipboard mode. NONE: No access to the local clipboard is permitted. TODESKTOP: The clipboard can be used to transfer data to the desktop only. FROMDESKTOP: The clipboard can be used to transfer data from the desktop only. FULL: The clipboard can be used to transfer data to and from the desktop.is_display_enabled- Indicates whether the display is enabled.is_keyboard_enabled- Indicates whether the keyboard is enabled.is_pointer_enabled- Indicates whether the pointer is enabled.is_printing_enabled- Indicates whether printing is enabled.
display_name- A user friendly display name. Avoid entering confidential information.freeform_tags- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:{"Department": "Finance"}id- The OCID of the desktop.pool_id- The OCID of the desktop pool the desktop is a member of.state- The state of the desktop.time_created- The date and time the resource was created.user_name- The owner of the desktop.