scaleway-cli
scaleway-cli copied to clipboard
Argument not taken into account with lb update-healthcheck
check-delay="3" check-timeout="5" are not taken into account here
Command attempted
$ scw lb backend update-healthcheck backend-id=a0945d6c-7c41-4f4f-a819-80d5e8b47acf port=80 check-delay="3" check-timeout="5" http-config.method=GET http-config.uri=/status.html http-config.code=200 check-max-retries=5 -D
--------------- Scaleway SDK REQUEST 1 : ---------------
PUT /lb/v1/zones/fr-par-1/backends/a0945d6c-7c41-4f4f-a819-80d5e8b47acf/healthcheck HTTP/1.1
Host: api.scaleway.com
User-Agent: scaleway-sdk-go/v1.0.0-beta.7+dev (go1.17.2; darwin; amd64) scaleway-cli/2.4.0
Content-Length: 155
Content-Type: application/json
X-Auth-Token: 802fb983-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Accept-Encoding: gzip
{"port":80,"check_max_retries":5,"http_config":{"uri":"/status.html","method":"GET","code":200},"check_send_proxy":false,"check_delay":0,"check_timeout":0}
---------------------------------------------------------
--------------- Scaleway SDK RESPONSE 1 : ---------------
HTTP/2.0 200 OK
Content-Length: 155
Content-Security-Policy: default-src 'none'; frame-ancestors 'none'
Content-Type: application/json
Date: Thu, 24 Feb 2022 10:12:20 GMT
Server: Scaleway API-Gateway
Strict-Transport-Security: max-age=63072000
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-Request-Id: ee8d656b-fc15-4c5e-8b27-1e0c7f61e06a
{"port":80,"check_delay":0,"check_timeout":0,"check_max_retries":5,"check_send_proxy":false,"http_config":{"uri":"/status.html","method":"GET","code":200}}
----------------------------------------------------------CheckMaxRetries 5
HTTPConfig.URI /status.html
HTTPConfig.Method GET
HTTPConfig.Code 200
Port 80
CheckTimeout 0s
CheckDelay 0s
CheckSendProxy false
version was already checked during past 24 hours