Body
Required
-
Load Balancer Service name
Minimum length is
1, maximum length is255. -
Load Balancer Service description
Maximum length is
255. -
Instance Pool to forward traffic to
-
Network traffic protocol
Values are
tcporudp. -
Load balancing strategy
Values are
round-robin,maglev-hash, orsource-hash. -
Port exposed on the Load Balancer's public IP
Minimum value is
1, maximum value is65535. -
Port on which the network traffic will be forwarded to on the receiving instance
Minimum value is
1, maximum value is65535. -
Healthcheck configuration
POST
/load-balancer/{id}/service
curl \
--request POST 'https://api-ch-gva-2.exoscale.com/v2/load-balancer/{id}/service' \
--header "Content-Type: application/json" \
--data '{
"name": "string",
"description": "string",
"instance-pool": {
"application-consistent-snapshot-enabled": true,
"anti-affinity-groups": [
{
"id": "string"
}
],
"description": "string",
"public-ip-assignment": "inet4",
"labels": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"security-groups": [
{
"id": "string"
}
],
"elastic-ips": [
{
"id": "string"
}
],
"name": "string",
"instance-type": {
"id": "string"
},
"min-available": 42,
"private-networks": [
{
"id": "string"
}
],
"template": {
"id": "string"
},
"size": 42,
"ssh-key": {
"name": "string"
},
"instance-prefix": "string",
"user-data": "string",
"manager": {
"id": "string",
"type": "sks-nodepool"
},
"deploy-target": {
"id": "string"
},
"ipv6-enabled": true,
"disk-size": 42,
"ssh-keys": [
{
"name": "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",
"instance-pool": {
"application-consistent-snapshot-enabled": true,
"anti-affinity-groups": [
{
"id": "string"
}
],
"description": "string",
"public-ip-assignment": "inet4",
"labels": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"security-groups": [
{
"id": "string"
}
],
"elastic-ips": [
{
"id": "string"
}
],
"name": "string",
"instance-type": {
"id": "string"
},
"min-available": 42,
"private-networks": [
{
"id": "string"
}
],
"template": {
"id": "string"
},
"size": 42,
"ssh-key": {
"name": "string"
},
"instance-prefix": "string",
"user-data": "string",
"manager": {
"id": "string",
"type": "sks-nodepool"
},
"deploy-target": {
"id": "string"
},
"ipv6-enabled": true,
"disk-size": 42,
"ssh-keys": [
{
"name": "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"
}