Viewing operations with the service's resources
All actions with Resource Manager resources are logged as a list of operations. Each operation is assigned a 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, go to the Operations tab.
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 an 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, information about operations is provided as text. To get detailed information, specify the yaml
or json
output data format using the --format
flag:
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 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:
CLIAPIIf 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: 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.AccessBindingsOperationResult
Use the OperationService/Get gRPC API call.