Hi all
Getting my toes wet with Dataplane API. Currently running v2.8.0 b77adc7 of the Dataplane API. I am able to connect to the api and so far all the “GET” commands I am trying seems to respond correctly. However, I am now trying to add a new backend through my Insomnia application. This results in Error: Timeout was reached. The payload for this POST command is as follows:
{
"adv_check": "httpchk",
"balance": {
"algorithm": "roundrobin"
},
"forwardfor": {
"enabled": "enabled"
},
"httpchk_params": {
"method": "GET",
"uri": "/check",
"version": "HTTP/1.1"
},
"mode": "http",
"name": "hans_api_test1"
}
My PUT command looks like this:
http://192.168.20.6:5555/v2/services/haproxy/configuration/backends?version=4
If I do a GET on all the current backends, the following is returned:
{
"_version": 4,
"data": {
"balance": {
"algorithm": "roundrobin"
},
"from": "unnamed_defaults_1",
"name": "myapache_service"
}
}
So to my knowledge, my API is working. Why is the add command timing out? I don’t understand what I am doing wrong.
1 post - 1 participant