Hello, nice to greet you.
According to the official
documentation, you cannot do what you want using the same Wazuh API endpoint.
However, you could put together a script that performs this task by obtaining the IDs of the installed agents with a script.
You could get the installed agents with the following API query:
TOKEN=$(curl -u <user>:<password> -k -X POST "https://localhost:55000/security/user/authenticate?raw=true")
curl -k -X GET "https://localhost:55000/agents" -H "Authorization: Bearer $TOKEN" | jq | grep idYou could filter the IDs of the agents with a python or bash script, with these IDs, you could make a query with the service you are currently using and obtain the desired information on all or the agents you need.
Let me know if the help provided was helpful to you.
Greetings,
Nicolas