Load Balancer
Create Listener
post
/loadbalancer/{lb_uuid}/listenersCreate a new listener for a Load Balancer.
Autorización
Authorization
Authorization*string
Bearer YOUR_API_TOKEN con un token de API. También vale la cabecera X-API-Key: YOUR_API_TOKEN.
Parámetros de ruta
lb_uuid*string
Cuerpo de la petición
Create a new listener
application/jsonObligatorio
name*string
Rango
1 ≤ length ≤ 100protocol?LBListenerProtocol
Por defecto
"http"Valores"http""https""tcp"source_port*integer
Port to listen on
Rango
1 ≤ value ≤ 65535target_port*integer
Port to forward to targets
Rango
1 ≤ value ≤ 65535ssl_certificate_uuid?string | null
SSL certificate UUID for HTTPS
ssl_mode?string | null
SSL mode (auto-detected if certificate is provided)
Valores
"auto""custom""none"algorithm?LoadBalancerAlgorithm
Load balancing algorithm
Por defecto
"round_robin"Valores"round_robin""least_connections"connection_timeout?integer | null
Connection timeout in seconds
Rango
1 ≤ value ≤ 300Por defecto30request_timeout?integer | null
Request timeout in seconds
Rango
1 ≤ value ≤ 600Por defecto60sticky_sessions?boolean | null
Enable sticky sessions (cookie-based persistence)
Por defecto
falsesticky_cookie_name?string | null
Cookie name for sticky sessions
Rango
length ≤ 100Por defecto"SERVERID"sticky_ttl_seconds?integer | null
Sticky session TTL in seconds
Rango
60 ≤ value ≤ 86400Por defecto3600enabled?boolean | null
Por defecto
trueRespuestas
Successful Response
application/json
uuid*string
name*string
protocol*string
source_port*integer
target_port*integer
enabled?boolean | null
detail*string