Page 1 of 1

[REST API] Config endpoint only returns active (registered) hosts

Posted: Fri Mar 15, 2024 8:29 am
by cmueller
The [GET] config/host operation only returns hosts that are marked as active (registered). Is there an option in the API to also display the non-active hosts or could that be added?

Re: [REST API] Config endpoint only returns active (registered) hosts

Posted: Fri Mar 15, 2024 9:12 am
by sgardil
Hey @cmueller

unfortunately I don't believe there is a way currently to check for inactive hosts via our host config endpoint. I can put in a request for this to be added however I can not give a time frame for when that would be done.

Re: [REST API] Config endpoint only returns active (registered) hosts

Posted: Fri Mar 15, 2024 11:50 am
by lgute
Hi @cmueller, thanks for reaching out.

Is there specific information you need from config/host or could you use the objects/host endpoint? I believe that endpoint returns all hosts.

Re: [REST API] Config endpoint only returns active (registered) hosts

Posted: Tue Apr 02, 2024 8:35 am
by cmueller
Sorry for the late response...
The "objects/host" endpoint also don't displays not-active systems. (What I can understand and also expect... because it basicly also delivers the state informations: "object/hoststatus".)

But from the "config/host" endpoint I would expect that I also can see the non-active systems. (Because they are also displayed in the Core Config Manager)... it's even getting weirder... I'm able to update a non-active system with a PUT or remove it with a DELETE (all on the config/host endpoint). I only can't display those with a GET.

The reason behind that need is that I want to build a script that maintains the free variable to put informations for our service desk (like a assignment group etc. there)

Re: [REST API] Config endpoint only returns active (registered) hosts

Posted: Tue Apr 02, 2024 2:24 pm
by lgute
Hi @cmueller,

I agree. The api should allow users to filter config/host by active, inactive or all. I have submitted this as a feature request.