Skip to main content
Discussion ongoing

Get macros in service listing API endpoint

Related products:Infra Monitoring - ConfigurationInfra Monitoring - API
  • Sep 30, 2026 3:02 PM UTC
  • 5 replies
  • 23 views

Forum|alt.badge.img+5

Hello,

Currently, we can retrieve the macros from the services by targeting the service itself in the endpoint : /api/latest/configuration/services/{service.id}.

The macros are absent when checking for several services : /api/latest/configuration/services

Would it be possible to add an option to fetch the macros in that endpoint ? Currently, if we want to retrieve the macros from the configuration, we have to make a request for each service.

5 replies

rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • Oct 2, 2026 12:03 PM UTC
Updated idea statusNew→Needs Votes

rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • Nov 13, 2026 1:05 PM UTC
Updated idea statusNeeds Votes→Planned

Adrien Morais-Mestre
Centreonian
Forum|alt.badge.img+8

Hi ​@mikail,

Thanks for the idea. One note though, what is actually the issue with multi http calls to get what you want from each hosts ?

Do you have more context to clearly identify the functional need ?

Regards,

Adrien


Forum|alt.badge.img+5
  • Author
  • Steward ***
  • Nov 13, 2026 4:31 PM UTC

Hello ​@Adrien Morais-Mestre ,
Thanks for your answer.

There’s no fundemental issue with doing multiple requests. It is a performance issue, to fetch all the macros in a program we need to request every service one by one which takes a certain time. Currently, we request directly the Centreon database for greater efficiency.

Regards


Forum|alt.badge.img+5
  • Centreonian
  • Nov 13, 2026 4:31 PM UTC
Updated idea statusPlanned→Discussion ongoing