Information about current network load balancers
You can request detailed information about each network load balancer you created.
Getting a list of network load balancers in a folder
In the management console
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 network load balancers in the default folder, run this command:
yc load-balancer network-load-balancer list
Result:
+----------------------+-----------------------+-------------+----------+----------------+------------------------+--------+
| ID | NAME | REGION ID | TYPE | LISTENER COUNT | ATTACHED TARGET GROUPS | STATUS |
+----------------------+-----------------------+-------------+----------+----------------+------------------------+--------+
| enp9svq2ajbs******** | network-load-balancer | ru-central1 | EXTERNAL | 1 | enp1d7t5pdea******** | ACTIVE |
| ... | | | | | | |
+----------------------+-----------------------+-------------+----------+----------------+------------------------+--------+
Use the list API method, providing the folder ID in the folderId
parameter of your request.
Getting detailed information about a network load balancer
- In the management console
, navigate to the folder dashboard and select Network Load Balancer. - Click the name of the load balancer in question.
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 information about a network load balancer, run this command:
yc load-balancer network-load-balancer get <load_balancer_name_or_ID>
You can get the load balancer ID and name with the list of network load balancers in the folder.
Use the get API method, 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.