To export a device list:
Go to the ZMI:
http://localhost:8080/zport/dmd/Devices/manage
Make a script object called getMyDeviceList().
Put the following line into the body of the script:
return [ d.id for d in context.getSubDevices() ]
Call it like this:
http://localhost:8080/zport/dmd/Devices/getMyDeviceList
Alternatively, enter the following line to return all device IP addresses:
return [ d.manageIp for d in context.getSubDevices() ]
You can call this method from different parts of the tree to limit the list of devices:
http://localhost:8080/zport/dmd/Devices/Server/Linux/getMyDeviceList