Viewing operations with the service's resources
All actions with Cloud Desktop resources are logged as a list of operations. Each operation is assigned a unique ID.
Getting a list of operations
You can get a list of operations for a specific resource. The steps below describe how you can do this for a desktop. The same steps apply to other service resources.
-
In the management console
, open the folder the desktop is in. -
Select Cloud Desktop.
-
In the left-hand panel, select
Desktops. -
Select the desktop you need.
-
Go to the
Operations panel for the selected desktop.You will see a list of operations with the selected desktop.
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
To get a list of operations for a 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, information about operations is provided 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********
Getting detailed information about an operation
-
Get a list of operations for the resource.
-
Copy the ID of the operation.
-
Get detailed information about the operation:
CLIIf you do not have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder 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********