Information about existing target groups
You can request detailed information about each target group you created.
Getting a list of target groups in a folder
- In the management console
, go to the folder page and select Network Load Balancer. - In the left-hand panel, select
Target groups.
If you do not have the Yandex Cloud CLI yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder through the --folder-name
or --folder-id
parameter.
To get a list of target groups in the default folder, run this command:
yc load-balancer target-group list
Result:
+----------------------+-------------+---------------------+-------------+--------------+
| ID | NAME | CREATED | REGION ID | TARGET COUNT |
+----------------------+-------------+---------------------+-------------+--------------+
| enp1d7t5pdea******** | test-group1 | 2023-02-03 07:17:56 | ru-central1 | 1 |
| ... | | | | |
+----------------------+-------------+---------------------+-------------+--------------+
Use the list API method and provide the folder ID in the folderId
parameter of the request.
Getting detailed information about a target group
- In the management console
, go to the folder page and select Network Load Balancer. - In the left-hand panel, select
Target groups. - Click the name of the target group you need.
If you do not have the Yandex Cloud CLI yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder through the --folder-name
or --folder-id
parameter.
To get information about a target group, run this command:
yc load-balancer target-group get <target_group_name_or_ID>
You can get the target group ID and name with a list of target groups in the folder.
Use the get API method and provide the target group ID in the targetGroupId
parameter of the request.
You can get the target group ID with a list of target groups in the folder.