14 Feb 2024 04:56 PM - last edited on 08 Aug 2024 02:35 PM by Michal_Gebacki
Hi Team,
How to get host group name for the mobile applications using REST API's ? Currently I am using below API to get this info but its not retrieving it.
api/v2/entities?entitySelector=type(HOST),hostGroupName("Test")&from=now-20y&fields=+tags,+managementZones,+properties,+fromRelationships,+toRelationships&pageSize=4000
Solved! Go to Solution.
20 Feb 2024 04:43 PM
Just tried on my tenant
api/v2/entities?entitySelector=type%28host%29%2ChostGroupName.exists%28%29&fields=properties.hostGroupName
and actually works fine.
....., { "entityId": "HOST-32F3C2A7A12EBD33", "type": "HOST", "displayName": "uso*****_****-8k68r", "properties": { "hostGroupName": "P***_***_**" } },......
are you sure host group is correctly assigned to the hosts you're extracting?