I am using InfluxDB v1.8.5 and I have recently migrated my Java Client from GitHub - influxdata/influxdb-java: Java client for InfluxDB to GitHub - influxdata/influxdb-client-java: InfluxDB 2 JVM Based Clients.
My use case requires to create the Database from the Java application. I initially thought I had something working by using the createV1 method from the new client then using the bucket API to create databases. But I realised a 404 is returned and my database was actually created by telegraf itself (I believe…).
In the past, I used to create a Query from java that was doing
CREATE DATABASE database_name
But doing something similar returns a 403 error.
I have not thoroughly investigated yet, but I just wanted to make sure such thing was possible using the new client.
Thanks in advance.