Hi everyone,
We're currently working on integrating our Xen Orchestra instance with Drata for automated asset tracking and compliance. As part of this setup, we're successfully using the REST API to fetch VM details like name_label, uuid, etc.
However, to keep our asset list up-to-date in near real-time, we're looking to leverage the WebSocket API provided by Xen Orchestra — specifically to detect when VMs are created or deleted.
A few questions:
Is there an officially supported way to subscribe to VM creation/deletion events over the WebSocket API?
Are there any watch* or subscribe* methods exposed for this purpose, or would polling with vm.list or xapi.getAllRecords over WebSocket be the recommended approach?
Are there any best practices or examples available for using the WebSocket API in this context?
Thanks in advance for your help — any guidance or documentation links would be greatly appreciated!