How to get a full list of all the registered hosts

I’m trying to get a list of all the hosts registered in Director to compare the list with an external database. But I have been unable.

I have no problem getting one host, is just getting a list of hosts.

Shouldn’t be to hard:

Ouch, sorry. I was meaning by an API call

Am i missing something? A GET Request of director/hosts should be sufficient.
Or do you want to get all hosts being in the director with an installed agent?

2 Likes

Arghhhhh!!! I was using director/host without the ‘s’

I feel quite embarrassed now.

Thanks a lot!!

2 Likes

Well, the API endpoints are missing in the documentation at REST API - Icinga Director so don’t beat your self up.

3 Likes

Thanks for comforting me :slight_smile: