Hi Dynatrace Community,
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.
Here’s what I’ve tried so far:
params = {
"entitySelector": (
"type(KUBERNETES_WORKLOAD),"
"isClusterOfWorkload(type(KUBERNETES_CLUSTER),entityName.equals(\"{cluster_name}\"))"
)
}
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?
Thanks in advance for your help!