# High Level Rest Client - admin API?

**URL:** https://discuss.elastic.co/t/high-level-rest-client-admin-api/100461
**Category:** Elasticsearch
**Created:** [September 14, 2017, 6:30am UTC](https://discuss.elastic.co/t/high-level-rest-client-admin-api/100461 "2017-09-14T06:30:59Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Dan\_Markhasin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dan_markhasin/32/14187_2.png) [@Dan\_Markhasin](https://discuss.elastic.co/u/Dan_Markhasin)
#### Post date: [September 14, 2017, 6:30am UTC](https://discuss.elastic.co/t/high-level-rest-client-admin-api/100461/1 "2017-09-14T06:30:59Z")

</div>

Does the new High Level Rest Client provide an admin API for creating/deleting/updating indices? The documentation indicates that it has no support for admin operations, but I wanted to make sure.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [September 14, 2017, 6:44am UTC](https://discuss.elastic.co/t/high-level-rest-client-admin-api/100461/2 "2017-09-14T06:44:13Z")

</div>

No. Not yet. You need to use the Low Level part for this.

Here is an example where I'm actually extending the HL Client and providing my own admin methods (note the `getLowLevelClient()` call):

> <https://github.com/dadoonet/fscrawler/blob/master/src/main/java/fr/pilato/elasticsearch/crawler/fs/client/ElasticsearchClient.java#L82-L105>

It's super basic but is covering my needs.

---

<div class="post-metadata">

### Author: ![Dan\_Markhasin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dan_markhasin/32/14187_2.png) [@Dan\_Markhasin](https://discuss.elastic.co/u/Dan_Markhasin)
#### Post date: [September 14, 2017, 7:20am UTC](https://discuss.elastic.co/t/high-level-rest-client-admin-api/100461/3 "2017-09-14T07:20:38Z")

</div>

Thanks David. Is there a plan/schedule to add admin operations to the HL Rest client?  
We are currently using the transport client, and certainly want to switch over to the HL Rest Client, but if admin operations are scheduled to be released relatively soon we'll probably prefer waiting for that instead of re-implementing all of them ourselves.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [September 14, 2017, 7:54am UTC](https://discuss.elastic.co/t/high-level-rest-client-admin-api/100461/4 "2017-09-14T07:54:27Z")

</div>

> [@Dan\_Markhasin](#):
>
> if admin operations are scheduled to be released relatively soon

I'd not expect something coming "soon".

But @javanna can probably tell more about the plan...

---

<div class="post-metadata">

### Author: ![javanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javanna/32/4698_2.png) [@javanna](https://discuss.elastic.co/u/javanna)
#### Post date: [September 14, 2017, 8:04am UTC](https://discuss.elastic.co/t/high-level-rest-client-admin-api/100461/5 "2017-09-14T08:04:30Z")

</div>

We have no clear plans yet. There are quite some APIs that need to be added. You may want to upvote this issue: [https://github.com/elastic/elasticsearch/issues/25847](https://github.com/elastic/elasticsearch/issues/25847) . Also, PRs are welcome! 🙂

Cheers  
Luca

---

<div class="post-metadata">

### Author: ![Dan\_Markhasin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dan_markhasin/32/14187_2.png) [@Dan\_Markhasin](https://discuss.elastic.co/u/Dan_Markhasin)
#### Post date: [September 14, 2017, 8:06am UTC](https://discuss.elastic.co/t/high-level-rest-client-admin-api/100461/6 "2017-09-14T08:06:49Z")

</div>

When I wrote "soon" I meant something along the ES 6.0 timeline - i.e. near but not immediate future 🙂

Anyway, thanks for the responses guys!

---

<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: [October 12, 2017, 8:07am UTC](https://discuss.elastic.co/t/high-level-rest-client-admin-api/100461/7 "2017-10-12T08:07:52Z")

</div>

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

---

<div class="post-metadata">

### Author: ![javanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javanna/32/4698_2.png) [@javanna](https://discuss.elastic.co/u/javanna)
#### Post date: [November 13, 2017, 8:54am UTC](https://discuss.elastic.co/t/high-level-rest-client-admin-api/100461/8 "2017-11-13T08:54:06Z")

</div>

The will be added as we go, I assume as part of the 6.x releases. You can also have a look now at a meta issue that lists all the missing API: [https://github.com/elastic/elasticsearch/issues/27205](https://github.com/elastic/elasticsearch/issues/27205) .
