<?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: Use rest API to query for host by discoveredName? in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Use-rest-API-to-query-for-host-by-discoveredName/m-p/125452#M1085</link>
    <description>&lt;P&gt;You have to options in my opinion. First would be downloading full list of hosts, and look through whole list. In such case you can create local cache of pairs hostName : hostID in system that is fetching data from API. &lt;/P&gt;&lt;P&gt;Second option you can consider is creating tag rule, that will assign to all hosts tag with DetectedHostName as value.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://www.dynatrace.com/support/help/shortlink/tagging#how-to-define-an-automatically-applied-tag" target="_blank"&gt;https://www.dynatrace.com/support/help/shortlink/tagging#how-to-define-an-automatically-applied-tag&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Than you will be able to filter list of hosts by tag:&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/environment-api/topology-and-smartscape/hosts-api/get-all/" target="_blank"&gt;https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/environment-api/topology-and-smartscape/hosts-api/get-all/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Sebastian &lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Sat, 23 Nov 2019 06:53:31 GMT</pubDate>
    <dc:creator>skrystosik</dc:creator>
    <dc:date>2019-11-23T06:53:31Z</dc:date>
    <item>
      <title>Use rest API to query for host by discoveredName?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Use-rest-API-to-query-for-host-by-discoveredName/m-p/125451#M1084</link>
      <description>&lt;P&gt;I need a way to query for a host by discoveredName, in order to retrieve the EntityID. Upon examining the api/v1/entity/infrastructure/hosts endpoint documentation, I don't see a way to specify discoveredName as a filter criteria. I'm pretty new to this API, so I may be missing something.&lt;/P&gt;&lt;P&gt;If this is the incorrect forum, please direct me to a proper destination.&lt;/P&gt;&lt;P&gt;Thank you for any assistance!&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Nov 2019 12:53:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Use-rest-API-to-query-for-host-by-discoveredName/m-p/125451#M1084</guid>
      <dc:creator>scott_johnson</dc:creator>
      <dc:date>2019-11-22T12:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Use rest API to query for host by discoveredName?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Use-rest-API-to-query-for-host-by-discoveredName/m-p/125452#M1085</link>
      <description>&lt;P&gt;You have to options in my opinion. First would be downloading full list of hosts, and look through whole list. In such case you can create local cache of pairs hostName : hostID in system that is fetching data from API. &lt;/P&gt;&lt;P&gt;Second option you can consider is creating tag rule, that will assign to all hosts tag with DetectedHostName as value.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://www.dynatrace.com/support/help/shortlink/tagging#how-to-define-an-automatically-applied-tag" target="_blank"&gt;https://www.dynatrace.com/support/help/shortlink/tagging#how-to-define-an-automatically-applied-tag&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Than you will be able to filter list of hosts by tag:&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/environment-api/topology-and-smartscape/hosts-api/get-all/" target="_blank"&gt;https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/environment-api/topology-and-smartscape/hosts-api/get-all/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Sebastian &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 23 Nov 2019 06:53:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Use-rest-API-to-query-for-host-by-discoveredName/m-p/125452#M1085</guid>
      <dc:creator>skrystosik</dc:creator>
      <dc:date>2019-11-23T06:53:31Z</dc:date>
    </item>
  </channel>
</rss>

