<?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: How to get a host id with web request url using the dynatrace API in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-host-ID-with-web-request-URL-using-the-Dynatrace/m-p/208564#M2408</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/61314"&gt;@guihoon_hwang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try the&amp;nbsp;{Service:Instance} of&amp;nbsp;Split by dimension. Once you know the instance/host then, you can click on the host in your environment. The host ID will be displayed in the URL.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Babar&lt;/P&gt;</description>
    <pubDate>Thu, 30 Mar 2023 07:34:49 GMT</pubDate>
    <dc:creator>Babar_Qayyum</dc:creator>
    <dc:date>2023-03-30T07:34:49Z</dc:date>
    <item>
      <title>How to get a host ID with web request URL using the Dynatrace API?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-host-ID-with-web-request-URL-using-the-Dynatrace/m-p/208562#M2407</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;How do I get the Host Id and name of the Host where the service runs with the Url obtained from the Custom multidimensional analysis screen using the API&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="guihoon_hwang_1-1680159359194.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/10832i5E7FD734F414AD5A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="guihoon_hwang_1-1680159359194.png" alt="guihoon_hwang_1-1680159359194.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For example, when I got localhost:7878 like the picture above, I want to get the Id of the host where that request occurred with this.&lt;/P&gt;
&lt;P&gt;thanks,&lt;/P&gt;
&lt;P&gt;guihoon&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 14:03:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-host-ID-with-web-request-URL-using-the-Dynatrace/m-p/208562#M2407</guid>
      <dc:creator>guihoon_hwang</dc:creator>
      <dc:date>2024-08-20T14:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a host id with web request url using the dynatrace API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-host-ID-with-web-request-URL-using-the-Dynatrace/m-p/208564#M2408</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/61314"&gt;@guihoon_hwang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try the&amp;nbsp;{Service:Instance} of&amp;nbsp;Split by dimension. Once you know the instance/host then, you can click on the host in your environment. The host ID will be displayed in the URL.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Babar&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 07:34:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-host-ID-with-web-request-URL-using-the-Dynatrace/m-p/208564#M2408</guid>
      <dc:creator>Babar_Qayyum</dc:creator>
      <dc:date>2023-03-30T07:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a host id with web request url using the dynatrace API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-host-ID-with-web-request-URL-using-the-Dynatrace/m-p/208568#M2409</link>
      <description>&lt;P&gt;Hi, as far as I know {URL: Host} is not a dimension that can be used to extract entities via API. If you at least know the service name or id that is run, you can get host id via&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;api/v2/entities&lt;/PRE&gt;&lt;P&gt;using a similar entitySelector:&lt;/P&gt;&lt;P&gt;type(HOST),toRelationships.runsOnHost(type(SERVICE),entityName.equals(&lt;STRONG&gt;&amp;lt;SERVICE_NAME&amp;gt;&lt;/STRONG&gt;))&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;type(HOST),toRelationships.runsOnHost(type(SERVICE),entityId(&lt;STRONG&gt;&amp;lt;SERVICE_ENTITY_ID&amp;gt;&lt;/STRONG&gt;))&lt;/P&gt;&lt;P&gt;if you know service entity id.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 07:27:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-host-ID-with-web-request-URL-using-the-Dynatrace/m-p/208568#M2409</guid>
      <dc:creator>paolo_fumanelli</dc:creator>
      <dc:date>2023-03-30T07:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a host id with web request url using the dynatrace API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-host-ID-with-web-request-URL-using-the-Dynatrace/m-p/208569#M2410</link>
      <description>&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;Additionally,&amp;nbsp;May I know how to get a service id?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 08:15:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-host-ID-with-web-request-URL-using-the-Dynatrace/m-p/208569#M2410</guid>
      <dc:creator>guihoon_hwang</dc:creator>
      <dc:date>2023-03-30T08:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a host id with web request url using the dynatrace API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-host-ID-with-web-request-URL-using-the-Dynatrace/m-p/208570#M2411</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you for your answer.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 08:15:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-host-ID-with-web-request-URL-using-the-Dynatrace/m-p/208570#M2411</guid>
      <dc:creator>guihoon_hwang</dc:creator>
      <dc:date>2023-03-30T08:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a host id with web request url using the dynatrace API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-host-ID-with-web-request-URL-using-the-Dynatrace/m-p/208572#M2412</link>
      <description>&lt;P&gt;You can find service entity id by accessing service detail page, then look at URL, you'll find SERVICE-XYZXYZXYZ.&lt;/P&gt;&lt;P&gt;Bye&lt;BR /&gt;Paolo&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 08:30:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-host-ID-with-web-request-URL-using-the-Dynatrace/m-p/208572#M2412</guid>
      <dc:creator>paolo_fumanelli</dc:creator>
      <dc:date>2023-03-30T08:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a host id with web request url using the dynatrace API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-host-ID-with-web-request-URL-using-the-Dynatrace/m-p/208573#M2413</link>
      <description>&lt;P&gt;Yes, but is there any way to get it through API?&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;/P&gt;&lt;P&gt;guihoon&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 08:31:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-host-ID-with-web-request-URL-using-the-Dynatrace/m-p/208573#M2413</guid>
      <dc:creator>guihoon_hwang</dc:creator>
      <dc:date>2023-03-30T08:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a host id with web request url using the dynatrace API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-host-ID-with-web-request-URL-using-the-Dynatrace/m-p/208578#M2414</link>
      <description>&lt;P&gt;In order to retrieve service entity id via API, you should know service name and any other service tag or property that can be helpful to filter exactly the service you are looking for.&lt;/P&gt;&lt;P&gt;Using the same API mentioned in my comment above, you can find your service id by providing the following entity selector if you know the entire or part of the service name:&lt;/P&gt;&lt;P&gt;type(SERVICE),entityName.equals() or&amp;nbsp;type(SERVICE),entityName.contains() or&amp;nbsp;type(SERVICE),entityName.startsWith()&lt;/P&gt;&lt;P&gt;As said above, you can add filters by tag and other properties.&lt;/P&gt;&lt;P&gt;I suggest you to take a look here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/entity-v2/entity-selector" target="_blank"&gt;Environment API v2 - Entity selector | Dynatrace Docs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;bye&lt;BR /&gt;Paolo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 10:22:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-host-ID-with-web-request-URL-using-the-Dynatrace/m-p/208578#M2414</guid>
      <dc:creator>paolo_fumanelli</dc:creator>
      <dc:date>2023-03-30T10:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a host id with web request url using the dynatrace API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-host-ID-with-web-request-URL-using-the-Dynatrace/m-p/208692#M2421</link>
      <description>&lt;P&gt;Thank you. It was very helpful.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 00:27:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-a-host-ID-with-web-request-URL-using-the-Dynatrace/m-p/208692#M2421</guid>
      <dc:creator>guihoon_hwang</dc:creator>
      <dc:date>2023-03-31T00:27:40Z</dc:date>
    </item>
  </channel>
</rss>

