Skip to main content

Hi,

 

I search for a good “Plugin”  for query Rest Api query for Centreon.

 

  • with Rest Api Authentification Bearer Token

 

for example with “curl” work good

 

curl -X GET "https://server01/api/datacenter/cluster/clusters" -H  "accept: application/json" -H  "authorization: Basic b3BzOm9wcwL9" -H  "UM-CSRF-Token: ab657dd3-42be-4r3d-f60a-2de3f5521”

 

Thanks

👋 @ahartung 

How about

--mode=response

 

https://docs.centreon.com/pp/integrations/plugin-packs/procedures/applications-protocol-http/#pack-assets

 

    --header
            Set HTTP headers (Multiple option)
    --http-backend
            Perl library to use for HTTP transactions. Possible values are:
            lwp (default) and curl.


Reply