ApiUsers from cli

Hello,
I just created an api user using icingaweb and director (Icinga Director -> Deployment -> Infrastructure - Icinga Api User) and I would like to know if there is a way, how to achive the same thing using command line?

I tried to explore choices from command “icingacli director” but it seems that there isn’t what I need…

Thanks a lot for your reply in advance.

Hi and welcome,

for my knowledge no and I didn’t find any hint in the docs.

Do you need it for automation? If yes, you could create /etc/icinga2/features-available/api.conf with a loop with your automation tool. We are doing this for e.g. with SaltStack