Viewing operations with Resource Manager resources
The system logs all actions with Resource Manager resources as a list of operations. Each operation gets its own unique ID.
Getting a list of operations
To view operations with a cloud or a folder:
- Go to the appropriate cloud or folder.
- At the top of the screen, navigate to the Operations tab.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To get the list of operations for the Resource Manager resource, run this command:
yc resource-manager <resource_type> list-operations <resource_name_or_ID>
Example
To get a list of operations for a folder:
yc resource-manager folder list-operations b1g681qpemb4********
Result:
+----------------------+---------------------+----------------------+---------------------+--------+--------------------------------+
| ID | CREATED AT | CREATED BY | MODIFIED AT | STATUS | DESCRIPTION |
+----------------------+---------------------+----------------------+---------------------+--------+--------------------------------+
| b1g4jml98i8c******** | 2023-06-07 12:35:50 | aje9k8luj4qf******** | 2023-06-07 12:35:50 | DONE | Update resource-manager.folder |
| | | | | | access bindings |
| b1g3cmmtt3u4******** | 2023-04-05 06:05:45 | ajeuddo5f7pj******** | 2023-04-05 06:05:45 | DONE | Create folder |
+----------------------+---------------------+----------------------+---------------------+--------+--------------------------------+
By default, operation information is displayed as text. To get more detailed information, specify the yaml or json output data format using the --format parameter:
yc resource-manager folder list-operations b1g681qpemb4******** --format yaml
Result:
- id: b1g4jml98i8c********
description: Update resource-manager.folder access bindings
created_at: "2023-06-07T12:35:50.143Z"
created_by: aje9k8luj4qf********
modified_at: "2023-06-07T12:35:50.543823061Z"
done: true
metadata:
'@type': type.googleapis.com/yandex.cloud.access.UpdateAccessBindingsMetadata
resource_id: b1g681qpemb4********
response:
'@type': type.googleapis.com/google.protobuf.Empty
value: {}
- id: b1g3cmmtt3u4********
description: Create folder
created_at: "2023-04-05T06:05:45.617732162Z"
created_by: ajeuddo5f7pj********
modified_at: "2023-04-05T06:05:45.617995551Z"
done: true
metadata:
'@type': type.googleapis.com/yandex.cloud.resourcemanager.v1.CreateFolderMetadata
folder_id: b1g681qpemb4********
response:
'@type': type.googleapis.com/google.protobuf.Empty
value: {}
Use the listOperations REST API method for the relevant resource or the <service>/ListOperations gRPC API call.
For example, to get a list of operations for a folder, use either the listOperations REST API method for the Folder resource or the FolderService/ListOperations gRPC API call.
Getting operation details
-
Get a list of operations for the resource.
-
Copy the operation ID.
-
Get operation details:
CLIAPIIf you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the
yc config set folder-id <folder_ID>command. You can also set a different folder for any specific command using the--folder-nameor--folder-idparameter.Run this command:
yc operation get <operation_ID>Result:
id: b1g4jml98i8c******** description: Update resource-manager.folder access bindings created_at: "2023-06-07T12:35:50.143Z" created_by: aje9k8luj4qf******** modified_at: "2023-06-07T12:35:50.543Z" done: true metadata: '@type': type.googleapis.com/yandex.cloud.access.UpdateAccessBindingsMetadata resource_id: b1g681qpemb4******** response: '@type': type.googleapis.com/yandex.cloud.access.AccessBindingsOperationResultUse the OperationService/Get gRPC API call.