<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Correlating ObjectIds with EntityIds? in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Correlating-ObjectIds-with-EntityIds/m-p/201369#M2233</link>
    <description>&lt;P&gt;Hi having some issues with my python script decoding the base-64 object, just figured out that I needed to pad the objectId to get it to decode properly.&amp;nbsp; Just returned from the holidays so I'm back working on it.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2023 15:17:40 GMT</pubDate>
    <dc:creator>jphchan</dc:creator>
    <dc:date>2023-01-03T15:17:40Z</dc:date>
    <item>
      <title>Correlating ObjectIds with EntityIds?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Correlating-ObjectIds-with-EntityIds/m-p/198003#M2124</link>
      <description>&lt;P&gt;Hi Everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having some trouble understanding how to map an ObjectId with an EntityId... or am I not thinking about this correctly?&amp;nbsp; Here is the context:&amp;nbsp; I'm trying to programmatically enable/disable monitoring or changing the monitoring mode on various hosts.&amp;nbsp; I'm quite familiar with the APIs used for getting things, but I'm only beginning to look at the Settings API.&amp;nbsp; It looks like the Settings API works with ObjectIds, but retrieving hosts gives you EntityIds.&amp;nbsp; So, I can locate the hosts I want to manipulate, but ... I can't map it to the objectId that contains the settings I want to update.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I going about this all wrong?&amp;nbsp; Am I crazy to approach it this way??&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Jeff.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 00:42:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Correlating-ObjectIds-with-EntityIds/m-p/198003#M2124</guid>
      <dc:creator>jphchan</dc:creator>
      <dc:date>2022-11-09T00:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Correlating ObjectIds with EntityIds?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Correlating-ObjectIds-with-EntityIds/m-p/198154#M2131</link>
      <description>&lt;P&gt;If you're talking about the "&lt;STRONG&gt;/api/v2/settings/objects?schemaIds=builtin:host.monitoring&lt;/STRONG&gt;" endpoint, then It seems that the items' ObjectID is base64-encoded bitmap-style object that includes the Entity name in it. I'm not sure about the full encoded payload, but if you remove the first 12 bytes and last 8 bytes, you'd get a TLV schemed data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example from the tenant "&lt;STRONG&gt;umsaywsjuo&lt;/STRONG&gt;":&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ObjectId: vu9U3hXa3q0AAAABABdidWlsdGluOmhvc3QubW9uaXRvcmluZwAESE9TVAAQRjk5REE0RUUwQjAwRjkyRQAkOGNmNDZlMzAtYTcxNC0zMzYzLWE0MzgtNmI2Y2JjODJhNjAxvu9U3hXa3q0

Base64 decoded value: \xBE\xEFT\xDE\x15\xDA\xDE\xAD\x00\x00\x00\x01\x00\x17builtin:host.monitoring\x00\x04HOST\x00\x10F99DA4EE0B00F92E\x00$8cf46e30-a714-3363-a438-6b6cbc82a601\xBE\xEFT\xDE\x15\xDA\xDE\xAD

Extracted TLV values:
 - builtin:host.monitoring
 - HOST
 - F99DA4EE0B00F92E
 - 8cf46e30-a714-3363-a438-6b6cbc82a601&lt;/LI-CODE&gt;&lt;P&gt;Looking at the Entities in the mentioned domain it seems to add up:&amp;nbsp;&lt;A href="https://umsaywsjuo.dev.dynatracelabs.com/ui/entity/HOST-F99DA4EE0B00F92E" target="_blank"&gt;https://umsaywsjuo.dev.dynatracelabs.com/ui/entity/HOST-F99DA4EE0B00F92E&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 21:52:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Correlating-ObjectIds-with-EntityIds/m-p/198154#M2131</guid>
      <dc:creator>Tiit_Hallas</dc:creator>
      <dc:date>2022-11-10T21:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Correlating ObjectIds with EntityIds?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Correlating-ObjectIds-with-EntityIds/m-p/198329#M2136</link>
      <description>&lt;P&gt;Wow thanks I did not know about decomposing the ObjectIds into extracted values... this is really helpful thanks!&amp;nbsp; I'll check this out and reply back for everyone's benefit if they were experiencing the same question I have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 19:08:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Correlating-ObjectIds-with-EntityIds/m-p/198329#M2136</guid>
      <dc:creator>jphchan</dc:creator>
      <dc:date>2022-11-14T19:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Correlating ObjectIds with EntityIds?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Correlating-ObjectIds-with-EntityIds/m-p/200527#M2195</link>
      <description>&lt;P&gt;Please let me know if the solution helped you and if so, please accept the answer as a solution as well &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Cheers!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 20:44:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Correlating-ObjectIds-with-EntityIds/m-p/200527#M2195</guid>
      <dc:creator>Tiit_Hallas</dc:creator>
      <dc:date>2022-12-14T20:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Correlating ObjectIds with EntityIds?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Correlating-ObjectIds-with-EntityIds/m-p/200529#M2196</link>
      <description>&lt;P&gt;Sorry for the delayed response!&amp;nbsp; We've been very busy with other priorities so I haven't had a chance to verify but on very preliminary tests, this looks extremely promising and accurate.&amp;nbsp; I will accept the solution once I've been able to verify, which I'm trying to carve out some time in my schedule to do.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 21:50:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Correlating-ObjectIds-with-EntityIds/m-p/200529#M2196</guid>
      <dc:creator>jphchan</dc:creator>
      <dc:date>2022-12-14T21:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Correlating ObjectIds with EntityIds?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Correlating-ObjectIds-with-EntityIds/m-p/201369#M2233</link>
      <description>&lt;P&gt;Hi having some issues with my python script decoding the base-64 object, just figured out that I needed to pad the objectId to get it to decode properly.&amp;nbsp; Just returned from the holidays so I'm back working on it.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 15:17:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Correlating-ObjectIds-with-EntityIds/m-p/201369#M2233</guid>
      <dc:creator>jphchan</dc:creator>
      <dc:date>2023-01-03T15:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Correlating ObjectIds with EntityIds?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Correlating-ObjectIds-with-EntityIds/m-p/201409#M2234</link>
      <description>&lt;P&gt;I've accepted the solution as I have tested the above and am able to break down the objectId into it's components, thus able to correlate that with an entity name.&amp;nbsp; What is still to be resolved is why none of the settings objects returned in the get all settings object call does not match even a single one of the hosts I want to disable.&amp;nbsp; I gather that is another question to ask .&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 23:16:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Correlating-ObjectIds-with-EntityIds/m-p/201409#M2234</guid>
      <dc:creator>jphchan</dc:creator>
      <dc:date>2023-01-03T23:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Correlating ObjectIds with EntityIds?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Correlating-ObjectIds-with-EntityIds/m-p/235209#M2878</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/56833"&gt;@Tiit_Hallas&lt;/a&gt;&amp;nbsp;, for notifications we are also seeing new objectId of length 140, So how to decode that value? And same for management Zones how to decode them?&lt;/P&gt;&lt;P&gt;Looking for your reply.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 10:32:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Correlating-ObjectIds-with-EntityIds/m-p/235209#M2878</guid>
      <dc:creator>mango_byte</dc:creator>
      <dc:date>2024-01-23T10:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Correlating ObjectIds with EntityIds?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Correlating-ObjectIds-with-EntityIds/m-p/235222#M2879</link>
      <description>&lt;P&gt;Seems to be a similar base64 encoded payload, as in the main question, so the similar approach can be used to see the values in the encoded payload&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 11:28:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Correlating-ObjectIds-with-EntityIds/m-p/235222#M2879</guid>
      <dc:creator>Tiit_Hallas</dc:creator>
      <dc:date>2024-01-23T11:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Correlating ObjectIds with EntityIds?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Correlating-ObjectIds-with-EntityIds/m-p/235310#M2881</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/56833"&gt;@Tiit_Hallas&lt;/a&gt;&amp;nbsp;thanks for replying, I have one question we have "751105553490959515" entityId for managementZones which we fetched using v1 API, but now after using v2 API we are getting "vu9U3hXa3q0AAAABABhidWlsdGluOm1hbmFnZW1lbnQtem9uZXMABnRlbmFudAAGdGVuYW50ACRiNmYyYjY4YS1hZmExLTQyODgtYjY0Mi0zNjA1YmJlYzE0MzW-71TeFdrerQ", so how to decode this to older value?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 07:32:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Correlating-ObjectIds-with-EntityIds/m-p/235310#M2881</guid>
      <dc:creator>mango_byte</dc:creator>
      <dc:date>2024-01-24T07:32:48Z</dc:date>
    </item>
  </channel>
</rss>

