Information about current 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
, navigate to the folder dashboard 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 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.
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, providing the folder ID in the folderId
parameter of your request.
Getting detailed information about a target group
- In the management console
, navigate to the folder dashboard and select Network Load Balancer. - In the left-hand panel, select
Target groups. - Click the name of the target group in question.
If you do not have the Yandex Cloud CLI 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.
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 the list of target groups in the folder.
Use the get API method, providing the target group ID in the targetGroupId
parameter of your request.
You can get the target group ID with the list of target groups in the folder.