Checking target health statuses
Written by
Updated at May 13, 2025
Management console
CLI
API
- 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.
Request a health check for targets in the target group:
yc load-balancer network-load-balancer target-states <load_balancer_name_or_ID> \
--target-group-id=<target_group_ID>
You can get the load balancer ID and name, as well as the IDs of the attached target groups with the list of network load balancers in the folder.
Use the getTargetStates API method, providing the following in your request:
- Load balancer ID in the
networkLoadBalancerId
parameter. - Target group ID in the
targetGroupId
parameter.
You can get the IDs of the load balancer and attached target groups with the list of network load balancers in the folder.