<?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: List all incoming process connections using API in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/List-all-incoming-process-connections-using-API/m-p/257147#M3399</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/12887"&gt;@holst&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for raising such concern.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;please note, that Topology &amp;amp; Smartscape - Process group is &lt;STRONG&gt;no longer available under environment Api v1&lt;/STRONG&gt; and it's accessible through &lt;STRONG&gt;environment Api v2&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;for which it will require creating an access token with "entities.read" scope.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Peter_Youssef_0-1727293429651.png" style="width: 755px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22893i42923442C0CC2CB8/image-dimensions/755x251?v=v2" width="755" height="251" role="button" title="Peter_Youssef_0-1727293429651.png" alt="Peter_Youssef_0-1727293429651.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Having admin privileges&lt;/STRONG&gt;&amp;gt; go to environment Api v2 &amp;gt; monitored entities &amp;gt; unlock using the created token, otherwise you should have at least the right to create personal access token with "environment:roles:viewer" &lt;STRONG&gt;otherwise&lt;/STRONG&gt; the Dynatrace admin will create the token and provide you with the target API to utilize constantly as long as the token will never expire.&lt;/LI&gt;&lt;LI&gt;start specifying the below parameters to get the intended result.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Peter_Youssef_1-1727294304180.png" style="width: 779px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22894i45D6CC97F28A54D0/image-dimensions/779x257?v=v2" width="779" height="257" role="button" title="Peter_Youssef_1-1727294304180.png" alt="Peter_Youssef_1-1727294304180.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Peter_Youssef_2-1727294505202.png" style="width: 779px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22895i60AC1BD26C99B0A3/image-dimensions/779x405?v=v2" width="779" height="405" role="button" title="Peter_Youssef_2-1727294505202.png" alt="Peter_Youssef_2-1727294505202.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for monthly result&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Peter_Youssef_3-1727294576353.png" style="width: 779px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22896i2270FB116855A745/image-dimensions/779x366?v=v2" width="779" height="366" role="button" title="Peter_Youssef_3-1727294576353.png" alt="Peter_Youssef_3-1727294576353.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for sorting&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Peter_Youssef_4-1727294678644.png" style="width: 784px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22897iCDB9C28F560C8434/image-dimensions/784x96?v=v2" width="784" height="96" role="button" title="Peter_Youssef_4-1727294678644.png" alt="Peter_Youssef_4-1727294678644.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Execute and the below result message "200" should appear and you will be able to download the Json file.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Peter_Youssef_5-1727294745636.png" style="width: 818px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22898iD84E5B8889D73465/image-dimensions/818x92?v=v2" width="818" height="92" role="button" title="Peter_Youssef_5-1727294745636.png" alt="Peter_Youssef_5-1727294745636.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for the curl bash you should receive the curl command to call the api externally&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;curl -X 'GET' \&lt;BR /&gt;'&lt;A href="https://abcdef/e/env_id/api/v2/entities?pageSize=500&amp;amp;entitySelector=type%28HOST%29%2CtoRelationships.isProcessOf%28type%28PROCESS_GROUP_INSTANCE%29%2CtoRelationships.isNetworkClientOf%28type%28PROCESS_GROUP_INSTANCE%29%2CsoftwareTechnologies%28MICROSOFT_SQL_SERVER%29%29&amp;amp;from=now&amp;amp;to=-30d&amp;amp;sort=sort%3D%2Bname" target="_blank"&gt;https://abcdef/e/env_id/api/v2/entities?pageSize=500&amp;amp;entitySelector=type%28HOST%29%2CtoRelationships.isProcessOf%28type%28PROCESS_GROUP_INSTANCE%29%2CtoRelationships.isNetworkClientOf%28type%28PROCESS_GROUP_INSTANCE%29%2CsoftwareTechnologies%28MICROSOFT_SQL_SERVER%29%29&amp;amp;from=now&amp;amp;to=-30d&amp;amp;sort=sort%3D%2Bname&lt;/A&gt;' \&lt;BR /&gt;-H 'accept: application/json; charset=utf-8'&lt;/P&gt;&lt;P&gt;You can customize the entity selector as per actual requirements as described by&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/53547"&gt;@axel_tapia&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Peter.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2024 20:19:15 GMT</pubDate>
    <dc:creator>Peter_Youssef</dc:creator>
    <dc:date>2024-09-25T20:19:15Z</dc:date>
    <item>
      <title>List all incoming process connections using API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/List-all-incoming-process-connections-using-API/m-p/254913#M3376</link>
      <description>&lt;P&gt;We have hundreds of Hosts, and among them like 50 running MS SQL database. Now we want to list all hosts/processes calling these MS SQL databases.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a single host I can select the MS SQL process and use UI to see incoming processes.&amp;nbsp; Now I want to do that for all servers, using API.&amp;nbsp; I cant find anything how to do this in scale.&amp;nbsp; We dont want to do it manually, becuase even if we spend a couple of hours doing it manually, we need an updated report next month.&lt;/P&gt;&lt;P&gt;Any ideas or suggestions?&lt;/P&gt;&lt;P&gt;NOTE, majority of Hosts only have Infrastructure mode agent.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 09:11:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/List-all-incoming-process-connections-using-API/m-p/254913#M3376</guid>
      <dc:creator>holst</dc:creator>
      <dc:date>2024-09-04T09:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: List all incoming process connections using API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/List-all-incoming-process-connections-using-API/m-p/255362#M3377</link>
      <description>&lt;P&gt;Not sure if this is what you are look for, I think you can get that by using entities API.&lt;/P&gt;&lt;P&gt;entitySelector&amp;nbsp; query:&lt;/P&gt;&lt;PRE&gt;type(HOST),toRelationships.isProcessOf(type(PROCESS_GROUP_INSTANCE),toRelationships.isNetworkClientOf(type(PROCESS_GROUP_INSTANCE),softwareTechnologies(MICROSOFT_SQL_SERVER))&lt;/PRE&gt;&lt;P&gt;This will bring all host that have any PROCESS_GROUP_INSTANCE talking to any SQL Server PROCESS_GROUP_INSTANCES.&lt;/P&gt;&lt;P&gt;Curl example:&lt;/P&gt;&lt;PRE&gt;curl -X 'GET' \&lt;BR /&gt;'[dynatrace_url]/api/v2/entities?entitySelector=type(HOST),toRelationships.isProcessOf(type(PROCESS_GROUP_INSTANCE),toRelationships.isNetworkClientOf(type(PROCESS_GROUP_INSTANCE),softwareTechnologies(MICROSOFT_SQL_SERVER)))' \&lt;BR /&gt;-H 'accept: application/json; charset=utf-8' \&lt;BR /&gt;-H 'Authorization: Api-Token dt0c01.XXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same query can be used in auto-tagging rule or management zone.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 16:39:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/List-all-incoming-process-connections-using-API/m-p/255362#M3377</guid>
      <dc:creator>axel_tapia</dc:creator>
      <dc:date>2024-09-10T16:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: List all incoming process connections using API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/List-all-incoming-process-connections-using-API/m-p/257147#M3399</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/12887"&gt;@holst&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for raising such concern.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;please note, that Topology &amp;amp; Smartscape - Process group is &lt;STRONG&gt;no longer available under environment Api v1&lt;/STRONG&gt; and it's accessible through &lt;STRONG&gt;environment Api v2&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;for which it will require creating an access token with "entities.read" scope.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Peter_Youssef_0-1727293429651.png" style="width: 755px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22893i42923442C0CC2CB8/image-dimensions/755x251?v=v2" width="755" height="251" role="button" title="Peter_Youssef_0-1727293429651.png" alt="Peter_Youssef_0-1727293429651.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Having admin privileges&lt;/STRONG&gt;&amp;gt; go to environment Api v2 &amp;gt; monitored entities &amp;gt; unlock using the created token, otherwise you should have at least the right to create personal access token with "environment:roles:viewer" &lt;STRONG&gt;otherwise&lt;/STRONG&gt; the Dynatrace admin will create the token and provide you with the target API to utilize constantly as long as the token will never expire.&lt;/LI&gt;&lt;LI&gt;start specifying the below parameters to get the intended result.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Peter_Youssef_1-1727294304180.png" style="width: 779px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22894i45D6CC97F28A54D0/image-dimensions/779x257?v=v2" width="779" height="257" role="button" title="Peter_Youssef_1-1727294304180.png" alt="Peter_Youssef_1-1727294304180.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Peter_Youssef_2-1727294505202.png" style="width: 779px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22895i60AC1BD26C99B0A3/image-dimensions/779x405?v=v2" width="779" height="405" role="button" title="Peter_Youssef_2-1727294505202.png" alt="Peter_Youssef_2-1727294505202.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for monthly result&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Peter_Youssef_3-1727294576353.png" style="width: 779px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22896i2270FB116855A745/image-dimensions/779x366?v=v2" width="779" height="366" role="button" title="Peter_Youssef_3-1727294576353.png" alt="Peter_Youssef_3-1727294576353.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for sorting&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Peter_Youssef_4-1727294678644.png" style="width: 784px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22897iCDB9C28F560C8434/image-dimensions/784x96?v=v2" width="784" height="96" role="button" title="Peter_Youssef_4-1727294678644.png" alt="Peter_Youssef_4-1727294678644.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Execute and the below result message "200" should appear and you will be able to download the Json file.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Peter_Youssef_5-1727294745636.png" style="width: 818px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22898iD84E5B8889D73465/image-dimensions/818x92?v=v2" width="818" height="92" role="button" title="Peter_Youssef_5-1727294745636.png" alt="Peter_Youssef_5-1727294745636.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for the curl bash you should receive the curl command to call the api externally&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;curl -X 'GET' \&lt;BR /&gt;'&lt;A href="https://abcdef/e/env_id/api/v2/entities?pageSize=500&amp;amp;entitySelector=type%28HOST%29%2CtoRelationships.isProcessOf%28type%28PROCESS_GROUP_INSTANCE%29%2CtoRelationships.isNetworkClientOf%28type%28PROCESS_GROUP_INSTANCE%29%2CsoftwareTechnologies%28MICROSOFT_SQL_SERVER%29%29&amp;amp;from=now&amp;amp;to=-30d&amp;amp;sort=sort%3D%2Bname" target="_blank"&gt;https://abcdef/e/env_id/api/v2/entities?pageSize=500&amp;amp;entitySelector=type%28HOST%29%2CtoRelationships.isProcessOf%28type%28PROCESS_GROUP_INSTANCE%29%2CtoRelationships.isNetworkClientOf%28type%28PROCESS_GROUP_INSTANCE%29%2CsoftwareTechnologies%28MICROSOFT_SQL_SERVER%29%29&amp;amp;from=now&amp;amp;to=-30d&amp;amp;sort=sort%3D%2Bname&lt;/A&gt;' \&lt;BR /&gt;-H 'accept: application/json; charset=utf-8'&lt;/P&gt;&lt;P&gt;You can customize the entity selector as per actual requirements as described by&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/53547"&gt;@axel_tapia&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Peter.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 20:19:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/List-all-incoming-process-connections-using-API/m-p/257147#M3399</guid>
      <dc:creator>Peter_Youssef</dc:creator>
      <dc:date>2024-09-25T20:19:15Z</dc:date>
    </item>
  </channel>
</rss>

