Checking target health statuses
Written by
Updated at February 8, 2024
Management console
CLI
API
- In the management console
, go to the folder page and select Network Load Balancer. - Click the name of the required network load balancer.
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.
Request the status of the target group resources:
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 a list of network load balancers in the folder.
Use the getTargetStates API method and include the following in the 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 a list of network load balancers in the folder.