Code | Description |
---|---|
source_port_already_used | The source port you are trying to add is already in use |
curl --location --request POST 'https://api.hetzner.cloud/v1/load_balancers//actions/add_service' \
--header 'Content-Type: application/json' \
--data-raw '{
"destination_port": 80,
"health_check": {
"http": {
"domain": "example.com",
"path": "/",
"response": "{\"status\": \"ok\"}",
"status_codes": [
"2??",
"3??"
],
"tls": false
},
"interval": 15,
"port": 4711,
"protocol": "http",
"retries": 3,
"timeout": 10
},
"http": {
"certificates": [
897
],
"cookie_lifetime": 300,
"cookie_name": "HCLBSTICKY",
"redirect_http": true,
"sticky_sessions": true
},
"listen_port": 443,
"protocol": "https",
"proxyprotocol": false
}'
{
"action": {
"command": "add_service",
"error": {
"code": "action_failed",
"message": "Action failed"
},
"finished": "2016-01-30T23:56:00.000Z",
"id": 13,
"progress": 100,
"resources": [
{
"id": 4711,
"type": "load_balancer"
}
],
"started": "2016-01-30T23:55:00.000Z",
"status": "success"
}
}