Hello there
I need some help with Foreman API.
I am new to the Foreman, no exp. at all (only created some VM’s )
My task is to create golang script which will output info (like: hostgroup, env., location, organization and classes) of specific host.
I must use Foreman API, but I don’t know how.
I created simple version of algorithm, how would it work ->
-> Input (username/password/domain)
-> Login (username/password)
-> Find host by his domain name in “Hosts”
-> Copy all info about host into list
-> Get from the list all what I need
-> Output (list)
Can you help me with this?
I will appreciate any help.
Thank you all