How to call puppet api

Hi @all,

I know that there have been changes in the api during the last 2-3 versions of Foreman that have resulted in certain information now being displayed via an api of the puppet-foreman module. I have not managed to figure out how to address this api correctly. I read from the code that it should be https://$fqdn/foreman_puppet/api but I can’t get any further with it and I can’t find any documentation. Has anyone had more success than me?

Hi,
you can find documentation for the API in Administer → About → API resources,
or at https://$FQDN/apidoc

1 Like

Thanks @lstejska,
that was all i needed. Indeed i did not know about the local API Documentation at Administer → About → API resources, or at https://$FQDN/apidoc.

1 Like