I saw a request made asking to know if it was possible to provide UDID information via Rest API.
After looking with Rest API I found that UDID was present.
So I create a psh script to retrieve all the UDID in a csv file named udid.csv.
The script can be download here