FOG API - get host list
-
Greetings!
I have several hosts.
Could you please tell me how I can get a host list using API?
I do this:curl --silent -X GET -H 'content-type: application/json' -H 'fog-user-token: token' -H 'fog-api-token: token' http://hostname/fog/host
And I receive in reply:
{"count": 0, "hosts": []}
I also tried:
- /fog/host/list
- /fog/host/all
And this also returns:
{"count": 0, "hosts": []}
Fog running Version: 1.4.4
Regards!
-
There is some information available here: https://news.fogproject.org/simplified-api-documentation/
@Wayne-Workman has some examples of the API. https://forums.fogproject.org/topic/9779/can-i-use-some-kind-of-script-to-create-image-and-ghost-my-lab-machines/12