[Документация Yandex Cloud](../../../../index.md) > [Yandex Cloud Desktop](../../../index.md) > Справочник API > [gRPC (англ.)](../index.md) > [Desktop](index.md) > GetRdpFile

# Cloud Desktop API, gRPC: DesktopService.GetRdpFile

Returns a RDP file for the specified desktop.

## gRPC request

**rpc GetRdpFile ([GetRdpFileRequest](#yandex.cloud.clouddesktop.v1.api.GetRdpFileRequest)) returns ([RdpFileResponse](#yandex.cloud.clouddesktop.v1.api.RdpFileResponse))**

## GetRdpFileRequest {#yandex.cloud.clouddesktop.v1.api.GetRdpFileRequest}

```json
{
  "desktop_id": "string",
  "user": {
    "subject_id": "string",
    "subject_type": "string"
  }
}
```

#|
||Field | Description ||
|| desktop_id | **string**

Required field. ID of the desktop resource to return.
To get the desktop ID use a [DesktopService.List](list.md#List) request.

The maximum string length in characters is 50. ||
|| user | **[User](#yandex.cloud.clouddesktop.v1.api.User)**

User of the desktop. ||
|#

## User {#yandex.cloud.clouddesktop.v1.api.User}

#|
||Field | Description ||
|| subject_id | **string**

Required field. Identity of the access binding.

The maximum string length in characters is 100. ||
|| subject_type | **string**

Required field. Type of the access binding, e.g. userAccount, serviceAccount, system.

The maximum string length in characters is 100. ||
|#

## RdpFileResponse {#yandex.cloud.clouddesktop.v1.api.RdpFileResponse}

```json
{
  "headers": "map<string, string>",
  "content": "string"
}
```

#|
||Field | Description ||
|| headers | **object** (map<**string**, **string**>)

HTTP headers mapping. ||
|| content | **string**

RDP file content. ||
|#