Viewing Cloud Desktop resource operations
The system logs all actions with Cloud Desktop resources in an operation list. Each operation gets its own unique ID.
Getting a list of operations
You can get a list of operations for a specific resource. The steps below explain how to do this for a desktop. The same steps apply to other resources as well.
-
In the management console
, open the folder containing the desktop. -
Select Cloud Desktop.
-
In the left-hand panel, select
Desktops. -
Select the desktop you need.
-
Navigate to the
Operations panel for the selected desktop.You will see its list of operations.
If you do not have the Yandex Cloud CLI yet, install and initialize it.
The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID>
command. You can also specify a different folder for any command using the --folder-name
or --folder-id
parameter.
To get a list of operations for the Cloud Desktop resource, run this command:
yc desktops <resource_type> list-operations <resource_name_or_ID>
Example
Getting a list of operations for a desktop:
yc desktops desktop list-operations e3v7nfkhn0q4********
Result:
+----------------------+---------------------+----------------------+---------------------+---------+-----------------+
| ID | CREATED AT | CREATED BY | MODIFIED AT | STATUS | DESCRIPTION |
+----------------------+---------------------+----------------------+---------------------+---------+-----------------+
| e3vlaf6r4241******** | 2024-05-14 17:55:00 | aje9k8luj4qf******** | 2024-05-14 17:55:00 | RUNNING | Restart desktop |
| e3vns4mmfsal******** | 2024-05-14 17:41:14 | aje9k8luj4qf******** | 2024-05-14 17:45:17 | DONE | Create desktop |
+----------------------+---------------------+----------------------+---------------------+---------+-----------------+
By default, operation information is displayed as text. To get more detailed information, specify the yaml
or json
output data format using the --format
flag:
yc desktops desktop list-operations e3v7nfkhn0q4******** --format yaml
Result:
- id: e3vlaf6r4241********
description: Restart desktop
created_at: "2024-05-14T17:55:00.742136402Z"
created_by: aje9k8luj4qf********
modified_at: "2024-05-14T17:55:00.742136402Z"
metadata:
'@type': type.googleapis.com/yandex.cloud.clouddesktop.v1.api.RestartDesktopMetadata
desktop_id: e3v7nfkhn0q4********
- id: e3vns4mmfsal********
description: Create desktop
created_at: "2024-05-14T17:41:14.076Z"
created_by: aje9k8luj4qf********
modified_at: "2024-05-14T17:45:17.355765714Z"
done: true
metadata:
'@type': type.googleapis.com/yandex.cloud.clouddesktop.v1.api.CreateDesktopMetadata
desktop_id: e3v7nfkhn0q4********
Use the listOperations REST API method for the Desktop resource or the DesktopService/ListOperations gRPC API call.
Getting detailed information about an operation
-
Get a list of operations for the resource.
-
Copy the operation ID.
-
Get detailed information about the operation:
CLIIf you do not have the Yandex Cloud CLI yet, install and initialize it.
The folder specified when creating the CLI profile is used by default. To change the default folder, use the
yc config set folder-id <folder_ID>
command. You can also specify a different folder for any command using the--folder-name
or--folder-id
parameter.Run this command:
yc operation get <operation_ID>
Result:
id: e3vlaf6r4241******** description: Restart desktop created_at: "2024-05-14T17:55:00.742Z" created_by: aje9k8luj4qf******** modified_at: "2024-05-14T17:57:47.065Z" done: true metadata: '@type': type.googleapis.com/yandex.cloud.clouddesktop.v1.api.RestartDesktopMetadata desktop_id: e3v7nfkhn0q4******** response: '@type': type.googleapis.com/yandex.cloud.clouddesktop.v1.api.Desktop id: e3v7nfkhn0q4******** folder_id: b1g681qpemb4******** desktop_group_id: e3vud47oonha******** created_at: "2024-05-14T17:41:14.076Z" name: my-desktop-group-1fb68746******** resources: memory: "2147483648" cores: "2" core_fraction: "100" network_interfaces: - network_id: enpphqi8uvcm******** subnet_id: e9bmuh93af4v******** users: - subject_id: aje9k8luj4qf********