# Bulk API - Elastic Cloud

**URL:** <https://discuss.elastic.co/t/bulk-api-elastic-cloud/153929>\
**Category:** Elasticsearch\
**Created:** [October 25, 2018, 7:26am UTC](https://discuss.elastic.co/t/bulk-api-elastic-cloud/153929 "2018-10-25T07:26:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastiaanspeck](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@sebastiaanspeck](https://discuss.elastic.co/u/sebastiaanspeck)\
**Post date:** [October 25, 2018, 7:26am UTC](https://discuss.elastic.co/t/bulk-api-elastic-cloud/153929/1 "2018-10-25T07:26:16Z")

</div>

How can I use [this](https://www.elastic.co/guide/en/kibana/current/tutorial-load-dataset.html#_load_the_data_sets) in Elastic Cloud?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 25, 2018, 8:59am UTC](https://discuss.elastic.co/t/bulk-api-elastic-cloud/153929/2 "2018-10-25T08:59:06Z")

</div>

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](https://www.elastic.co/guide/en/cloud/current/ec-security.html) for more details on authentication.

---

<div class="post-metadata">

**Author:** ![sebastiaanspeck](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@sebastiaanspeck](https://discuss.elastic.co/u/sebastiaanspeck)\
**Post date:** [October 25, 2018, 9:40am UTC](https://discuss.elastic.co/t/bulk-api-elastic-cloud/153929/3 "2018-10-25T09:40:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 25, 2018, 9:50am UTC](https://discuss.elastic.co/t/bulk-api-elastic-cloud/153929/4 "2018-10-25T09:50:42Z")

</div>

> [@sebastiaanspeck](#):
>
> And whats the URL then?

[https://www.elastic.co/guide/en/cloud/current/ec-getting-started-connect.html](https://www.elastic.co/guide/en/cloud/current/ec-getting-started-connect.html)

> [@sebastiaanspeck](#):
>
> And where/how can I provide the username+password?

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

> [@sebastiaanspeck](#):
>
> How does this call know where my data is located...

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

---

<div class="post-metadata">

**Author:** ![sebastiaanspeck](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@sebastiaanspeck](https://discuss.elastic.co/u/sebastiaanspeck)\
**Post date:** [October 25, 2018, 10:43am UTC](https://discuss.elastic.co/t/bulk-api-elastic-cloud/153929/5 "2018-10-25T10:43:53Z")

</div>

> [@warkolm](#):
>
> That is what the `--data-binary @accounts.json` means, it's referring to a file called `accounts.json` .

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

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 25, 2018, 9:36pm UTC](https://discuss.elastic.co/t/bulk-api-elastic-cloud/153929/6 "2018-10-25T21:36:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 8, 2018, 9:36pm UTC](https://discuss.elastic.co/t/bulk-api-elastic-cloud/153929/7 "2018-11-08T21:36:15Z")

</div>

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