What are you trying to achieve?
I want to automate the download of dashboards from Dashboards | Grafana Labs. Before downloading the json I was trying to see if the dashboard exists. Therefore I just wanted to do a HEAD request.
How are you trying to achieve it?
curl https://grafana.com/api/dashboards/3662/revisions/2/download -I
Result of curl:
HTTP/2 405 server: nginx/1.17.9 date: Fri, 15 Oct 2021 13:33:46 GMT x-frame-options: DENY cache-control: no-cache, no-store, must-revalidate pragma: no-cache expires: Fri, 15 Oct 2021 13:33:46 GMT allow: GET via: 1.1 google alt-svc: clear
The head request was denied.
- What did you expect to happen?
That the head request would work.
There is no technical reason to block those HEAD requests. Why is it implemented like that.
My workaround is not to just download the file, but this also genereates a lot of useless traffic for Grafana and also the person, who just wants to check if that dashboard exists.