Checking target health statuses
Written by
Updated at June 9, 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 installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID>
command. You can also set a different folder for any specific command 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.