# Rest API returns unmonitored entities

**URL:** <https://community.dynatrace.com/t/rest-api-returns-unmonitored-entities/13629>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [July 12, 2018, 12:13am UTC](https://community.dynatrace.com/t/rest-api-returns-unmonitored-entities/13629 "2018-07-12T00:13:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimeng\_liu](https://avatars.discourse-cdn.com/v4/letter/j/d2c977/32.png) [@jimeng\_liu](https://community.dynatrace.com/u/jimeng_liu)\
**Post date:** [July 12, 2018, 12:13am UTC](https://community.dynatrace.com/t/rest-api-returns-unmonitored-entities/13629/1 "2018-07-12T00:13:07Z")

</div>

When I use Rest API [https://account.live.dynatrace.com/api/v1/entity/](https://account.live.dynatrace.com/api/v1/entity/)&nbsp;applications in order to get monitored applications in my environment. The API returns me old applications whose rules I already removed. SmartScape already updated itself, not showing those applications. But why my Rest API call still return them ?

The same thing goes to another Rest API to get a list of monitored hosts. After I remove monitoring on few hosts in the Host settings page. They keep showing up in the result of list monitored hosts from Rest API: [https://account.live.dynatrace.com/api/v1/entity](https://account.live.dynatrace.com/api/v1/entity)&nbsp;/infrastructure/hosts There are no fields identifying host monitoring status, such as monitored or unmonitored.

Thanks!

Jim

---

<div class="post-metadata">

**Author:** ![wolfgang\_beer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/wolfgang_beer/32/14717_2.png) [@wolfgang\_beer](https://community.dynatrace.com/u/wolfgang_beer)\
**Post date:** [July 12, 2018, 8:15am UTC](https://community.dynatrace.com/t/rest-api-returns-unmonitored-entities/13629/2 "2018-07-12T08:15:36Z")

</div>

Did you use the from and to timestamp selector parameters within the API? By design the API should not expose entities that are not visible within the selected timeframe. The default timeframe if you did not specified any custom timeframe within the API is 72h.

---

<div class="post-metadata">

**Author:** ![jimeng\_liu](https://avatars.discourse-cdn.com/v4/letter/j/d2c977/32.png) [@jimeng\_liu](https://community.dynatrace.com/u/jimeng_liu)\
**Post date:** [July 12, 2018, 6:28pm UTC](https://community.dynatrace.com/t/rest-api-returns-unmonitored-entities/13629/3 "2018-07-12T18:28:54Z")

</div>

Thanks Wolfgang! With the timestamp selectors, I am able to filter them out. However, I do expect these are real time, because smartscape UI do update everything real time, but API does not. This is an inconsistence. If API can expose “unmonitored” status field in returned JSON object, that would be much better.
