Get the ID of the log group of the L7 load balancer
Written by
To get the ID of the log group created together with the L7 load balancer to store its logs:
CLI
API
If you don't 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.
-
See the description of the CLI command to get information about the L7 load balancer:
yc alb load-balancer get --help
-
Run the command, specifying the name of the load balancer:
yc alb load-balancer get <load balancer name>
Result:
id: a5d88ep483cmbfm63g9t name: test-balancer2 folder_id: aoe197919j8elpeg1lkp status: ACTIVE region_id: ru-central1 network_id: c64l1c06d15178sa87k0 allocation_policy: locations: - zone_id: ru-central1-a subnet_id: buc4gsmpj8hvramg61g8 - zone_id: ru-central1-b subnet_id: blt6pcatjje62sqvjq5b - zone_id: ru-central1-c subnet_id: fo2ap2nrhjk9vpfdnno8 log_group_id: eolul9ap0bv02i8bsp87 created_at: "2021-04-26T12:12:13.624832586Z"
The ID of the log group will be specified in the
log_group_id
field.
Use the gRPC API LoadBalancerService/Get call or the get REST API method. The ID of the log group will be specified in the log_group_id
field.