I am using entity selector API to get KUBERNETES_NODE and KUBERNETES_CLUSTER entityType data from Dynatrace.
In API documentation payload format for both entity type I can see there is attributes in “fromRelationships” which tells about HOST to which that entity is related to.
KUBERNETES_NODE:
{
“id”: “isNodeOfHost”,
“toTypes”: [
“HOST”
]
}
KUBERNETES_CLUSTER:
{
“id”: “isClusterOfHost”,
“toTypes”: [
“HOST”
]
},
But when I fetch data using entityselector API type(KUBENETES_NODE) and type(KUBERNETES_CLUSTER) I am not getting those attribute.
Actual paylaod:
KUBERNETES_NODE:
“managementZones”: [],“fromRelationships”: {},“toRelationships”: {KUBERNETES_CLUSTER:“fromRelationships”: {“isClusterOfNamespace”: [{“id”: “CLOUD_APPLICATION_INSTANCE-6C047C4AEF58E51F”,“type”: “CLOUD_APPLICATION_INSTANCE”}],“isClusterOfCa”: [{“id”: “CLOUD_APPLICATION-A66EE578CFC22026”,“type”: “CLOUD_APPLICATION”},],“isClusterOfService”: [{“id”: “SERVICE-7790727CC3E5E4D6”,“type”: “SERVICE”},{“id”: “SERVICE-F4E26B688E9FF1DC”,“type”: “SERVICE”},{“id”: “SERVICE-1CC299D94ECEB61D”,“type”: “SERVICE”},{“id”: “SERVICE-6F915E3E1BFAE902”,“type”: “SERVICE”},{“id”: “SERVICE-B40E35CB1F8B355E”,“type”: “SERVICE”},{“id”: “SERVICE-62515BF373524231”,“type”: “SERVICE”},{“id”: “SERVICE-E4795917413DF320”,“type”: “SERVICE”},{“id”: “SERVICE-DF8AFE5231C1260D”,“type”: “SERVICE”},{“id”: “SERVICE-8DE4FD3067C76286”,“type”: “SERVICE”},{“id”: “SERVICE-CCBB57E980F68262”,“type”: “SERVICE”}],“isClusterOfNode”: [{“id”: “KUBERNETES_NODE-6C3263148CCF0B35”,“type”: “KUBERNETES_NODE”}],“isClusterOfKubernetesSvc”: [{“id”: “KUBERNETES_SERVICE-2649F65A84A287A9”,“type”: “KUBERNETES_SERVICE”},{“id”: “KUBERNETES_SERVICE-49D64648680D7559”,“type”: “KUBERNETES_SERVICE”},{“id”: “KUBERNETES_SERVICE-336DFC26C4C8AC89”,“type”: “KUBERNETES_SERVICE”},]},“toRelationships”: {“isCgiOfCluster”: [Do we need to enable anything on Dynatrace side to capture this details in payload?Regards,Adarsh