Hi Cezar,
The specific API endpoint you used to retrieve vulnerabilities has indeed been deprecated with Wazuh 4.7. However, you can still use the existing API to query CVE information for the agents until further updates are released. In future releases, vulnerability data will be directly indexed, and you could use the OpenSearch API to query these indexed documents following the ECS schema. This method should be available soon and will allow more efficient data retrieval.
Meanwhile, I recommend optimizing your current script to handle queries more efficiently:
Parallelization: Implement parallel requests instead of sequential ones to speed up the data retrieval process significantly.
Smart Pagination: Ensure you use the API's pagination feature effectively to reduce the number of API calls.
These adjustments should help maintain your workflow until the new API capabilities are fully integrated.