You should be able to query all the OneAgents API (/api/v1/oneagents) and extract the HostGroup Object: OneAgent on a host - GET a list of hosts with OneAgent details — Dynatrace Docs
Name → “The name of the Dynatrace entity, displayed in the UI”
"hostGroup": {
The name doesn’t show anything?