Yandex Cloud
Поиск
Связаться с намиПодключиться
  • Документация
  • Блог
  • Все сервисы
  • Статус работы сервисов
    • Популярные
    • Инфраструктура и сеть
    • Платформа данных
    • Контейнеры
    • Инструменты разработчика
    • Бессерверные вычисления
    • Безопасность
    • Мониторинг и управление ресурсами
    • Машинное обучение
    • Бизнес-инструменты
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Облако для интеграторов
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Контент-программа
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Истории успеха
    • Тарифы Yandex Cloud
    • Промоакции и free tier
    • Правила тарификации
  • Документация
  • Блог
Проект Яндекса
© 2025 ООО «Яндекс.Облако»
Yandex Cloud Desktop
  • Начало работы
  • Управление доступом
  • Правила тарификации
    • Аутентификация в API
      • Overview
        • Overview
        • Get
        • GetRdpFile
        • List
        • ListOperations
        • Create
        • UpdateProperties
        • Delete
        • ResetPassword
        • Restart
  • Аудитные логи Cloud Desktop

В этой статье:

  • gRPC request
  • ListDesktopsRequest
  • ListDesktopsResponse
  • Desktop
  • Resources
  • NetworkInterface
  • User
  1. Справочник API
  2. gRPC (англ.)
  3. Desktop
  4. List

Cloud Desktop API, gRPC: DesktopService.List

Статья создана
Yandex Cloud
Обновлена 24 апреля 2025 г.
  • gRPC request
  • ListDesktopsRequest
  • ListDesktopsResponse
  • Desktop
  • Resources
  • NetworkInterface
  • User

Retrieves the list of desktop resources.

gRPC requestgRPC request

rpc List (ListDesktopsRequest) returns (ListDesktopsResponse)

ListDesktopsRequestListDesktopsRequest

{
  "folder_id": "string",
  "page_size": "int64",
  "page_token": "string",
  "filter": "string",
  "order_by": "string"
}

Field

Description

folder_id

string

Required field. ID of the folder to create a DesktopGroup in.

To get a folder ID make a yandex.cloud.resourcemanager.v1.FolderService.List request.

page_size

int64

The maximum number of results per page to return. If the number of available
results is larger than page_size,
the service returns a ListDesktopsResponse.next_page_token
that can be used to get the next page of results in subsequent list requests.
Default value: 100.

page_token

string

Page token. To get the next page of results, set page_token to the
ListDesktopsResponse.next_page_token returned by a previous list request.

filter

string

A filter expression that filters resources listed in the response.
The expression must specify:

  1. The field name. Currently you can use filtering only on Desktop.name field.
  2. An operator. Can be either = or != for single values, IN or NOT IN for lists of values.
  3. Value or a list of values to compare against the values of the field.

order_by

string

Sorting the list by Desktop.name, Desktop.created_at and Desktop.status fields.
The default sorting order is ascending.

ListDesktopsResponseListDesktopsResponse

{
  "desktops": [
    {
      "id": "string",
      "folder_id": "string",
      "desktop_group_id": "string",
      "created_at": "google.protobuf.Timestamp",
      "status": "Status",
      "name": "string",
      "resources": {
        "memory": "int64",
        "cores": "int64",
        "core_fraction": "int64"
      },
      "network_interfaces": [
        {
          "network_id": "string",
          "subnet_id": "string"
        }
      ],
      "users": [
        {
          "subject_id": "string",
          "subject_type": "string"
        }
      ],
      "labels": "map<string, string>"
    }
  ],
  "next_page_token": "string"
}

Field

Description

desktops[]

Desktop

List of desktops.

next_page_token

string

This token allows you to get the next page of results for list requests. If the number of results
is larger than ListDesktopsRequest.page_size, use
the next_page_token as the value
for the ListDesktopsRequest.page_token query parameter
in the next list request. Each subsequent list request will have its own
next_page_token to continue paging through the results.

DesktopDesktop

A desktop resource.

Field

Description

id

string

Desktop ID.

folder_id

string

ID of the folder that the desktop belongs to.

desktop_group_id

string

ID of the desktop group that the desktop belongs to.

created_at

google.protobuf.Timestamp

Creation timestamp in RFC3339 text format.

status

enum Status

Status of the desktop.

  • STATUS_UNSPECIFIED
  • CREATING: Desktop is being created.
  • ACTIVE: Desktop is ready to be used.
  • DELETING: Desktop is being deleted.
  • RESTARTING: Desktop is restarting.
  • UPDATING: Desktop is updating.
  • STARTING: Desktop is starting.
  • STOPPING: Desktop is stopping.
  • STOPPED: Desktop is stopped.
  • ERROR: Desktop did not manage start or restart.
  • CREATION_FAILED: Desktop did not manage to get created or updated.

name

string

Name of the desktop.

resources

Resources

Resources of the desktop.

network_interfaces[]

NetworkInterface

users[]

User

labels

object (map<string, string>)

Labels of the desktop.

ResourcesResources

Field

Description

memory

int64

cores

int64

core_fraction

int64

NetworkInterfaceNetworkInterface

Field

Description

network_id

string

Required field.

subnet_id

string

Required field.

UserUser

Field

Description

subject_id

string

Required field. Identity of the access binding.

subject_type

string

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

Была ли статья полезна?

Предыдущая
GetRdpFile
Следующая
ListOperations
Проект Яндекса
© 2025 ООО «Яндекс.Облако»