# Which API and field?: Indicator of brand new on-boarding hosts

**URL:** <https://community.dynatrace.com/t/which-api-and-field-indicator-of-brand-new-on-boarding-hosts/37278>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [November 14, 2022, 8:19pm UTC](https://community.dynatrace.com/t/which-api-and-field-indicator-of-brand-new-on-boarding-hosts/37278 "2022-11-14T20:19:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![avrildong](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@avrildong](https://community.dynatrace.com/u/avrildong)\
**Post date:** [November 14, 2022, 8:19pm UTC](https://community.dynatrace.com/t/which-api-and-field-indicator-of-brand-new-on-boarding-hosts/37278/1 "2022-11-14T20:19:04Z")

</div>

Use case: we intend to find out EXACT checklist of those brand-new-on-boarding hosts/one-agents during last 7 days or custom period. Those have to match with “Console \> Deployment status \> OneAgents” which EXCLUDE those preexisting-hosts/one-agents with re-enabled-monitor.

Issue:

hosts & oneagents API limitation \> those 2 API shown “firstSeenTimestamp” field re-count the datetime if already-on-boarded hosts restarted or one-agent service restarted. We need to exclude those cases but ONLY retrieve first-time-brand-new-on-board ones.Question: which API and field can reach above goal? Any solution for us to easily grab “brand-new-on-boarding hosts/one-agents during last 7 days or custom period”?

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [November 15, 2022, 1:48pm UTC](https://community.dynatrace.com/t/which-api-and-field-indicator-of-brand-new-on-boarding-hosts/37278/2 "2022-11-15T13:48:13Z")

</div>

Hi&nbsp;[@avrildong](https://community.dynatrace.com/user/47441),

Have you already checked this?

MONITORED\_AGENT\_REGISTERED: Hosts where the new OneAgent has been recognized.

[OneAgent on a host API | Dynatrace Docs](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/oneagent-on-host)

Maybe it could help.

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![avrildong](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@avrildong](https://community.dynatrace.com/u/avrildong)\
**Post date:** [November 15, 2022, 2:13pm UTC](https://community.dynatrace.com/t/which-api-and-field-indicator-of-brand-new-on-boarding-hosts/37278/3 "2022-11-15T14:13:12Z")

</div>

[@Mizső](https://community.dynatrace.com/user/47783)&nbsp;,

Thanks!

Have you already checked this? \> Yes, we have tried this API&nbsp;api/v1/oneagents plus api/v1/entity/infrastructure/hosts, however, “hosts & oneagents API limitation \> those 2 API shown “firstSeenTimestamp” field re-count the datetime if already-on-boarded hosts restarted or one-agent service restarted. We need to exclude those cases but ONLY retrieve first-time-brand-new-on-board ones.”.

Rgds, Avril

---

<div class="post-metadata">

**Author:** ![Ana.Kuzmenchuk](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Ana.Kuzmenchuk](https://community.dynatrace.com/u/Ana.Kuzmenchuk)\
**Post date:** [December 16, 2022, 8:35am UTC](https://community.dynatrace.com/t/which-api-and-field-indicator-of-brand-new-on-boarding-hosts/37278/4 "2022-12-16T08:35:14Z")

</div>

Hi&nbsp;[@avrildong](https://community.dynatrace.com/user/47441), were you able to find a solution for your specific use case maybe? If so, we’d really appreciate you sharing it with the Community&nbsp;:blush:

And if not yet, let’s bring this question to the top once again so more people see it and hope someone has the answer for you&nbsp;:wink: Cheers!

---

<div class="post-metadata">

**Author:** ![avrildong](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@avrildong](https://community.dynatrace.com/u/avrildong)\
**Post date:** [August 25, 2023, 9:26pm UTC](https://community.dynatrace.com/t/which-api-and-field-indicator-of-brand-new-on-boarding-hosts/37278/5 "2023-08-25T21:26:18Z")

</div>

[@Ana\_Kuzmenchuk](https://community.dynatrace.com/user/52768)&nbsp;and [@Mizső](https://community.dynatrace.com/user/47783)&nbsp;,&nbsp; thanks much for asking!&nbsp; Sorry I do not know why I missed this thread so that I reply late.

I believe the solution works, but we did not validate more.

use case:

“MONITORED\_AGENT\_REGISTERED” in&nbsp;api/v1/oneagents response&nbsp; “api\_v1\_oneagents\_1yr.response.json” \>&nbsp;“MONITORED\_AGENT\_REGISTERED” returned 5 hits (= 5 new on-board) vs&nbsp;“displayname” 10283 hits (total one-agents)

sample of 1 -

{  
“hostInfo”: {  
“entityId”: “HOST-0C400BF17DA7BB73”,  
“displayName”:  
…  
“faultyVersion”: null,  
“active”: null,  
“configuredMonitoringMode”: “FULL\_STACK”,  
“monitoringType”: “STANDALONE”,  
“autoUpdateSetting”: “DISABLED”,  
“updateStatus”: “UP2DATE”,  
“availableVersions”: [],  
“configuredMonitoringEnabled”: true,  
“availabilityState”: “MONITORED”,  
“detailedAvailabilityState”: “MONITORED\_AGENT\_REGISTERED”, \> this one  
“currentActiveGateId”: 1850586947,  
“currentActiveGateIds”: [  
…  
],
