I am able to use SavedObject API (https://www.elastic.co/guide/en/kibana/current/saved-objects-api.html) via http POST in local elastic search by using localhost 5601.
However, in cloud Elastic Search there is https and username/password. How to pass this along in the POST?
I know you can pass in -u parameters in CURL. How to do this in a http post (in Java)? is there a Java API for Kibana?