Update a Load Balancer Service
Body Required
-
name string
Load Balancer Service name
Maximum length is
255
. -
description string
Load Balancer Service description
Maximum length is
255
. -
protocol string
Network traffic protocol
Values are
tcp
orudp
. -
strategy string
Load balancing strategy
Values are
round-robin
,maglev-hash
, orsource-hash
. -
port integer(int64)
Port exposed on the Load Balancer's public IP
Minimum value is
1
, maximum value is65535
. -
target-port integer(int64)
Port on which the network traffic will be forwarded to on the receiving instance
Minimum value is
1
, maximum value is65535
. -
healthcheck object
Healthcheck configuration
Additional properties are allowed.
PUT
/load-balancer/{id}/service/{service-id}
curl \
-X PUT https://api-ch-gva-2.exoscale.com/v2/load-balancer/{id}/service/{service-id} \
-H "Content-Type: application/json" \
-d '{"name":"string","description":"string","protocol":"tcp","strategy":"round-robin","port":42,"target-port":42,"healthcheck":{"mode":"tcp","interval":42,"uri":"string","port":42,"timeout":42,"retries":42,"tls-sni":"string"}}'
Request examples
{
"name": "string",
"description": "string",
"protocol": "tcp",
"strategy": "round-robin",
"port": 42,
"target-port": 42,
"healthcheck": {
"mode": "tcp",
"interval": 42,
"uri": "string",
"port": 42,
"timeout": 42,
"retries": 42,
"tls-sni": "string"
}
}
Response examples (200)
{
"id": "string",
"reason": "incorrect",
"reference": {
"id": "string",
"link": "string",
"command": "string"
},
"message": "string",
"state": "failure"
}