# Get a lost of all monitoring candidates

**URL:** <https://community.dynatrace.com/t/get-a-lost-of-all-monitoring-candidates/39308>\
**Category:** Open Q&A\
**Tags:** oneagent, hosts-classic\
**Created:** [April 14, 2023, 12:18pm UTC](https://community.dynatrace.com/t/get-a-lost-of-all-monitoring-candidates/39308 "2023-04-14T12:18:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CDoorbar83](https://avatars.discourse-cdn.com/v4/letter/c/c37758/32.png) [@CDoorbar83](https://community.dynatrace.com/u/CDoorbar83)\
**Post date:** [April 14, 2023, 12:18pm UTC](https://community.dynatrace.com/t/get-a-lost-of-all-monitoring-candidates/39308/1 "2023-04-14T12:18:27Z")

</div>

Hi,

Is there a way to view all Monitoring candidates?&nbsp; maybe extract them in a list ?

thanks

Craig

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [April 14, 2023, 12:28pm UTC](https://community.dynatrace.com/t/get-a-lost-of-all-monitoring-candidates/39308/2 "2023-04-14T12:28:58Z")

</div>

Hi,

You can use the Dynatrace API to get list all the hosts. You can choose state of this hosts (example: monitoring candidates (isMonitoringCandidate)).

> **[OneAgent on a host - GET a list of hosts with OneAgent details](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/oneagent-on-a-host/get-all-hosts-with-oneagents)**
>
> Check the configuration of OneAgent instances on your hosts via Dynatrace API.

Radek

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [April 14, 2023, 7:35pm UTC](https://community.dynatrace.com/t/get-a-lost-of-all-monitoring-candidates/39308/3 "2023-04-14T19:35:09Z")

</div>

As [@radek\_jasinski](https://community.dynatrace.com/user/16832) states you can use this API Call

{{baseUrl}}/entities?pageSize=500&entitySelector=type(HOST),isMonitoringCandidate(true)

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [April 14, 2023, 7:37pm UTC](https://community.dynatrace.com/t/get-a-lost-of-all-monitoring-candidates/39308/4 "2023-04-14T19:37:27Z")

</div>

This is exactly what I meant 🙂
