API for Federated Site Architecture in Milestone

I am currently working with a federated site architecture in milestone, where the parent site is running on version 24 and the child site is on version 21. When attempting to request the following API via Postman:

http://[parent site IP]/managementserver/rest/childsites,

I receive an empty array as the response.

Could someone assist me in troubleshooting this issue?

Milestone Federated Architecture (MFA) has an requirement, you must use AD. If I use a Windows AD user to authenticate I can get the child sites from my MFA setup. If I use a basic authentication user I cannot.

Note. We recommend using the API Gateway. So instead of -http://[parent site]/managementserver/rest/childsites- please use -https://[parent site]/api/rest/v1/childsites-

It works, thank you! I have another question: After retrieving the child site ID, I would like to access the cameras, events, recording servers, and other resources on the child site. I’m trying to use the following API:

http://{{parent_site_id}}/api/rest/v1/childSites/{{child_site_id}}/cameras

However, it returns a 400 Bad Request error. Could you please guide me on how to properly access the cameras and other resources on the child site using APIs?

I would like to inquire about how to use WebSocket with a federated child site to retrieve events specific to that site. I am familiar with the process for a standard site using

wss://localhost/api/ws/events/v1

, but I am unsure how to implement this for federated sites. Specifically, I need to retrieve the number of cameras that are online and offline. Could you please guide me on how to set this up in a federated environment and how to accurately obtain the number of operational cameras?

Milestone Federated Architecture (MFA) is a solution where you cannot do lot through the parent site. Allow me to explain how you can then get further.

When you login on the parent site you can get the childsites. The idea is then that you use this information to connect and login on the child site. On each sites you then have to available functionality, and you have because you have logged in on each. With the Windows AD user it is simple that you can use the same user on all sites, but you login and communicate with each site.

Does this mean we cannot retrieve the camera information and events from the child sites through the parent site? Does the only way I can retrieve the events and camera information directly from each child site instead?

Yes

Adding to my answer.

The the Smart Client works in the same way as the APIs: If the Smart Client cannot connect directly to the child sites and the sites’s Recording Servers it will not work.

It is the core of how MFA works, it will give you the address but not much else when it comes to child sites.