Hello Eswari,
you could use REST API /api/v1/oneagents
there are fields currentActiveGateId and currentActiveIds (A list of ActiveGate IDs of ActiveGates to which OneAgent is currently connected).
ActiveGateId is represented as long and hex number. You should use currentActiveIds (hex number)
For example:
jq -r “.hosts[] | [ .hostInfo.displayName,.currentActiveGateId,(.currentActiveGateIds | join(\”,\")) ] | @tsv " oneagents.json
d2j.ttt.com 462588410 0x1b9289fa
ci.ambit.tempest.test 1443825187 0x560f0623
You could get list of yours active gates also from REST API - /api/v2/activeGates
ActiveGateId is in hex format.
jq -r ".activeGates[] | [ .id,.hostname ] | @csv " ag.json
“0x560f0623”,“ci.ambit.tempest.test”
But the list does not contain Dynatrace active gates for SaaS deployment
Kind regards,
Roman