Viewing Network Load Balancer resource operations
The system logs all actions with Network Load Balancer resources as a list of operations. Each operation gets its own unique ID.
Getting a list of operations
To view all operations with Network Load Balancer resources, select
Operations in the left-hand panel. 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 target groups as well.
-
In the management console
, open the folder with your network load balancer. -
Select Network Load Balancer.
-
Select the network load balancer in question.
-
Navigate to the
Operations panel.You will see a list of operations with the selected network load balancer.
If you do not have the Yandex Cloud (CLI) command line interface yet, install and initialize it.
The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID>
command. 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 the 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 displayed 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, providing the network load balancer ID in the networkLoadBalancerId
parameter of your request.
You can get the network load balancer ID with the list of network load balancers in the folder.
Getting detailed information about an operation
-
Get a list of operations for the resource.
-
Copy the operation ID.
-
Get detailed information about the operation:
CLIAPIIf you do not have the Yandex Cloud (CLI) command line interface yet, install and initialize it.
The folder specified when creating the CLI profile is used by default. To change the default folder, use the
yc config set folder-id <folder_ID>
command. 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.