Please see this link, it might be interesting for you – Getting Devices –
https://doc.developer.milestonesys.com/html/index.html?base=reference/protocols/imageserver_getdevices.html&tree=tree_3.html