Bulk API - Elastic Cloud

(Sebastiaan Speck) #1

How can I use this in Elastic Cloud?

(Mark Walkom) #2

It's no different, just provide a username and password for the cluster and then change the URL.

See https://www.elastic.co/guide/en/cloud/current/ec-security.html for more details on authentication.

(Sebastiaan Speck) #3

And whats the URL then? And where/how can I provide the username+password? How does this call know where my data is located...

(Mark Walkom) #4


If you are not familiar with curl, then -u username:password is the flag. You may also want to consult the manual for it.

That is what the --data-binary @accounts.json means, it's referring to a file called accounts.json.

(Sebastiaan Speck) #5

Yes, but how can the Elastic Cloud API Console know where I have the file locally on my machine?

(Mark Walkom) #6

It doesn't, you need to use curl to send it.

(system) #7

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.