---
title: "ezgh lb"
description: "Load balancers: listeners, target groups and targets."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh lb

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh lb <command>
```

A load balancer is a public IPv4 address, an IPv6 address or both in front of a VPC's instances, with TCP, TLS, HTTP and HTTPS listeners. A listener sends connections to a target group, whose targets are private network interfaces or addresses in the VPC.

Create a target group and register its targets, create a load balancer, then add a listener. Targets see connections from an address in the load balancer's subnet, unless the target group enables PROXY protocol; an http target group's targets get the client's address in X-Forwarded-For. On their own firewalls, a rule whose peer is the load balancer admits them.

Everything is in a project (`--project`, `EZGH_PROJECT` or the profile's). &lt;load-balancer&gt; is its ID (lbr\_…) or UUID, and &lt;target-group&gt; its ID (tgp\_…) or UUID.

## Flags

This command also takes the [global flags](/cli/reference#global-flags).

## Subcommands

| Command | Description |
| --- | --- |
| [`ezgh lb listeners`](/cli/reference/lb-listeners) | A load balancer's listeners |
| [`ezgh lb load-balancers`](/cli/reference/lb-load-balancers) | Load balancers |
| [`ezgh lb operations`](/cli/reference/lb-operations) | Load balancer creates and deletes in progress |
| [`ezgh lb target-groups`](/cli/reference/lb-target-groups) | Target groups |
| [`ezgh lb targets`](/cli/reference/lb-targets) | A target group's targets |

Source: https://docs.ezghcloud.com/cli/reference/lb/index.mdx
