hcloud_load-balancer_attach-to-network.md
July 2, 2026 ยท View on GitHub
hcloud load-balancer attach-to-network
Attach a Load Balancer to a Network
hcloud load-balancer attach-to-network [--ip <ip>] --network <network> <load-balancer>
Options
-h, --help help for attach-to-network
--ip ip IP address to assign to the Load Balancer (auto-assigned if omitted)
--ip-range ipNet IP range in CIDR block notation of the subnet to attach to (auto-assigned if omitted)
-n, --network string Network (ID or name) (required)
Options inherited from parent commands
--config string Config file path (default "~/.config/hcloud/cli.toml")
--context string Currently active context
--debug Enable debug output
--debug-file string File to write debug output to
--endpoint string Hetzner Cloud API endpoint (default "https://api.hetzner.cloud/v1")
--hetzner-endpoint string Hetzner API endpoint (default "https://api.hetzner.com/v1")
--http-timeout duration Timeout for HTTP requests (default 0 = no timeout)
--no-experimental-warnings If true, experimental warnings are not shown
--poll-interval duration Interval at which to poll information, for example action progress (default 500ms)
--quiet If true, only print error messages
SEE ALSO
- hcloud load-balancer - Manage Load Balancers