I wrote a simple script to pull the list of distribution points from the JSS using the rest api: https://yourjsscom:8443/apiFrontPage.rest. However after several successful runs Friday, today I'm met with an error. It looks like the structure of the File I'm downloading has changed from usual XML to this:
{"distribution_points":{"distribution_point":[{"id":82,"name":"dp1.company.com"},{"id":18,"name":"dp2.company.com"},{"id":29,"name":"dp3.company.com"}, ....
The code I was using in my script to get the list is:
curl -o $temp_file.xml -u $jss_login https://casper.servername.com:8443/JSSResource/distributionpoints -X GET
Does anyone know why this would change all of a sudden? Or how I can specifically curl an xml favor of the list?
Thank you!