AI Bridge GraphQL: refresh camera list after Management Client changes (without losing app registration)

After adding/rearranging cameras in Management Client, my AI Bridge GraphQL

cameras

query doesn’t reflect the new list. I’d like to force a refresh/sync of the camera inventory using GraphQL without losing my application registration and topic subscriptions.

Expected

  • After changes in Management Client (enable camera, move group, change recording server), the AI Bridge inventory exposed via GraphQL should reflect the current VMS configuration—or there should be a supported GraphQL-only way to trigger a resync without having to fully unregister/re-register the app.

Questions for Milestone

  1. Is there a GraphQL mutation to trigger a sync/refresh of the camera inventory from XProtect to AI Bridge? (Something akin to resync, reload , or similar.)

Hi @ofer apitz​ ,

Have you had a look at https://doc.developer.milestonesys.com/mipsdk/MIPhelp/class_video_o_s_1_1_platform_1_1_configuration.html#a5d9155fef8d938271cc723c6b3943f14:~:text=RefreshConfiguration()%20%5B1/2%5D,ID%20of%20items%20to%20flush .

I’m not sure if this will directly address the issue you have, but I hope it helps.

Hi @Xavier Julies

It is too technical, and no context on how and why to use anywhere with in aibridge.

Can you please give us more details.

Hi @Xavier Julies

Is there any update on it?

Hi @ofer apitz​ ,

I haven’t worked directly with AI Bridge, but based on Milestone’s SDK behaviour, the

RefreshConfiguration() method is typically used to refresh the configuration so that clients receive the latest camera and device info on the next Get operation( example GetItems()). In the context of AI Bridge, you might be able to trigger this refresh without unregistering the application by:

  1. Calling RefreshConfiguration() (or its equivalent in your AI Bridge environment) to ensure the inventory reflects the current VMS setup.
  2. Subscribing your GraphQL queries to events or notifications from Milestone that indicate configuration changes. This way, your camera list query can be refreshed automatically when cameras are added, moved, or updated.

It would be better if someone from the Milestone Forum team responded, as they might have better insights into your problem.

Thanks.