cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get host group name for the mobile applications

mundlareddy
Newcomer

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

 

 

1 REPLY 1

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? 

Featured Posts