> I'm getting the following error when I try to refresh facts of the 
> discovered hosts through actual API:
> 
> $ curl -kSs -H "Content-Type: application/json" -H 
> "Accept:application/json" -u admin:$PASSWORD 
> https://localhost/api/v2/discovered_hosts/mac008cfaed69c8/refresh_facts | 
> jq '.'
> {
>   "status": "404",
>   "error": "Not Found"
> }

This API call is not HTTP GET but HTTP PUT.

Unfortunately we don't publish API docs of plugins:

https://theforeman.org/api/1.12/index.html

You need to dig in the source codes, but its very readable.

https://github.com/theforeman/foreman_discovery/blob/develop/app/controllers/api/v2/discovered_hosts_controller.rb#L173-L180

-- 
Later,
 Lukas #lzap Zapletal

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to