Hi everyone,
I saw a topic that exposes a similar problem but unfortunately the answer is not sufficient.
I manage to generate a token but every request i do, the result is the same.
I put you in the context, I manage a Centreon with 300 hosts but without license. Is there a connection with this problem?
C:\Users\dorian>curl -v https://SERVER/centreon/api/index.php?object=centreon_realtime_services^&action=list -H "Content-Type:application/json" -H "X-AUTH-TOKEN:"TOKEN""
* Trying 192.168.90.63:443...
* Connected to SERVER (192.168.90.63) port 443 (#0)
* schannel: disabled automatic use of client certificate
* ALPN: offers http/1.1
* ALPN: server accepted http/1.1
> GET /centreon/api/index.php?object=centreon_realtime_services&action=list HTTP/1.1
> Host: SERVER
> User-Agent: curl/7.83.1
> Accept: */*
> Content-Type:application/json
> X-AUTH-TOKEN:kkMNbGrJYJw6xm8RuQIfgCl8GyL7OfsbI2TvLT+hKIkez+4ZrDW+sLazqY3LXviJ
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 401 Unauthorized
< Date: Fri, 25 Nov 2022 09:05:10 GMT
< Server: Apache
< X-Powered-By: PHP/8.0.20
< X-Frame-Options: sameorigin
< Transfer-Encoding: chunked
< Content-Type: application/json;charset=utf-8
<
"Unauthorized"* Connection #0 to host SERVER left intact