Configure Health Check with HTTP authentification basic and expected value.
I want to use an API URL with basic HTTP authentication in Health Check.
The API return on / off string.
Thanks for the suggestion.
Mark Pevec commented
Another example use-case is a MIG for Elasticsearch where the ES cluster has security enabled (and the REST API requires basic auth)
I'd like to see the same. Here's a usecase. I have a staging / pre-production version of my website for testing purposes. I want it to work just like my production / live site, and I want to access it from a cloud-based 3rd party browser testing software, and I want it visible in Google Analytics in order to test my GA scripting changes, so it must be internet accessible.
But I don't want Google to crawl my staging site as it will dilute the ranking of my live site. I need to therefore (a) have a robots.txt file that says don't crawl, and, to be doubly sure, (b) put the whole site behind basic auth.
Currently the load-balancer healthchecks don't support basic auth. So I can't have this setup.