Skip to main content
Solved

rest notification contact managment

  • August 2, 2024
  • 4 replies
  • 37 views

Forum|alt.badge.img+4

Bonjour,

Is there a way to manage/show the links between hosts/services and  contact/contactgroup with the REST API.

I don t see anything in the official documentation, in the host, service, contact, contactgroup part.

Thanks for reading and answering,

Mathias

 

 

 

Best answer by itoussies

Well it’s not possible now but it will be in the future. Configuration is/was done with CLAPI or the API v1 but the API v2 is being enhanced to handle configuration and more.

4 replies

itoussies
Centreonian
Forum|alt.badge.img+11
  • Centreonian
  • August 5, 2024

Hello,

You can show the resources notification configuration with the Notification Policy endpoint: https://docs-api.centreon.com/api/centreon-web/#tag/Notification-Policy

Unfortunately, it seems that you cannot configure notifications at the moment.


Forum|alt.badge.img+4
  • Author
  • Steward **
  • August 5, 2024

Hello,

 

With rest API, Is there no way to add an host with a contact or a contact group for notification?????

Even with template or another trick?

 

It means that its only possible to add had host that will be without notification …

It means that rest API is done only for consultation ?

 

Thanks for the answer,

Mathias

 

 

 

 


itoussies
Centreonian
Forum|alt.badge.img+11
  • Centreonian
  • Answer
  • August 5, 2024

Well it’s not possible now but it will be in the future. Configuration is/was done with CLAPI or the API v1 but the API v2 is being enhanced to handle configuration and more.


Forum|alt.badge.img+4
  • Author
  • Steward **
  • August 5, 2024

Thanks for the quick reply.

Yes it sould be a great feature to enable configuration with the rest api.

😉