0

I am trying to contact influxdb running on kubernetes. I am new on influxdb and I have just started using it. I used the query http API in the following way: curl "http://pod_ip_address/query?q=show+databases" , but the response is {"code":"unauthorized","message":"unauthorized access"}. Now I have just the user UI, so maybe the problem could be related to that. Does anybody know what could be the issue?

1 Answer 1

3

InfluxDB 2.0 requires authentication using an ORG and a Token. You can pass these as HTTP headers in your curl call as shown here: https://docs.influxdata.com/influxdb/v2.0/api-guide/api_intro/#authentication

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.