Load Balancer

Create Listener

post/loadbalancer/{lb_uuid}/listeners

Create 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
Rango1 ≤ length ≤ 100
protocol?LBListenerProtocol
Por defecto"http"Valores"http""https""tcp"
source_port*integer

Port to listen on

Rango1 ≤ value ≤ 65535
target_port*integer

Port to forward to targets

Rango1 ≤ value ≤ 65535
ssl_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

Rango1 ≤ value ≤ 300Por defecto30
request_timeout?integer | null

Request timeout in seconds

Rango1 ≤ value ≤ 600Por defecto60
sticky_sessions?boolean | null

Enable sticky sessions (cookie-based persistence)

Por defectofalse
sticky_cookie_name?string | null

Cookie name for sticky sessions

Rangolength ≤ 100Por defecto"SERVERID"
sticky_ttl_seconds?integer | null

Sticky session TTL in seconds

Rango60 ≤ value ≤ 86400Por defecto3600
enabled?boolean | null
Por defectotrue

Respuestas

Successful Response

application/json

uuid*string
name*string
protocol*string
source_port*integer
target_port*integer
enabled?boolean | null
detail*string