<?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 hostGroupName entities for mobile applications in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-hostGroupName-entities-for-mobile-applications/m-p/241896#M3023</link>
    <description>&lt;P&gt;You need a couple of concatenated selectors to derive the host group from a mobile app, to be specific this one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;type(host_group),toRelationships.isInstanceOf(type(host),toRelationships.runsOnHost(type(service),toRelationships.calls(type(mobile_application),entityName("&amp;lt;your mobile app name&amp;gt;"))))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The entity structure is based on relationships and you can navigate it from either entity type to another:&lt;/P&gt;&lt;P&gt;Here are the 3 separated selectors used in above one:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;type(service),toRelationships.calls(type(mobile_application),entityName("foo"))&lt;/LI&gt;&lt;LI&gt;type(host),toRelationships.runsOnHost(type(service),entityName("foo"))&lt;/LI&gt;&lt;LI&gt;type(host_group),toRelationships.isInstanceOf(type(host),entityName("foo"))&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Thu, 04 Apr 2024 13:54:25 GMT</pubDate>
    <dc:creator>mark_bley</dc:creator>
    <dc:date>2024-04-04T13:54:25Z</dc:date>
    <item>
      <title>How to get hostGroupName entities for mobile applications?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-hostGroupName-entities-for-mobile-applications/m-p/237133#M2942</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; We are using below API to get mobile applications host groups data but its not getting host entities related to mobile application.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/api/v2/entities?entitySelector=type(HOST),hostGroupName(%entity_name)&amp;amp;from=now-5y&amp;amp;fields=+tags,+managementZones,+properties,+fromRelationships,+toRelationships&amp;amp;pageSize=4000"&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"entityId": "MOBILE_APPLICATION-556544",&lt;BR /&gt;"type": "MOBILE_APPLICATION",&lt;BR /&gt;"displayName": "Test",&lt;BR /&gt;"properties": {&lt;BR /&gt;"detectedName": "58baefdc-2771-4c84-9e78-453222",&lt;/P&gt;
&lt;P&gt;"mobileOsFamily": ["ANDROID"],&lt;BR /&gt;"customizedName": "Test"&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have tried replacing above&amp;nbsp;entity_name&amp;nbsp;with&amp;nbsp;entityId and&amp;nbsp;detectedName attribute values like below but its not getting any entities.&lt;/P&gt;
&lt;P&gt;/api/v2/entities?entitySelector=type(HOST),hostGroupName(58baefdc-2771-4c84-9e78-453222)&amp;amp;from=now-5y&amp;amp;fields=+tags,+managementZones,+properties,+fromRelationships,+toRelationships&amp;amp;pageSize=4000"&lt;/P&gt;
&lt;P&gt;/api/v2/entities?entitySelector=type(HOST),hostGroupName(MOBILE_APPLICATION-556544)&amp;amp;from=now-5y&amp;amp;fields=+tags,+managementZones,+properties,+fromRelationships,+toRelationships&amp;amp;pageSize=4000"&lt;/P&gt;
&lt;P&gt;Are we missing any thing here for getting hosts data for mobile applications ? How to get mobile applications hosts data here ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Sunil&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 13:40:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-hostGroupName-entities-for-mobile-applications/m-p/237133#M2942</guid>
      <dc:creator>mundlareddy</dc:creator>
      <dc:date>2024-08-08T13:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get hostGroupName entities for mobile applications</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-hostGroupName-entities-for-mobile-applications/m-p/241896#M3023</link>
      <description>&lt;P&gt;You need a couple of concatenated selectors to derive the host group from a mobile app, to be specific this one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;type(host_group),toRelationships.isInstanceOf(type(host),toRelationships.runsOnHost(type(service),toRelationships.calls(type(mobile_application),entityName("&amp;lt;your mobile app name&amp;gt;"))))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The entity structure is based on relationships and you can navigate it from either entity type to another:&lt;/P&gt;&lt;P&gt;Here are the 3 separated selectors used in above one:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;type(service),toRelationships.calls(type(mobile_application),entityName("foo"))&lt;/LI&gt;&lt;LI&gt;type(host),toRelationships.runsOnHost(type(service),entityName("foo"))&lt;/LI&gt;&lt;LI&gt;type(host_group),toRelationships.isInstanceOf(type(host),entityName("foo"))&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 04 Apr 2024 13:54:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-hostGroupName-entities-for-mobile-applications/m-p/241896#M3023</guid>
      <dc:creator>mark_bley</dc:creator>
      <dc:date>2024-04-04T13:54:25Z</dc:date>
    </item>
  </channel>
</rss>

