<?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 List Workloads with Entity ID Under the Cluster Name Using Dynatrace API in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-List-Workloads-with-Entity-ID-Under-the-Cluster-Name/m-p/261845#M3452</link>
    <description>&lt;P&gt;Kubernetes workload have the type of&amp;nbsp;CLOUD_APPLICATION and the relationship to a cluster of isClusterOfCa.&lt;/P&gt;&lt;P&gt;Try following selector:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;type(cloud_application),toRelationships.isClusterOfCa(type(kubernetes_cluster),entityName.equals(&amp;lt;k8_cluster_name&amp;gt;))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Nov 2024 19:15:24 GMT</pubDate>
    <dc:creator>mark_bley</dc:creator>
    <dc:date>2024-11-07T19:15:24Z</dc:date>
    <item>
      <title>How to List Workloads with Entity ID Under the Cluster Name Using Dynatrace API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-List-Workloads-with-Entity-ID-Under-the-Cluster-Name/m-p/259708#M3423</link>
      <description>&lt;P&gt;Hi Dynatrace Community,&lt;/P&gt;&lt;P&gt;I’m trying to retrieve a list of workloads along with their entity IDs under a specific Kubernetes cluster using the Dynatrace API. I've encountered some issues while working with the entity selector, specifically regarding the correct filters to use for workloads.&lt;/P&gt;&lt;P&gt;Here’s what I’ve tried so far:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;params = {
    "entitySelector": (
        "type(KUBERNETES_WORKLOAD),"
        "isClusterOfWorkload(type(KUBERNETES_CLUSTER),entityName.equals(\"{cluster_name}\"))"
    )
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However, I believe that isClusterOfWorkload is not the correct filter. Could anyone please guide me on which entity selector I should use to get the workloads associated with a particular cluster?&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 12:25:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-List-Workloads-with-Entity-ID-Under-the-Cluster-Name/m-p/259708#M3423</guid>
      <dc:creator>vignesh179</dc:creator>
      <dc:date>2024-10-18T12:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to List Workloads with Entity ID Under the Cluster Name Using Dynatrace API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-List-Workloads-with-Entity-ID-Under-the-Cluster-Name/m-p/261845#M3452</link>
      <description>&lt;P&gt;Kubernetes workload have the type of&amp;nbsp;CLOUD_APPLICATION and the relationship to a cluster of isClusterOfCa.&lt;/P&gt;&lt;P&gt;Try following selector:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;type(cloud_application),toRelationships.isClusterOfCa(type(kubernetes_cluster),entityName.equals(&amp;lt;k8_cluster_name&amp;gt;))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 19:15:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-List-Workloads-with-Entity-ID-Under-the-Cluster-Name/m-p/261845#M3452</guid>
      <dc:creator>mark_bley</dc:creator>
      <dc:date>2024-11-07T19:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to List Workloads with Entity ID Under the Cluster Name Using Dynatrace API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-List-Workloads-with-Entity-ID-Under-the-Cluster-Name/m-p/261884#M3453</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/81607"&gt;@vignesh179&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition to the response provided by&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/13072"&gt;@mark_bley&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PFA similar case&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;&lt;A href="https://community.dynatrace.com/t5/Container-platforms/Tagging-Kubernetes-Clusters-Workloads-and-Pods/td-p/201159" target="_blank"&gt;https://community.dynatrace.com/t5/Container-platforms/Tagging-Kubernetes-Clusters-Workloads-and-Pods/td-p/201159&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;using entity selector guidance:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://docs.dynatrace.com/docs/dynatrace-api/environment-api/entity-v2/entity-selector" target="_blank"&gt;https://docs.dynatrace.com/docs/dynatrace-api/environment-api/entity-v2/entity-selector&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 06:16:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-List-Workloads-with-Entity-ID-Under-the-Cluster-Name/m-p/261884#M3453</guid>
      <dc:creator>Peter_Youssef</dc:creator>
      <dc:date>2024-11-08T06:16:34Z</dc:date>
    </item>
  </channel>
</rss>

