I am working on generating KPIs on our Centreon platform (prod and dev) using the Centreon API. My goal is to retrieve the list of host groups with their associated hosts, both enabled and disabled.
I have followed the documentation provided here: link to documentation. However, I am facing difficulties. I am working with Centreon 22.04.7.
Is it possible to achieve this operation with API v1? I have successfully followed the steps in the documentation to generate a token; however, retrieving the list of host groups is not working as expected.
Below is an excerpt of the Python script I used to generate the token,
If you have any advice or guidance on how to obtain the list of host groups with their associated hosts, I would appreciate your assistance.