Viewing operations with the service's resources
All actions with Network Load Balancer 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 network load balancer. The same steps apply to a target group.
-
In the management console
, open the folder the network load balancer is in. -
Select Network Load Balancer.
-
Select the appropriate network load balancer.
-
Go to the
Operations panel.You will see a list of network load balancer 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 Network Load Balancer resource, run this command:
yc load-balancer <resource_type> list-operations <resource_name_or_ID>
Example
Get a list of operations for a network load balancer:
yc load-balancer network-load-balancer list-operations enpaud0h342p********
You can get the network load balancer ID with a list of network load balancers in the folder.
Result:
+----------------------+---------------------+----------------------+---------------------+--------+----------------------------+
| ID | CREATED AT | CREATED BY | MODIFIED AT | STATUS | DESCRIPTION |
+----------------------+---------------------+----------------------+---------------------+--------+----------------------------+
| enp87akr8sdr******** | 2024-02-01 09:33:45 | ajego134p5h1******** | 2024-02-01 09:33:45 | DONE | Create NetworkLoadBalancer |
+----------------------+---------------------+----------------------+---------------------+--------+----------------------------+
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 load-balancer network-load-balancer list-operations enp87akr8sdr******** --format yaml
Result:
- id: enp87akr8sdr********
description: Create NetworkLoadBalancer
created_at: "2024-02-01T09:33:45.035Z"
created_by: ajego134p5h1********
modified_at: "2024-02-01T09:33:45.642754913Z"
done: true
metadata:
'@type': type.googleapis.com/yandex.cloud.loadbalancer.v1.CreateNetworkLoadBalancerMetadata
network_load_balancer_id: enpaud0h342p********
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, for a network load balancer, use the listOperations REST API method for the NetworkLoadBalancer resource or the NetworkLoadBalancerService/ListOperations gRPC API call. Provide the network load balancer ID in the networkLoadBalancerId
parameter of the request.
You can get the network load balancer ID with a list of network load balancers in the folder.
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: enp87akr8sdr******** description: Create NetworkLoadBalancer created_at: "2024-02-01T09:33:45.035Z" created_by: ajego134p5h1******** modified_at: "2024-02-01T09:33:45.642Z" done: true metadata: '@type': type.googleapis.com/yandex.cloud.loadbalancer.v1.CreateNetworkLoadBalancerMetadata network_load_balancer_id: enpaud0h342p******** response: '@type': type.googleapis.com/yandex.cloud.loadbalancer.v1.NetworkLoadBalancer id: enpaud0h342p******** folder_id: b1gmit33ngp3******** created_at: "2024-02-01T09:33:45Z" name: nlb-e6f3e-083 region_id: ru-central1 status: ACTIVE type: EXTERNAL
Use the get REST API method for the Operation resource or the OperationService/Get gRPC API call.