Detach a target group from a load balancer
Management console
CLI
API
To detach a target group from a load balancer:
- Open the Load Balancer section in the folder where you want to detach the target group from the load balancer.
- Click in the row of that load balancer.
- In the menu that opens, click Detach target group.
If you don't have the Yandex.Cloud command line interface yet, install 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.
-
See the description of the CLI's detach target group command:
$ yc load-balancer network-load-balancer detach-target-group --help
-
Get a list of load balancers:
$ load-balancer network-load-balancer list +----------------------+--------------------+-------------+----------+----------------+------------------------+----------+ | ID | NAME | REGION ID | TYPE | LISTENER COUNT | ATTACHED TARGET GROUPS | STATUS | +----------------------+--------------------+-------------+----------+----------------+------------------------+----------+ ... | b7r97ah2jn5rmo6k1dsk | test-load-balancer | ru-central1 | EXTERNAL | 1 | b7roi767je4c574iivrk | INACTIVE | ... +----------------------+--------------------+-------------+----------+----------------+------------------------+----------+
-
Choose the
ID
of the load balancer and the target group that is attached to it. -
Detach the selected group from the load balancer:
$ yc load-balancer network-load-balancer detach-target-group b7r97ah2jn5rmo6k1dsk \ --target-group-id=b7roi767je4c574iivrk
You can detach a target group from a load balancer using the detachTargetGroup API method.