Icinga2 API multiple filters

Hello there,

I have a short question.
I have a servicegroup (called Test1) and some services in this. How can I see (with the Icinga2 API) the service-status of some PCs, which are OK within this servicegroup?

My URLs are these:

What is wrong with my URL?
https://ip:5665/v1/objects/services?filter=(service.state==ServiceOK)&match(“Test1” in service.groups)

Can you help me please?


I guess the missing %20 for the blank spaces are just a copy&paste mistake?

Have you tried it with curl from the command line?
Example from the docs:

curl -k -s -u 'root:icinga' -H 'Accept: application/json' \
-H 'X-HTTP-Method-Override: GET' -X POST \
'https://localhost:5665/v1/objects/services' \
 -d '{ "filter": "service.state==state && match(pattern,service.name)", "filter_vars": { "state": 2, "pattern": "ping*" } }'

No that is not a mistake. I will try another way to filter this.