Get "data list" with API / curl for automation

Is there an easy way to get icinga “data lists” for automation, e.g. json-formated?

In the Browser, I’d use icingaweb2/director/data/listentry?list=customer_list
I’ve tried cingaweb2/director/data/listentry?list=customer_list&format=json, doesn’t make a difference

It would be perfect to get the results of icingacli director export datalists from remote.

did you ever find a solution here?
just stumbled over your post while having the same issue :frowning:

Hey Luca, you could try SQL:
https://icinga.bberg.xyz/icingaweb2/director/data/lists?format=sql

SELECT l.id, l.list_name FROM director_datalist AS l ORDER BY list_name ASC
LIMIT 25

not yet, reading from DB could be a solution, of course, but I don’t like doing this in general. It’s a very messy design to document and maintain. No one expects that I get the information from DB when looking for errors.