REST API access to grafana on openshift

Hi,

My grafana is installed on openshift. I need to access it via REST API. Tried according found examples, but fail. Please advise.

curl -H “Authorization: Bearer XXXXXXXXXXXXXXXXXXXX” “https://grafana-openshift-monitoring.apps.XXXXXXXXXXXX/api/datasources

returns a page with message: “Log in with OpenShift”

Hi @benzion18 ,

What specific OpenShift product are you using? And have you explored the openshift documentation about accessing your infrastructure via their API?