# No objectif for host

**URL:** <https://community.dynatrace.com/t/no-objectif-for-host/41987>\
**Category:** Dynatrace API\
**Tags:** hosts-classic\
**Created:** [October 9, 2023, 2:00pm UTC](https://community.dynatrace.com/t/no-objectif-for-host/41987 "2023-10-09T14:00:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![MDA](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@MDA](https://community.dynatrace.com/u/MDA)\
**Post date:** [October 9, 2023, 2:00pm UTC](https://community.dynatrace.com/t/no-objectif-for-host/41987/1 "2023-10-09T14:00:24Z")

</div>

Hello does anyone know why some host have no objectid. I try to take obectid for automatic disable monitoring and somme host haven’t objectid !

---

<div class="post-metadata">

**Author:** ![victor\_balbuena](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/victor_balbuena/32/9773_2.png) [@victor\_balbuena](https://community.dynatrace.com/u/victor_balbuena)\
**Post date:** [October 9, 2023, 2:10pm UTC](https://community.dynatrace.com/t/no-objectif-for-host/41987/2 "2023-10-09T14:10:03Z")

</div>

Can you elaborate more on your question? Hosts have an&nbsp; **Entity&nbsp;ID** which looks like&nbsp; **HOST-XXXXXXXXXXXXXXXX** where the Xs represent an hexadecimal number. Object IDs are used in the [Settings API](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings)&nbsp;and refer to configuration elements, like management zones, tags, alerting profiles, etc.

Basically, a host is an entity and has an entity ID and a configuration element is some kind of setting of Dynatrace and has an object ID.

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [October 9, 2023, 2:29pm UTC](https://community.dynatrace.com/t/no-objectif-for-host/41987/3 "2023-10-09T14:29:27Z")

</div>

All hosts monitored with OneAgent should be available to be manged thru the schema builtin:host.monitoring.

Can you provide more details of this host you are not seeing its objectid?

---

<div class="post-metadata">

**Author:** ![MDA](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@MDA](https://community.dynatrace.com/u/MDA)\
**Post date:** [October 9, 2023, 2:48pm UTC](https://community.dynatrace.com/t/no-objectif-for-host/41987/4 "2023-10-09T14:48:00Z")

</div>

Hello Victor,

yes, in fact if i take setting obect API(GET[/settings/objects](https://dynatrace.dsic.minint.fr/e/772d6733-8abb-4283-87f4-8a512c838f2e/rest-api-doc/index.jsp?urls.primaryName=Environment%20API%20v2#/Settings%20-%20Objects/getSettingsObjects)&nbsp;Lists persisted settings objects)

with Hostid on scope , you have a result

 ![MDA_0-1696862516402.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/a/9a6bd1fc046269872646707fd4b3a7486c3530b7.png)

but sometime

![MDA_1-1696862602150.png](https://global.discourse-cdn.com/dynatrace/original/2X/8/83f7f614e51b3384b885f879e7156514f54ec257.png)

So on the past whe have an API for disabled monitoring, now it seems we have to use seting object API, but how can we put (PUT[/settings/objects/{objectId}](https://metro.dynatrace.dsic.minint.fr/e/8f1d8e6e-fd30-499b-9d4d-989bfdc4cda0/rest-api-doc/index.jsp?urls.primaryName=Environment%20API%20v2#/Settings%20-%20Objects/putSettingsObjectByObjectId)&nbsp;Updates an existing settings object)

new value, the required element is objectid !

Regards

---

<div class="post-metadata">

**Author:** ![MDA](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@MDA](https://community.dynatrace.com/u/MDA)\
**Post date:** [October 9, 2023, 3:23pm UTC](https://community.dynatrace.com/t/no-objectif-for-host/41987/5 "2023-10-09T15:23:34Z")

</div>

Hi,dannemca

there is a lot off hosts, it’s not one host, and on different cluster. In my example, i 've 5 objectid / 24 hosts.

i’ve to check the diff, it seems thats the 5 host (good objectid) have no host group set.

Regards

Regards

---

<div class="post-metadata">

**Author:** ![MDA](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@MDA](https://community.dynatrace.com/u/MDA)\
**Post date:** [October 10, 2023, 6:56am UTC](https://community.dynatrace.com/t/no-objectif-for-host/41987/6 "2023-10-10T06:56:41Z")

</div>

Hello,

i confirm the only difference is : the five host entity with ojectid haven’t host group setting.

Regards

---

<div class="post-metadata">

**Author:** ![victor\_balbuena](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/victor_balbuena/32/9773_2.png) [@victor\_balbuena](https://community.dynatrace.com/u/victor_balbuena)\
**Post date:** [October 10, 2023, 7:07am UTC](https://community.dynatrace.com/t/no-objectif-for-host/41987/7 "2023-10-10T07:07:58Z")

</div>

So if I get this correctly, the first GET gives you an object ID which refers to the settings object for&nbsp;“automatic disable monitoring”. However, if this configuration has not been modified previously, you don’t get an object ID for it, it’s just empty as your second example. In that case, consider that the PUT request is for modifying an existing configuration, what you need to use here is the [POST request](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings/objects/post-object) to create a new configuration, using the actual HOST ID in the scope.

So if the object ID is there, you can use PUT. If the object ID is not there for one host, you can use POST to create it an assign an object ID to that host’s settings.

---

<div class="post-metadata">

**Author:** ![MDA](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@MDA](https://community.dynatrace.com/u/MDA)\
**Post date:** [October 10, 2023, 9:11am UTC](https://community.dynatrace.com/t/no-objectif-for-host/41987/8 "2023-10-10T09:11:36Z")

</div>

Thank you Victor,

I focused on this obectid and the solution was in front of me with the&nbsp;POST API.

Have a good day
