How to get list of components being monitored in icinga via api or command line?

I am trying to generate a list to see how many components are being monitored, do we have a way to list out all the components via the command line or api?