# How to allow index operations only via bulk api

**URL:** <https://discuss.elastic.co/t/how-to-allow-index-operations-only-via-bulk-api/58252>\
**Category:** Elasticsearch\
**Created:** [August 17, 2016, 12:20pm UTC](https://discuss.elastic.co/t/how-to-allow-index-operations-only-via-bulk-api/58252 "2016-08-17T12:20:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![spacewander](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@spacewander](https://discuss.elastic.co/u/spacewander)\
**Post date:** [August 17, 2016, 12:20pm UTC](https://discuss.elastic.co/t/how-to-allow-index-operations-only-via-bulk-api/58252/1 "2016-08-17T12:20:02Z")

</div>

Is it possible to reject any operation except index operation in bulk api, without rewriting the request body?

---

<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:** [August 17, 2016, 10:35pm UTC](https://discuss.elastic.co/t/how-to-allow-index-operations-only-via-bulk-api/58252/2 "2016-08-17T22:35:59Z")

</div>

Using Shield you could, not sure if you can do it via other methods.

---

<div class="post-metadata">

**Author:** ![spacewander](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@spacewander](https://discuss.elastic.co/u/spacewander)\
**Post date:** [August 18, 2016, 7:20am UTC](https://discuss.elastic.co/t/how-to-allow-index-operations-only-via-bulk-api/58252/3 "2016-08-18T07:20:48Z")

</div>

Thank you. The only problem is that it doesn't support personal usage...

---

<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:** [July 5, 2017, 10:27pm UTC](https://discuss.elastic.co/t/how-to-allow-index-operations-only-via-bulk-api/58252/4 "2017-07-05T22:27:02Z")

</div>


