<?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 entities only that have problems using API? in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-entities-only-that-have-problems-using-API/m-p/223345#M2657</link>
    <description>&lt;P&gt;Hello. I am trying similar thing: I want to list all open problems but only with some fields. I want problem title and hostname. Unfortunately I can't get the hostname into the resulting JSON. I tried name, hostname, but it doesn't put it there and I get result completely without hostnames or with hostnames but also with many other information which I don't want. The best thing would be to be able to get a CSV format result, but I guess this is not possible?&lt;/P&gt;</description>
    <pubDate>Tue, 19 Sep 2023 12:07:23 GMT</pubDate>
    <dc:creator>McVitas</dc:creator>
    <dc:date>2023-09-19T12:07:23Z</dc:date>
    <item>
      <title>How to get entities only that have problems using API?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-entities-only-that-have-problems-using-API/m-p/207475#M2351</link>
      <description>&lt;P&gt;Does anyone know how to get a list of entities that have problems "only"?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What endpoint to be used with parameters? if it is possible please show me example,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 17:21:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-entities-only-that-have-problems-using-API/m-p/207475#M2351</guid>
      <dc:creator>jamstelus</dc:creator>
      <dc:date>2023-03-20T17:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to get entities only that have problems using API?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-entities-only-that-have-problems-using-API/m-p/207476#M2352</link>
      <description>&lt;P&gt;Do you mean the only entities that have open problems? If so: you could you the normal problem api. These APIs give information about impacted entities / root causes etcetera.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using a small script you can easily get a result that provides exactly what you'll need.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/problems-v2/problems/get-problems-list" target="_blank"&gt;https://www.dynatrace.com/support/help/dynatrace-api/environment-api/problems-v2/problems/get-problems-list&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Michiel&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 17:34:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-entities-only-that-have-problems-using-API/m-p/207476#M2352</guid>
      <dc:creator>michiel_otten</dc:creator>
      <dc:date>2023-03-20T17:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get entities only that have problems using API?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-entities-only-that-have-problems-using-API/m-p/223345#M2657</link>
      <description>&lt;P&gt;Hello. I am trying similar thing: I want to list all open problems but only with some fields. I want problem title and hostname. Unfortunately I can't get the hostname into the resulting JSON. I tried name, hostname, but it doesn't put it there and I get result completely without hostnames or with hostnames but also with many other information which I don't want. The best thing would be to be able to get a CSV format result, but I guess this is not possible?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 12:07:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-entities-only-that-have-problems-using-API/m-p/223345#M2657</guid>
      <dc:creator>McVitas</dc:creator>
      <dc:date>2023-09-19T12:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get entities only that have problems using API?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-entities-only-that-have-problems-using-API/m-p/223402#M2658</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So basically the API gives you a LOT of field. You can't reduce this according to the documentation:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="854.4px" height="236px"&gt;&lt;DIV class=""&gt;&lt;P&gt;A list of additional problem properties you can add to the response.&lt;/P&gt;&lt;P&gt;The following properties are available (&lt;STRONG&gt;all other properties are always included and you can't remove them from the response&lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;evidenceDetails: The details of the root cause.&lt;/LI&gt;&lt;LI&gt;impactAnalysis: The impact analysis of the problem on other entities/users.&lt;/LI&gt;&lt;LI&gt;recentComments: A list of the most recent comments to the problem.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;To add properties, specify them as a comma-separated list (for example,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;evidenceDetails,impactAnalysis).&lt;/P&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Second part is the question about HOST. What do you want to know exactly? The root cause?&lt;BR /&gt;In the JSON response there will be something like this:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;rootCauseEntity"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;        &lt;SPAN class=""&gt;"entityId"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;          &lt;SPAN class=""&gt;"id"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"PROCESS_GROUP-511F9ECC59F68DD4"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;          &lt;SPAN class=""&gt;"type"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"PROCESS_GROUP"&lt;/SPAN&gt;
        },
        &lt;SPAN class=""&gt;"name"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"Oracle Database"&lt;/SPAN&gt;
      }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;In case this is a HOST, you will have the host ID there.&amp;nbsp; If you want to customize something to XML, you'll probably need to write a simple custom script.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;by the way: adding field &lt;STRONG&gt;evidenceDetails&lt;/STRONG&gt; can give you more infomation about the host.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 15:48:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-entities-only-that-have-problems-using-API/m-p/223402#M2658</guid>
      <dc:creator>michiel_otten</dc:creator>
      <dc:date>2023-09-19T15:48:39Z</dc:date>
    </item>
  </channel>
</rss>

