Question

Downtimes via api rest v2

  • 23 March 2023
  • 4 replies
  • 135 views

Badge +1

Bonjour,

Est-ce que c'est possible de réaliser des downtime via api v2 sur des Pollers comme en api v1 ? si oui comment procédé ?

Cordialement


4 replies

Userlevel 5
Badge +11

Hey @Freddy, In order to help as many users as possible, could you please post your question in English? That way, anyone else who might be experiencing a similar issue can also benefit from the solutions that will be suggested. And this can even help you reach more people in the community. Thanks for your understanding. Cheers 😉

Badge +1
Good morning,Is it possible to perform downtime via api v2 on Pollers as in api v1? if so how to proceed?
Badge +9

Hello,

 

I ask the same question. I use Centreon 22.04 but the functionality to add downtime doesn't work

Badge +2


Hi Freddy,

Personally, I only use the APIs on the central server. Our internal tool for automatically scheduling maintenance had to be migrated to APIv2 for performance reasons (more and more services had to be put into maintenance mode and APIv2 allowed us to do this with a single request).

So, I confirm that it is entirely possible to use APIv2 to set downtimes. Feel free to check out my response in Francis' thread where I provide an example of using the endpoints :

Let me know if you have any further questions.

Reply