Applicable to both “GCP > GKE” and “Openshift”. We intend to retrieve list of project ID (gce project id if apply), project name(gce project name if apply), namespace, PODs, cluster name, process group name ( if present).
Question: which API we can use to grab above? namespace is must-have info.
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.
FYI one more approach I just got from other parties and it works too, similar principle as yours using same identifier “kubernetesNamespaces”.
api/v1/entity/infrastructure/processes > identify via “kubernetesNamespaces” , no need to custom tag (save one step), just straight use that.
So as of now 2 API - either:
api/v2/entities?entitySelector=Type(“Process_Group_Instance”)&fields=firstSeenTms,lastSeenTms,properties,tags,managementZones , then filter by “properties”.“metadata”.“key” start with “KUBERNETES_%”