[Recipes] Connecting to Elastic Cloud with Basic Authentication


Need to connect to an index in Elastic Cloud from outside Kibana through HTTP REST. 

Solution Summary: 

We can use any HTTP client such as Postman plugin in the Chrome browser or CURL command in a Mac machine. Solution should be similar in other clients. 

Solution Steps: 

GET from Postman

You can a GET request to <endpoint>/employee/_doc/1 with basic authentication information available from Elastic Cloud console. 


PUT from Postman

Note: Authentication info should be provided the same way as in previous case.



curl -u elastic:<password> <endpoint>/employee/_doc/1

Note: HTTP GET is the default.


PUT from cURL

curl -u elastic:<password> -H "Content-Type: application/json" -X PUT <endpoint>/employee/_doc/4 -d '{"name":"Remote"}'

Note: You may also import json from a file: -d "@data.json"

Recipe Tags: 


Please first use the contact form or facebook page messaging to connect.

Offline Contact
We currently connect locally for discussions and sessions at Bangalore, India. Please follow us on our facebook page for details.
WhatsApp (Primary): (+91) 7411174113
Phone (Escalations): (+91) 7411174114

Business newsletter

Complete the form below, and we'll send you an e-mail every now and again with all the latest news.


CloudMaterials.com is my blog to share notes and learning materials on Cloud and Data Analytics. My current focus is on Amazon Web Services.

I like to write. I try to document what I learn and share with others. I believe that knowledge is useless unless you share it; the more you share, the more you learn.

Recent comments

Photo Stream