Skip to main content

Hi,

Is it possible via API to get a service macro field value via the v2 API?

 

Hello, through the PATCH of the service, you have a field called macros that you can provide to update macros at Centreon Web RestAPI


Is it possible to get the macro value via this endpoint?

PS: it seems there is a problem with the API documentation. The example says: 
{
  "code": 403,
  "message": "You are not authorized to access this resource"
}

 

 


Oh, indeed, i missed the GET part. It’s on me.

I don’t see any response for the macros indeed. Maybe that would be an evolution to ask for as an Idea on the forum.

As a workaround, maybe a database query can return that information.


OK thx for the reply.

As a workaround I’m quite sure the v1 API permits that, or at least CLAPI.

But the database query is indeed a possibility too.

Have a nice day