Hello,
I’am trying to use the FOG API. I found some doc here : https://news.fogproject.org/simplified-api-documentation/. Is it the last version ?
Following instructions I tried to get system status by typing the command :
$ curl -i -H 'fog-api-token: <token>' -u fog:password fog-master/fog/system/status
The API is enabled in the UI. I also tried with the “fog-user-token” but nothing works, I always get:
HTTP/1.1 401 Unauthorized
Date: Wed, 18 Mar 2020 16:09:29 GMT
Server: Apache/2.4.29 (Ubuntu)
X-Frame-Options: sameorigin
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=31536000
Content-Security-Policy: default-src 'none';script-src 'self' 'unsafe-eval';connect-src 'self';img-src 'self' data:;style-src 'self' 'unsafe-inline';font-src 'self';
Access-Control-Allow-Origin: *
Content-Length: 0
Connection: close
Content-Type: application/json
Can someone help me ? Thanks