Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Desktops.getDesktop
Explore with Pulumi AI
This data source provides details about a specific Desktop resource in Oracle Cloud Infrastructure Desktops service.
Provides information about the desktop with the specified OCID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDesktop = oci.Desktops.getDesktop({
desktopId: testDesktopOciDesktopsDesktop.id,
});
import pulumi
import pulumi_oci as oci
test_desktop = oci.Desktops.get_desktop(desktop_id=test_desktop_oci_desktops_desktop["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Desktops"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Desktops.GetDesktop(ctx, &desktops.GetDesktopArgs{
DesktopId: testDesktopOciDesktopsDesktop.Id,
}, 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 testDesktop = Oci.Desktops.GetDesktop.Invoke(new()
{
DesktopId = testDesktopOciDesktopsDesktop.Id,
});
});
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.GetDesktopArgs;
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 testDesktop = DesktopsFunctions.getDesktop(GetDesktopArgs.builder()
.desktopId(testDesktopOciDesktopsDesktop.id())
.build());
}
}
variables:
testDesktop:
fn::invoke:
Function: oci:Desktops:getDesktop
Arguments:
desktopId: ${testDesktopOciDesktopsDesktop.id}
Using getDesktop
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 getDesktop(args: GetDesktopArgs, opts?: InvokeOptions): Promise<GetDesktopResult>
function getDesktopOutput(args: GetDesktopOutputArgs, opts?: InvokeOptions): Output<GetDesktopResult>
def get_desktop(desktop_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDesktopResult
def get_desktop_output(desktop_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDesktopResult]
func GetDesktop(ctx *Context, args *GetDesktopArgs, opts ...InvokeOption) (*GetDesktopResult, error)
func GetDesktopOutput(ctx *Context, args *GetDesktopOutputArgs, opts ...InvokeOption) GetDesktopResultOutput
> Note: This function is named GetDesktop
in the Go SDK.
public static class GetDesktop
{
public static Task<GetDesktopResult> InvokeAsync(GetDesktopArgs args, InvokeOptions? opts = null)
public static Output<GetDesktopResult> Invoke(GetDesktopInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDesktopResult> getDesktop(GetDesktopArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Desktops/getDesktop:getDesktop
arguments:
# arguments dictionary
The following arguments are supported:
- Desktop
Id string - The OCID of the desktop.
- Desktop
Id string - The OCID of the desktop.
- desktop
Id String - The OCID of the desktop.
- desktop
Id string - The OCID of the desktop.
- desktop_
id str - The OCID of the desktop.
- desktop
Id String - The OCID of the desktop.
getDesktop Result
The following output properties are available:
- 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
Id string - Device
Policies List<GetDesktop Device Policy> - Provides the settings for desktop and client device options, such as audio in and out, client drive mapping, and clipboard access.
- Display
Name string - A user friendly display name. Avoid entering confidential information.
- 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"}
- Hosting
Options List<GetDesktop Hosting Option> - Provides information about where a desktop is hosted.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pool
Id string - The OCID of the desktop pool the desktop is a member of.
- State string
- The state of the desktop.
- 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
Id string - Device
Policies []GetDesktop Device Policy - Provides the settings for desktop and client device options, such as audio in and out, client drive mapping, and clipboard access.
- Display
Name string - A user friendly display name. Avoid entering confidential information.
- 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"}
- Hosting
Options []GetDesktop Hosting Option - Provides information about where a desktop is hosted.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pool
Id string - The OCID of the desktop pool the desktop is a member of.
- State string
- The state of the desktop.
- 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
Id String - device
Policies List<GetDesktop Device Policy> - Provides the settings for desktop and client device options, such as audio in and out, client drive mapping, and clipboard access.
- display
Name String - A user friendly display name. Avoid entering confidential information.
- 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"}
- hosting
Options List<GetDesktop Hosting Option> - Provides information about where a desktop is hosted.
- id String
- The provider-assigned unique ID for this managed resource.
- pool
Id String - The OCID of the desktop pool the desktop is a member of.
- state String
- The state of the desktop.
- 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
Id string - device
Policies GetDesktop Device Policy[] - Provides the settings for desktop and client device options, such as audio in and out, client drive mapping, and clipboard access.
- display
Name string - A user friendly display name. Avoid entering confidential information.
- {[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"}
- hosting
Options GetDesktop Hosting Option[] - Provides information about where a desktop is hosted.
- id string
- The provider-assigned unique ID for this managed resource.
- pool
Id string - The OCID of the desktop pool the desktop is a member of.
- state string
- The state of the desktop.
- 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_
id str - device_
policies Sequence[desktops.Get Desktop Device Policy] - Provides the settings for desktop and client device options, such as audio in and out, client drive mapping, and clipboard access.
- display_
name str - A user friendly display name. Avoid entering confidential information.
- 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"}
- hosting_
options Sequence[desktops.Get Desktop Hosting Option] - Provides information about where a desktop is hosted.
- id str
- The provider-assigned unique ID for this managed resource.
- pool_
id str - The OCID of the desktop pool the desktop is a member of.
- state str
- The state of the desktop.
- 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
Id String - device
Policies List<Property Map> - Provides the settings for desktop and client device options, such as audio in and out, client drive mapping, and clipboard access.
- display
Name String - A user friendly display name. Avoid entering confidential information.
- 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"}
- hosting
Options List<Property Map> - Provides information about where a desktop is hosted.
- id String
- The provider-assigned unique ID for this managed resource.
- pool
Id String - The OCID of the desktop pool the desktop is a member of.
- state String
- The state of the desktop.
- time
Created String - The date and time the resource was created.
- user
Name String - The owner of the desktop.
Supporting Types
GetDesktopDevicePolicy
- Audio
Mode string - 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 string - 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 string - 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 boolEnabled - Indicates whether the display is enabled.
- Is
Keyboard boolEnabled - Indicates whether the keyboard is enabled.
- Is
Pointer boolEnabled - Indicates whether the pointer is enabled.
- Is
Printing boolEnabled - Indicates whether printing is enabled.
- Audio
Mode string - 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 string - 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 string - 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 boolEnabled - Indicates whether the display is enabled.
- Is
Keyboard boolEnabled - Indicates whether the keyboard is enabled.
- Is
Pointer boolEnabled - Indicates whether the pointer is enabled.
- Is
Printing boolEnabled - Indicates whether printing is enabled.
- audio
Mode String - 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 String - 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 String - 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 BooleanEnabled - Indicates whether the display is enabled.
- is
Keyboard BooleanEnabled - Indicates whether the keyboard is enabled.
- is
Pointer BooleanEnabled - Indicates whether the pointer is enabled.
- is
Printing BooleanEnabled - Indicates whether printing is enabled.
- audio
Mode string - 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 string - 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 string - 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 booleanEnabled - Indicates whether the display is enabled.
- is
Keyboard booleanEnabled - Indicates whether the keyboard is enabled.
- is
Pointer booleanEnabled - Indicates whether the pointer is enabled.
- is
Printing booleanEnabled - Indicates whether printing is enabled.
- audio_
mode str - 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 str - 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 str - 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_ boolenabled - Indicates whether the display is enabled.
- is_
keyboard_ boolenabled - Indicates whether the keyboard is enabled.
- is_
pointer_ boolenabled - Indicates whether the pointer is enabled.
- is_
printing_ boolenabled - Indicates whether printing is enabled.
- audio
Mode String - 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 String - 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 String - 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 BooleanEnabled - Indicates whether the display is enabled.
- is
Keyboard BooleanEnabled - Indicates whether the keyboard is enabled.
- is
Pointer BooleanEnabled - Indicates whether the pointer is enabled.
- is
Printing BooleanEnabled - Indicates whether printing is enabled.
GetDesktopHostingOption
- Connect
Address string - The connection address of the desktop.
- Images
List<Get
Desktop Hosting Option Image> - Provides information about the desktop image.
- Connect
Address string - The connection address of the desktop.
- Images
[]Get
Desktop Hosting Option Image - Provides information about the desktop image.
- connect
Address String - The connection address of the desktop.
- images
List<Get
Desktop Hosting Option Image> - Provides information about the desktop image.
- connect
Address string - The connection address of the desktop.
- images
Get
Desktop Hosting Option Image[] - Provides information about the desktop image.
- connect_
address str - The connection address of the desktop.
- images
Sequence[desktops.
Get Desktop Hosting Option Image] - Provides information about the desktop image.
- connect
Address String - The connection address of the desktop.
- images List<Property Map>
- Provides information about the desktop image.
GetDesktopHostingOptionImage
- 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".
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.