Federated Site Info using protocol integration:Is there a way to list sub site using protocol integration?

I am using Protocol integration to logon to a management server and retrieve its configuration info. From this configuration Info, I can get a list of recorder servers and their cameras. I then forward this information from a signalR connection request and can then stream video to one or more users of an Angular JS application.

The tree looks like this:

               Site

                --- Camera Group

                     ---------- Cameras

This is all currently working as designed.

Now, I’ve been told I need to logon to a master server from a Federated Architecture, Get a list of sub Sites from this master login server and then list cameras from each sub site.

the tree would be:

    HQ

     --- Region 1

          ------- Cameras

     --- Region 2

          -------- Cameras

Is there an example of getting a list of sub sites after logon using protocol integration? I’ve combed through the ServerCommandService.ConfigurationInfo for Child Sites of any sort but can not find any. I have also seen and used the MultiSiteViewer example but implementing this would take a complete re-write of what I already have.

To get sites you use SiteInfo.xml

Please lookup Siteinfo.xml in the MIP Documentation.

Thanks Bo, for your answer.

Our configuration does not have a parent or childs. Is the parent element a site element or a siteinfo element. Also are childs a list of site element or a list of siteinfo element or if a child element, does it have the same fields as siteinfo element?

If you have a “federation” with multiple sites, the SiteInfo.xml from the parent site should reflect it. In a (MFA (Milestone Federated Architecture)) federation one (parent) site is setup with other sites added in the Federated Site Hierarchy.

Once you have all the sites from the SiteInfo.xml you must login on each of them.