Viewing operations with the service's resources
All actions with Virtual Private Cloud resources are logged as a list of operations. Each operation is assigned a unique ID.
Getting a list of operations
To view all operations with the resources, in the left-hand panel, select
Operations. In the list that opens, you will also see operations with the resources that were deleted.You can get a list of operations for a specific resource. The steps below describe how you can do this for a cloud network. The same steps apply to other service resources.
-
In the management console
, go to the folder where the cloud network is located. -
In the list of services, select Virtual Private Cloud.
-
Select the network you need.
-
Go to the
Operations panel.You will see a list of cloud network operations.
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 Virtual Private Cloud resource, run this command:
yc vpc <resource_type> list-operations <resource_name_or_ID>
Example
Get a list of operations for a cloud network:
yc vpc network list-operations enpgl5o8te3k********
Result:
+----------------------+---------------------+----------------------+---------------------+--------+----------------+
| ID | CREATED AT | CREATED BY | MODIFIED AT | STATUS | DESCRIPTION |
+----------------------+---------------------+----------------------+---------------------+--------+----------------+
| enp75021agjg******** | 2024-02-01 10:16:51 | ajego134p5h1******** | 2024-02-01 10:16:53 | DONE | Create network |
+----------------------+---------------------+----------------------+---------------------+--------+----------------+
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 vpc network list-operations enpgl5o8te3k******** --format yaml
Result:
- id: enp75021agjg********
description: Create network
created_at: "2024-02-01T10:16:51.955935138Z"
created_by: ajego134p5h1********
modified_at: "2024-02-01T10:16:53.389542083Z"
done: true
metadata:
'@type': type.googleapis.com/yandex.cloud.vpc.v1.CreateNetworkMetadata
network_id: enpgl5o8te3k********
response:
'@type': type.googleapis.com/google.protobuf.Empty
value: {}
To get a list of operations, use the listOperations
REST API method for the relevant resource or the <service>/ListOperations
gRPC API call.
For example, to obtain a list of operations for a cloud network, use either the listOperations REST API method for the Network resource or the NetworkService/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: enp75021agjg******** description: Create network created_at: "2024-02-01T10:16:51.955Z" created_by: ajego134p5h1******** modified_at: "2024-02-01T10:16:53.389Z" done: true metadata: '@type': type.googleapis.com/yandex.cloud.vpc.v1.CreateNetworkMetadata network_id: enpgl5o8te3k******** response: '@type': type.googleapis.com/yandex.cloud.vpc.v1.Network id: enpgl5o8te3kke6q3psa folder_id: b1gmit33ngp3******** created_at: "2024-02-01T10:16:51Z" name: test-network default_security_group_id: enp0catll8gm********
Use the get REST API method for the Operation resource or the OperationService/Get gRPC API call.