Filter the hosts with a specific alias

Hello!

I would like to create a query that could take all the hosts with a specific alias (through Postman).

But I can not find a solution for what I want…

I have this endpoint: http://example123.inet/api/

To have all the hosts I do this:

http://example123.inet/api/query?q=GET%20hosts

But, is there a way to include only the hosts with a specific alias? For example “lb1”

Hi & welcome!

Did you already checked the docs about the API? Here is an extra chapters for the filters incl. examples: https://icinga.com/docs/icinga2/latest/doc/12-icinga2-api/#filters