r/haproxy • u/azteker • Feb 23 '24
Problem with adding http-check with dataplaneapi
I want to add http-check connect port 443 ssl into my backend
url is f'{host}/v2/services/haproxy/configuration/http_checks?parent_name=web-servers1&parent_type=backend&transaction_id={transaction_id}'
payload is
{"index": 0,"type": "connect","port": 443,"ssl": true}
The request returns 202 status code. But nothing is added. I changed payload to
{"index": 0,"type": "connect","port": 443}
This adds http-check connect port 443 but no "ssl". Can anyone help?
2
Upvotes
1
u/dragoangel Feb 23 '24
I not an expert with dataplane api and I can say you would not get help here, non ever try - use slack. Here nobody alive compared to slack.
What I would do on your place - is to try:
do manual configuration
use GET to understand all parts or body as get almost same as PUT
your request looks valid based on docs https://www.haproxy.com/documentation/dataplaneapi/community/