Fog light REST API - Get Object IDs for multiple Objects/Agents

Hi,

I am trying to fetch some performance metric data using REST API. I could fetch performance data for one object by hardcoding the topology ID of said object as below:

https://{{serverURL}}:{{serverPort}}/{{apiPath}}/topology/batchQuery
{"includes":[{"ids":["<ObjectID>"],"observationName":"sql_batches"}],"startTime":<StartTimeEpoch>,"endTime":<EndTimeEpoch>,"granularity":300000,"numberOfValue":1,"retrievalType":"RAW"}

Is there a way to collect Object Ids for all agent/host, so that we could programmatically collect data for all agent/hosts?

Regards, Ravi