published on Thursday, Mar 26, 2026 by Pulumi
published on Thursday, Mar 26, 2026 by Pulumi
This data source provides the list of Desktop Pool Desktops in Oracle Cloud Infrastructure Desktops service.
Returns a list of desktops within a given desktop pool. You can limit the results to an availability domain, desktop name, or desktop state. You can limit the number of results returned, sort the results by time or name, and sort in ascending or descending order.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDesktopPoolDesktops = oci.Desktops.getDesktopPoolDesktops({
compartmentId: compartmentId,
desktopPoolId: testDesktopPool.id,
availabilityDomain: desktopPoolDesktopAvailabilityDomain,
displayName: desktopPoolDesktopDisplayName,
id: desktopPoolDesktopId,
state: desktopPoolDesktopState,
});
import pulumi
import pulumi_oci as oci
test_desktop_pool_desktops = oci.Desktops.get_desktop_pool_desktops(compartment_id=compartment_id,
desktop_pool_id=test_desktop_pool["id"],
availability_domain=desktop_pool_desktop_availability_domain,
display_name=desktop_pool_desktop_display_name,
id=desktop_pool_desktop_id,
state=desktop_pool_desktop_state)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/desktops"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := desktops.GetDesktopPoolDesktops(ctx, &desktops.GetDesktopPoolDesktopsArgs{
CompartmentId: compartmentId,
DesktopPoolId: testDesktopPool.Id,
AvailabilityDomain: pulumi.StringRef(desktopPoolDesktopAvailabilityDomain),
DisplayName: pulumi.StringRef(desktopPoolDesktopDisplayName),
Id: pulumi.StringRef(desktopPoolDesktopId),
State: pulumi.StringRef(desktopPoolDesktopState),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testDesktopPoolDesktops = Oci.Desktops.GetDesktopPoolDesktops.Invoke(new()
{
CompartmentId = compartmentId,
DesktopPoolId = testDesktopPool.Id,
AvailabilityDomain = desktopPoolDesktopAvailabilityDomain,
DisplayName = desktopPoolDesktopDisplayName,
Id = desktopPoolDesktopId,
State = desktopPoolDesktopState,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Desktops.DesktopsFunctions;
import com.pulumi.oci.Desktops.inputs.GetDesktopPoolDesktopsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testDesktopPoolDesktops = DesktopsFunctions.getDesktopPoolDesktops(GetDesktopPoolDesktopsArgs.builder()
.compartmentId(compartmentId)
.desktopPoolId(testDesktopPool.id())
.availabilityDomain(desktopPoolDesktopAvailabilityDomain)
.displayName(desktopPoolDesktopDisplayName)
.id(desktopPoolDesktopId)
.state(desktopPoolDesktopState)
.build());
}
}
variables:
testDesktopPoolDesktops:
fn::invoke:
function: oci:Desktops:getDesktopPoolDesktops
arguments:
compartmentId: ${compartmentId}
desktopPoolId: ${testDesktopPool.id}
availabilityDomain: ${desktopPoolDesktopAvailabilityDomain}
displayName: ${desktopPoolDesktopDisplayName}
id: ${desktopPoolDesktopId}
state: ${desktopPoolDesktopState}
Using getDesktopPoolDesktops
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDesktopPoolDesktops(args: GetDesktopPoolDesktopsArgs, opts?: InvokeOptions): Promise<GetDesktopPoolDesktopsResult>
function getDesktopPoolDesktopsOutput(args: GetDesktopPoolDesktopsOutputArgs, opts?: InvokeOptions): Output<GetDesktopPoolDesktopsResult>def get_desktop_pool_desktops(availability_domain: Optional[str] = None,
compartment_id: Optional[str] = None,
desktop_pool_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[GetDesktopPoolDesktopsFilter]] = None,
id: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDesktopPoolDesktopsResult
def get_desktop_pool_desktops_output(availability_domain: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
desktop_pool_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDesktopPoolDesktopsFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDesktopPoolDesktopsResult]func GetDesktopPoolDesktops(ctx *Context, args *GetDesktopPoolDesktopsArgs, opts ...InvokeOption) (*GetDesktopPoolDesktopsResult, error)
func GetDesktopPoolDesktopsOutput(ctx *Context, args *GetDesktopPoolDesktopsOutputArgs, opts ...InvokeOption) GetDesktopPoolDesktopsResultOutput> Note: This function is named GetDesktopPoolDesktops in the Go SDK.
public static class GetDesktopPoolDesktops
{
public static Task<GetDesktopPoolDesktopsResult> InvokeAsync(GetDesktopPoolDesktopsArgs args, InvokeOptions? opts = null)
public static Output<GetDesktopPoolDesktopsResult> Invoke(GetDesktopPoolDesktopsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDesktopPoolDesktopsResult> getDesktopPoolDesktops(GetDesktopPoolDesktopsArgs args, InvokeOptions options)
public static Output<GetDesktopPoolDesktopsResult> getDesktopPoolDesktops(GetDesktopPoolDesktopsArgs args, InvokeOptions options)
fn::invoke:
function: oci:Desktops/getDesktopPoolDesktops:getDesktopPoolDesktops
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The OCID of the compartment of the desktop pool.
- Desktop
Pool stringId - The OCID of the desktop pool.
- Availability
Domain string - The name of the availability domain.
- Display
Name string - A filter to return only results with the given displayName.
- Filters
List<Get
Desktop Pool Desktops Filter> - Id string
- A filter to return only results with the given OCID.
- State string
- A filter to return only results with the given lifecycleState.
- Compartment
Id string - The OCID of the compartment of the desktop pool.
- Desktop
Pool stringId - The OCID of the desktop pool.
- Availability
Domain string - The name of the availability domain.
- Display
Name string - A filter to return only results with the given displayName.
- Filters
[]Get
Desktop Pool Desktops Filter - Id string
- A filter to return only results with the given OCID.
- State string
- A filter to return only results with the given lifecycleState.
- compartment
Id String - The OCID of the compartment of the desktop pool.
- desktop
Pool StringId - The OCID of the desktop pool.
- availability
Domain String - The name of the availability domain.
- display
Name String - A filter to return only results with the given displayName.
- filters
List<Get
Desktop Pool Filter> - id String
- A filter to return only results with the given OCID.
- state String
- A filter to return only results with the given lifecycleState.
- compartment
Id string - The OCID of the compartment of the desktop pool.
- desktop
Pool stringId - The OCID of the desktop pool.
- availability
Domain string - The name of the availability domain.
- display
Name string - A filter to return only results with the given displayName.
- filters
Get
Desktop Pool Desktops Filter[] - id string
- A filter to return only results with the given OCID.
- state string
- A filter to return only results with the given lifecycleState.
- compartment_
id str - The OCID of the compartment of the desktop pool.
- desktop_
pool_ strid - The OCID of the desktop pool.
- availability_
domain str - The name of the availability domain.
- display_
name str - A filter to return only results with the given displayName.
- filters
Sequence[Get
Desktop Pool Desktops Filter] - id str
- A filter to return only results with the given OCID.
- state str
- A filter to return only results with the given lifecycleState.
- compartment
Id String - The OCID of the compartment of the desktop pool.
- desktop
Pool StringId - The OCID of the desktop pool.
- availability
Domain String - The name of the availability domain.
- display
Name String - A filter to return only results with the given displayName.
- filters List<Property Map>
- id String
- A filter to return only results with the given OCID.
- state String
- A filter to return only results with the given lifecycleState.
getDesktopPoolDesktops Result
The following output properties are available:
- Compartment
Id string - Desktop
Pool List<GetDesktop Collections Desktop Pool Desktops Desktop Pool Desktop Collection> - The list of desktop_pool_desktop_collection.
- Desktop
Pool stringId - Availability
Domain string - Display
Name string - Filters
List<Get
Desktop Pool Desktops Filter> - Id string
- State string
- The state of the desktop.
- Compartment
Id string - Desktop
Pool []GetDesktop Collections Desktop Pool Desktops Desktop Pool Desktop Collection - The list of desktop_pool_desktop_collection.
- Desktop
Pool stringId - Availability
Domain string - Display
Name string - Filters
[]Get
Desktop Pool Desktops Filter - Id string
- State string
- The state of the desktop.
- compartment
Id String - desktop
Pool List<GetDesktop Collections Desktop Pool Desktop Pool Desktop Collection> - The list of desktop_pool_desktop_collection.
- desktop
Pool StringId - availability
Domain String - display
Name String - filters
List<Get
Desktop Pool Filter> - id String
- state String
- The state of the desktop.
- compartment
Id string - desktop
Pool GetDesktop Collections Desktop Pool Desktops Desktop Pool Desktop Collection[] - The list of desktop_pool_desktop_collection.
- desktop
Pool stringId - availability
Domain string - display
Name string - filters
Get
Desktop Pool Desktops Filter[] - id string
- state string
- The state of the desktop.
- compartment_
id str - desktop_
pool_ Sequence[Getdesktop_ collections Desktop Pool Desktops Desktop Pool Desktop Collection] - The list of desktop_pool_desktop_collection.
- desktop_
pool_ strid - availability_
domain str - display_
name str - filters
Sequence[Get
Desktop Pool Desktops Filter] - id str
- state str
- The state of the desktop.
- compartment
Id String - desktop
Pool List<Property Map>Desktop Collections - The list of desktop_pool_desktop_collection.
- desktop
Pool StringId - availability
Domain String - display
Name String - filters List<Property Map>
- id String
- state String
- The state of the desktop.
Supporting Types
GetDesktopPoolDesktopsDesktopPoolDesktopCollection
- Items
List<Get
Desktop Pool Desktops Desktop Pool Desktop Collection Item> - A list of desktops.
- Items
[]Get
Desktop Pool Desktops Desktop Pool Desktop Collection Item - A list of desktops.
- items
List<Get
Desktop Pool Desktop Pool Desktop Collection Item> - A list of desktops.
- items
Get
Desktop Pool Desktops Desktop Pool Desktop Collection Item[] - A list of desktops.
- items
Sequence[Get
Desktop Pool Desktops Desktop Pool Desktop Collection Item] - A list of desktops.
- items List<Property Map>
- A list of desktops.
GetDesktopPoolDesktopsDesktopPoolDesktopCollectionItem
- Dictionary<string, string>
- 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
Connections List<GetDesktop Pool Desktops Desktop Pool Desktop Collection Item Desktop Connection> - Provides information about a connection to a desktop, including connect and disconnect time, and client properties.
- Desktop
Id string - The OCID of the desktop.
- Dictionary<string, string>
- 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"} - Images
List<Get
Desktop Pool Desktops Desktop Pool Desktop Collection Item Image> - Provides information about the desktop image.
- Instance
Id string - The OCID of the compute resource used by this desktop.
- Is
Assigned bool - Indicates whether the desktop is assigned to a user.
- State string
- A filter to return only results with the given lifecycleState.
- Time
Created string - The date and time the resource was created.
- User
Name string - The owner of the desktop.
- map[string]string
- 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
Connections []GetDesktop Pool Desktops Desktop Pool Desktop Collection Item Desktop Connection - Provides information about a connection to a desktop, including connect and disconnect time, and client properties.
- Desktop
Id string - The OCID of the desktop.
- map[string]string
- 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"} - Images
[]Get
Desktop Pool Desktops Desktop Pool Desktop Collection Item Image - Provides information about the desktop image.
- Instance
Id string - The OCID of the compute resource used by this desktop.
- Is
Assigned bool - Indicates whether the desktop is assigned to a user.
- State string
- A filter to return only results with the given lifecycleState.
- Time
Created string - The date and time the resource was created.
- User
Name string - The owner of the desktop.
- Map<String,String>
- 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
Connections List<GetDesktop Pool Desktop Pool Desktop Collection Item Desktop Connection> - Provides information about a connection to a desktop, including connect and disconnect time, and client properties.
- desktop
Id String - The OCID of the desktop.
- Map<String,String>
- 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"} - images
List<Get
Desktop Pool Desktop Pool Desktop Collection Item Image> - Provides information about the desktop image.
- instance
Id String - The OCID of the compute resource used by this desktop.
- is
Assigned Boolean - Indicates whether the desktop is assigned to a user.
- state String
- A filter to return only results with the given lifecycleState.
- time
Created String - The date and time the resource was created.
- user
Name String - The owner of the desktop.
- {[key: string]: string}
- 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
Connections GetDesktop Pool Desktops Desktop Pool Desktop Collection Item Desktop Connection[] - Provides information about a connection to a desktop, including connect and disconnect time, and client properties.
- desktop
Id string - The OCID of the desktop.
- {[key: string]: string}
- 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"} - images
Get
Desktop Pool Desktops Desktop Pool Desktop Collection Item Image[] - Provides information about the desktop image.
- instance
Id string - The OCID of the compute resource used by this desktop.
- is
Assigned boolean - Indicates whether the desktop is assigned to a user.
- state string
- A filter to return only results with the given lifecycleState.
- time
Created string - The date and time the resource was created.
- user
Name string - The owner of the desktop.
- Mapping[str, str]
- 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_
connections Sequence[GetDesktop Pool Desktops Desktop Pool Desktop Collection Item Desktop Connection] - Provides information about a connection to a desktop, including connect and disconnect time, and client properties.
- desktop_
id str - The OCID of the desktop.
- Mapping[str, str]
- 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"} - images
Sequence[Get
Desktop Pool Desktops Desktop Pool Desktop Collection Item Image] - Provides information about the desktop image.
- instance_
id str - The OCID of the compute resource used by this desktop.
- is_
assigned bool - Indicates whether the desktop is assigned to a user.
- state str
- A filter to return only results with the given lifecycleState.
- time_
created str - The date and time the resource was created.
- user_
name str - The owner of the desktop.
- Map<String>
- 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
Connections List<Property Map> - Provides information about a connection to a desktop, including connect and disconnect time, and client properties.
- desktop
Id String - The OCID of the desktop.
- Map<String>
- 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"} - images List<Property Map>
- Provides information about the desktop image.
- instance
Id String - The OCID of the compute resource used by this desktop.
- is
Assigned Boolean - Indicates whether the desktop is assigned to a user.
- state String
- A filter to return only results with the given lifecycleState.
- time
Created String - The date and time the resource was created.
- user
Name String - The owner of the desktop.
GetDesktopPoolDesktopsDesktopPoolDesktopCollectionItemDesktopConnection
- Client
Platform string - The platform on which the Secure Desktops client runs.
- Client
Type string - The type of Secure Desktops client connected to a desktop.
- Client
Version string - The version of the Secure Desktops client connected to a desktop, applicable only to the installed client type.
- Last
Actions List<GetDesktop Pool Desktops Desktop Pool Desktop Collection Item Desktop Connection Last Action> - Provides information about actions performed on a desktop, including type and time.
- Next
Actions List<GetDesktop Pool Desktops Desktop Pool Desktop Collection Item Desktop Connection Next Action> - Provides information about actions performed on a desktop, including type and time.
- Time
Connected string - The time when the last connection to a desktop started.
- Time
Disconnected string - The time when the last connection to a desktop ended.
- Client
Platform string - The platform on which the Secure Desktops client runs.
- Client
Type string - The type of Secure Desktops client connected to a desktop.
- Client
Version string - The version of the Secure Desktops client connected to a desktop, applicable only to the installed client type.
- Last
Actions []GetDesktop Pool Desktops Desktop Pool Desktop Collection Item Desktop Connection Last Action - Provides information about actions performed on a desktop, including type and time.
- Next
Actions []GetDesktop Pool Desktops Desktop Pool Desktop Collection Item Desktop Connection Next Action - Provides information about actions performed on a desktop, including type and time.
- Time
Connected string - The time when the last connection to a desktop started.
- Time
Disconnected string - The time when the last connection to a desktop ended.
- client
Platform String - The platform on which the Secure Desktops client runs.
- client
Type String - The type of Secure Desktops client connected to a desktop.
- client
Version String - The version of the Secure Desktops client connected to a desktop, applicable only to the installed client type.
- last
Actions List<GetDesktop Pool Desktop Pool Desktop Collection Item Desktop Connection Last Action> - Provides information about actions performed on a desktop, including type and time.
- next
Actions List<GetDesktop Pool Desktop Pool Desktop Collection Item Desktop Connection Next Action> - Provides information about actions performed on a desktop, including type and time.
- time
Connected String - The time when the last connection to a desktop started.
- time
Disconnected String - The time when the last connection to a desktop ended.
- client
Platform string - The platform on which the Secure Desktops client runs.
- client
Type string - The type of Secure Desktops client connected to a desktop.
- client
Version string - The version of the Secure Desktops client connected to a desktop, applicable only to the installed client type.
- last
Actions GetDesktop Pool Desktops Desktop Pool Desktop Collection Item Desktop Connection Last Action[] - Provides information about actions performed on a desktop, including type and time.
- next
Actions GetDesktop Pool Desktops Desktop Pool Desktop Collection Item Desktop Connection Next Action[] - Provides information about actions performed on a desktop, including type and time.
- time
Connected string - The time when the last connection to a desktop started.
- time
Disconnected string - The time when the last connection to a desktop ended.
- client_
platform str - The platform on which the Secure Desktops client runs.
- client_
type str - The type of Secure Desktops client connected to a desktop.
- client_
version str - The version of the Secure Desktops client connected to a desktop, applicable only to the installed client type.
- last_
actions Sequence[GetDesktop Pool Desktops Desktop Pool Desktop Collection Item Desktop Connection Last Action] - Provides information about actions performed on a desktop, including type and time.
- next_
actions Sequence[GetDesktop Pool Desktops Desktop Pool Desktop Collection Item Desktop Connection Next Action] - Provides information about actions performed on a desktop, including type and time.
- time_
connected str - The time when the last connection to a desktop started.
- time_
disconnected str - The time when the last connection to a desktop ended.
- client
Platform String - The platform on which the Secure Desktops client runs.
- client
Type String - The type of Secure Desktops client connected to a desktop.
- client
Version String - The version of the Secure Desktops client connected to a desktop, applicable only to the installed client type.
- last
Actions List<Property Map> - Provides information about actions performed on a desktop, including type and time.
- next
Actions List<Property Map> - Provides information about actions performed on a desktop, including type and time.
- time
Connected String - The time when the last connection to a desktop started.
- time
Disconnected String - The time when the last connection to a desktop ended.
GetDesktopPoolDesktopsDesktopPoolDesktopCollectionItemDesktopConnectionLastAction
- Action string
- An action performed on a desktop.
- Time
Applied string - The time of an action performed on a desktop.
- Action string
- An action performed on a desktop.
- Time
Applied string - The time of an action performed on a desktop.
- action String
- An action performed on a desktop.
- time
Applied String - The time of an action performed on a desktop.
- action string
- An action performed on a desktop.
- time
Applied string - The time of an action performed on a desktop.
- action str
- An action performed on a desktop.
- time_
applied str - The time of an action performed on a desktop.
- action String
- An action performed on a desktop.
- time
Applied String - The time of an action performed on a desktop.
GetDesktopPoolDesktopsDesktopPoolDesktopCollectionItemDesktopConnectionNextAction
- Action string
- An action performed on a desktop.
- Time
Applied string - The time of an action performed on a desktop.
- Action string
- An action performed on a desktop.
- Time
Applied string - The time of an action performed on a desktop.
- action String
- An action performed on a desktop.
- time
Applied String - The time of an action performed on a desktop.
- action string
- An action performed on a desktop.
- time
Applied string - The time of an action performed on a desktop.
- action str
- An action performed on a desktop.
- time_
applied str - The time of an action performed on a desktop.
- action String
- An action performed on a desktop.
- time
Applied String - The time of an action performed on a desktop.
GetDesktopPoolDesktopsDesktopPoolDesktopCollectionItemImage
- Image
Id string - The OCID of the desktop image.
- Image
Name string - The name of the desktop image.
- Operating
System string - The operating system of the desktop image, e.g. "Oracle Linux", "Windows".
- Image
Id string - The OCID of the desktop image.
- Image
Name string - The name of the desktop image.
- Operating
System string - The operating system of the desktop image, e.g. "Oracle Linux", "Windows".
- image
Id String - The OCID of the desktop image.
- image
Name String - The name of the desktop image.
- operating
System String - The operating system of the desktop image, e.g. "Oracle Linux", "Windows".
- image
Id string - The OCID of the desktop image.
- image
Name string - The name of the desktop image.
- operating
System string - The operating system of the desktop image, e.g. "Oracle Linux", "Windows".
- image_
id str - The OCID of the desktop image.
- image_
name str - The name of the desktop image.
- operating_
system str - The operating system of the desktop image, e.g. "Oracle Linux", "Windows".
- image
Id String - The OCID of the desktop image.
- image
Name String - The name of the desktop image.
- operating
System String - The operating system of the desktop image, e.g. "Oracle Linux", "Windows".
GetDesktopPoolDesktopsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
published on Thursday, Mar 26, 2026 by Pulumi
