# How do you figure out what endpoint to query for a given API reference definition?

**URL:** <https://discuss.elastic.co/t/how-do-you-figure-out-what-endpoint-to-query-for-a-given-api-reference-definition/300627>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [March 24, 2022, 7:31pm UTC](https://discuss.elastic.co/t/how-do-you-figure-out-what-endpoint-to-query-for-a-given-api-reference-definition/300627 "2022-03-24T19:31:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Apprentice](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@Apprentice](https://discuss.elastic.co/u/Apprentice)\
**Post date:** [March 24, 2022, 7:31pm UTC](https://discuss.elastic.co/t/how-do-you-figure-out-what-endpoint-to-query-for-a-given-api-reference-definition/300627/1 "2022-03-24T19:31:00Z")

</div>

I want to [monitor allocators](https://www.elastic.co/guide/en/cloud-enterprise/current/AllocatorHealthStatus.html) and [move instances](https://www.elastic.co/guide/en/cloud-enterprise/current/InstanceMoveRequest.html) using those features of the API. how do I go about figuring our what endpoints to query?

Could someone point me to how I would go about querying/setting those particular values? to what endpoint would I run GET/PUT against?

---

<div class="post-metadata">

**Author:** ![Apprentice](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@Apprentice](https://discuss.elastic.co/u/Apprentice)\
**Post date:** [March 28, 2022, 3:36pm UTC](https://discuss.elastic.co/t/how-do-you-figure-out-what-endpoint-to-query-for-a-given-api-reference-definition/300627/2 "2022-03-28T15:36:08Z")

</div>

Seems like the only way to go about this is to check the various API calls a level above. These API references only exist as definitions.

---

<div class="post-metadata">

**Author:** ![Daniel\_Battaglia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_battaglia/32/49649_2.png) [@Daniel\_Battaglia](https://discuss.elastic.co/u/Daniel_Battaglia)\
**Post date:** [March 28, 2022, 4:46pm UTC](https://discuss.elastic.co/t/how-do-you-figure-out-what-endpoint-to-query-for-a-given-api-reference-definition/300627/3 "2022-03-28T16:46:45Z")

</div>

Right, those links are documenting the API bodies (from the OpenAPI / Swagger spec) but not the API itself. For allocators you want to take a look here for the various APIs exposed: [Platform - Allocators | Elastic Cloud Enterprise Reference [3.1] | Elastic](https://www.elastic.co/guide/en/cloud-enterprise/current/Platform_-_Allocators.html)

---

<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:** [April 11, 2022, 4:47pm UTC](https://discuss.elastic.co/t/how-do-you-figure-out-what-endpoint-to-query-for-a-given-api-reference-definition/300627/4 "2022-04-11T16:47:27Z")

</div>

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