Configure WebSocket Support
curl -X POST -H ‘application/json’ -H ‘Authorization: Bearer ...’ https://api.ionos.com/cloudapi/v6/datacenters/{datacenterId}/applicationloadbalancers -d’
{
“properties”: {
“name”: “alb-websocket”,
“listenerLan”: 1,
“targetLan”: 2,
“ips”: [“1.1.1.1”],
“lbPrivateIps”: [“10.20.30.40/24”]
}curl -X POST -H ‘application/json’ -H ‘Authorization: Bearer ...’ https://api.ionos.com/cloudapi/v6/targetgroups
{
“properties”: {
“name”: “websocket-target-group”,
“algorithm”: “ROUND_ROBIN”,
“protocol”: “HTTP”,
“targets”: [
{
“ip”: “10.20.30.100”,
“port”: 8080,
“weight”: 10,
“healthCheckEnabled”: true
}
]
}Last updated
Was this helpful?