How to get OneAgent versions for all enviroment hosts?

Hello,

You may want to try  environment API v2: /entities    (monitored entities)

Example: curl -X GET “https://dt-host/e/<tenantId>/api/v2/entities?entitySelector=type%28HOST%29&fields=properties” -H “accept: application/json; charset=utf-8” -H “Authorization: Api-Token <yourToken>”

Extract from response:

"osType": "LINUX",
        "state": "RUNNING",
        "physicalMemory": 99129450496,
        "detectedName": "hostFQDN",
        "installerVersion": "1.255.179.20221213-180126",

Tibebe