<?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 Retrieve all the services of a process group using API call in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-all-the-services-of-a-process-group-using-API-call/m-p/240761#M2991</link>
    <description>&lt;P&gt;Hello Team,&lt;/P&gt;
&lt;P&gt;I am trying to retrieve all the services of a process group through api call&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;/api/v2/entities and below&amp;nbsp;entitySelector&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;entitySelector=type(SERVICE),entityId($PROCESS_GROUP_ID)&amp;amp;fields=fromRelationships,tags" -H "accept: application/json"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;its responding with null value. Please help me on this&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Aug 2024 13:37:27 GMT</pubDate>
    <dc:creator>nayana</dc:creator>
    <dc:date>2024-08-08T13:37:27Z</dc:date>
    <item>
      <title>Retrieve all the services of a process group using API call</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-all-the-services-of-a-process-group-using-API-call/m-p/240761#M2991</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;
&lt;P&gt;I am trying to retrieve all the services of a process group through api call&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;/api/v2/entities and below&amp;nbsp;entitySelector&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;entitySelector=type(SERVICE),entityId($PROCESS_GROUP_ID)&amp;amp;fields=fromRelationships,tags" -H "accept: application/json"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;its responding with null value. Please help me on this&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 13:37:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-all-the-services-of-a-process-group-using-API-call/m-p/240761#M2991</guid>
      <dc:creator>nayana</dc:creator>
      <dc:date>2024-08-08T13:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve all the services of a process group using api call</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-all-the-services-of-a-process-group-using-API-call/m-p/240810#M2992</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would use Data Explorer to filter information you are interested:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AntonPineiro_0-1711104926228.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/18476iA6F311A936146775/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AntonPineiro_0-1711104926228.png" alt="AntonPineiro_0-1711104926228.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And you can use a query as that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -X GET "https://XXXXX.live.dynatrace.com/api/v2/metrics/query?metricSelector=(builtin:service.errors.total.rate:filter(and(or(in(\"dt.entity.service\",entitySelector(\"type(service),fromRelationship.runsOn(type(PROCESS_GROUP),entityName.equals(~\"XXXXX~\"))\"))))):splitBy(\"dt.entity.service\"):sort(value(auto,descending))):names&amp;amp;from=-7d&amp;amp;to=now&amp;amp;resolution=Inf"  -H "accept: application/json"  -H "Authorization: Api-Token XXXX-XXXX"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another option can be user DQL is you are in a Grail enabled tenant.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 07:39:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-all-the-services-of-a-process-group-using-API-call/m-p/240810#M2992</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2024-03-25T07:39:29Z</dc:date>
    </item>
  </channel>
</rss>

