<?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: Which API?:  kubernetes &amp;gt; get list of project ID, project name, namespace, PODs in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Which-API-kubernetes-gt-get-list-of-project-ID-project-name/m-p/198372#M2140</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/47441"&gt;@avrildong&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe there is a more simple way but I would use the from the Enviroment Api v2 Monitored entities set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have just created a auto tag for Kubernetes entities.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mizs_0-1668505447378.png" style="width: 667px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/8487i2D95641C6F65B52F/image-dimensions/667x645?v=v2" width="667" height="645" role="button" title="Mizs_0-1668505447378.png" alt="Mizs_0-1668505447378.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then I have used thre Get / entities Api with with the Entity Selector Type("Process_Group_Instance"),Tag("Kubernetes"). So I have already received the a list of kubernetes process group list.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mizs_2-1668505691137.png" style="width: 328px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/8489i90DC306342BD3E5C/image-dimensions/328x717?v=v2" width="328" height="717" role="button" title="Mizs_2-1668505691137.png" alt="Mizs_2-1668505691137.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the list I have picked up a process group instance and checked it with the following Api call: GET / entities/({entityId}:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mizs_3-1668505845558.png" style="width: 570px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/8490i37D786F35B13D53E/image-dimensions/570x211?v=v2" width="570" height="211" role="button" title="Mizs_3-1668505845558.png" alt="Mizs_3-1668505845558.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have already received the properties:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mizs_4-1668505963722.png" style="width: 622px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/8491i691FAE473EA6A4FE/image-dimensions/622x224?v=v2" width="622" height="224" role="button" title="Mizs_4-1668505963722.png" alt="Mizs_4-1668505963722.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try and play with these Monitored entities API calls.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mizső&lt;/P&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;&amp;nbsp;&lt;/P&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;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2022 09:54:24 GMT</pubDate>
    <dc:creator>Mizső</dc:creator>
    <dc:date>2022-11-15T09:54:24Z</dc:date>
    <item>
      <title>Which API?:  kubernetes &gt; get list of project ID, project name, namespace, PODs</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Which-API-kubernetes-gt-get-list-of-project-ID-project-name/m-p/198334#M2137</link>
      <description>&lt;P&gt;Use case &amp;amp; Goal:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Applicable to both "GCP &amp;gt; GKE" and "Openshift". We intend to retrieve list of&amp;nbsp;project ID (gce project id if apply), project name(gce project name if apply), namespace, PODs, cluster name, process group name ( if present).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question: which API we can use to grab above?&amp;nbsp; namespace is must-have info.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 20:09:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Which-API-kubernetes-gt-get-list-of-project-ID-project-name/m-p/198334#M2137</guid>
      <dc:creator>avrildong</dc:creator>
      <dc:date>2022-11-14T20:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Which API?:  kubernetes &gt; get list of project ID, project name, namespace, PODs</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Which-API-kubernetes-gt-get-list-of-project-ID-project-name/m-p/198372#M2140</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/47441"&gt;@avrildong&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe there is a more simple way but I would use the from the Enviroment Api v2 Monitored entities set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have just created a auto tag for Kubernetes entities.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mizs_0-1668505447378.png" style="width: 667px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/8487i2D95641C6F65B52F/image-dimensions/667x645?v=v2" width="667" height="645" role="button" title="Mizs_0-1668505447378.png" alt="Mizs_0-1668505447378.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then I have used thre Get / entities Api with with the Entity Selector Type("Process_Group_Instance"),Tag("Kubernetes"). So I have already received the a list of kubernetes process group list.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mizs_2-1668505691137.png" style="width: 328px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/8489i90DC306342BD3E5C/image-dimensions/328x717?v=v2" width="328" height="717" role="button" title="Mizs_2-1668505691137.png" alt="Mizs_2-1668505691137.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the list I have picked up a process group instance and checked it with the following Api call: GET / entities/({entityId}:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mizs_3-1668505845558.png" style="width: 570px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/8490i37D786F35B13D53E/image-dimensions/570x211?v=v2" width="570" height="211" role="button" title="Mizs_3-1668505845558.png" alt="Mizs_3-1668505845558.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have already received the properties:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mizs_4-1668505963722.png" style="width: 622px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/8491i691FAE473EA6A4FE/image-dimensions/622x224?v=v2" width="622" height="224" role="button" title="Mizs_4-1668505963722.png" alt="Mizs_4-1668505963722.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try and play with these Monitored entities API calls.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mizső&lt;/P&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;&amp;nbsp;&lt;/P&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 09:54:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Which-API-kubernetes-gt-get-list-of-project-ID-project-name/m-p/198372#M2140</guid>
      <dc:creator>Mizső</dc:creator>
      <dc:date>2022-11-15T09:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Which API?:  kubernetes &gt; get list of project ID, project name, namespace, PODs</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Which-API-kubernetes-gt-get-list-of-project-ID-project-name/m-p/198751#M2156</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/47783"&gt;@Mizső&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thanks for your approach! It works.&lt;/P&gt;&lt;P&gt;FYI one more approach I just got from other parties and it works too, similar principle as yours using same identifier "kubernetesNamespaces".&lt;/P&gt;&lt;P&gt;api/v1/entity/infrastructure/processes &amp;gt; identify via "kubernetesNamespaces" , no need to custom tag (save one step), just straight use that.&lt;/P&gt;&lt;P&gt;So as of now 2 API - either:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;api/v2/entities?entitySelector=Type("Process_Group_Instance")&amp;amp;fields=firstSeenTms,lastSeenTms,properties,tags,managementZones&lt;/SPAN&gt; , then filter by &lt;/SPAN&gt;&lt;/SPAN&gt;"properties"."metadata"."key" start with&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;"KUBERNETES_%"&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;api/v1/entity/infrastructure/processes &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sat, 19 Nov 2022 00:00:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Which-API-kubernetes-gt-get-list-of-project-ID-project-name/m-p/198751#M2156</guid>
      <dc:creator>avrildong</dc:creator>
      <dc:date>2022-11-19T00:00:22Z</dc:date>
    </item>
  </channel>
</rss>

