Loop over all Realms of an instance

Is there a way to loop over all Realms within an instance if I am an Administrator for that Realm? From GlobalNotifications I already know that I can get notified for all realms in in Instance but I couldn’t find a way to manually loop over all Realms.

Thanks in advance!

Kind regards


When you say ‘loop over’ what do you mean specifically? What platform are you coding for?