Load Balancer
Create Listener
post
/loadbalancer/{lb_uuid}/listenersCreate a new listener for a Load Balancer.
Authorization
Authorization
Authorization*string
Bearer YOUR_API_TOKEN with an API token. The X-API-Key: YOUR_API_TOKEN header works too.
Path parameters
lb_uuid*string
Request body
Create a new listener
application/jsonRequired
name*string
Range
1 ≤ length ≤ 100protocol?LBListenerProtocol
Default
"http"Value in"http""https""tcp"source_port*integer
Port to listen on
Range
1 ≤ value ≤ 65535target_port*integer
Port to forward to targets
Range
1 ≤ value ≤ 65535ssl_certificate_uuid?string | null
SSL certificate UUID for HTTPS
ssl_mode?string | null
SSL mode (auto-detected if certificate is provided)
Value in
"auto""custom""none"algorithm?LoadBalancerAlgorithm
Load balancing algorithm
Default
"round_robin"Value in"round_robin""least_connections"connection_timeout?integer | null
Connection timeout in seconds
Range
1 ≤ value ≤ 300Default30request_timeout?integer | null
Request timeout in seconds
Range
1 ≤ value ≤ 600Default60sticky_sessions?boolean | null
Enable sticky sessions (cookie-based persistence)
Default
falsesticky_cookie_name?string | null
Cookie name for sticky sessions
Range
length ≤ 100Default"SERVERID"sticky_ttl_seconds?integer | null
Sticky session TTL in seconds
Range
60 ≤ value ≤ 86400Default3600enabled?boolean | null
Default
trueResponses
Successful Response
application/json
uuid*string
name*string
protocol*string
source_port*integer
target_port*integer
enabled?boolean | null
detail*string