Description of problem: The bootdisk API calls do not work: GET /bootdisk/api Boot disks GET /bootdisk/api/generic Download generic image GET /bootdisk/api/hosts/:host_id Download host image It is working to create a bootdisk for hosts through the webinterface but when the APi is being used no matter which of the call above is used. Version-Release number of selected component (if applicable): 6.1.1 How reproducible: #host specific: curl -sS -k -u ${USER}:${PASS} https://${SATELLITE_SERVER}/bootdisk/api/hosts/:${HOST_ID} #generic: curl -sS -k -u ${USER}:${PASS} https://${SATELLITE_SERVER}/bootdisk/api/generic Actual results: Error URL unknown Expected results: Download the ISO.
curl -sS -k -u ${USER}:${PASS} https://${SATELLITE_SERVER}/bootdisk/api/hosts/${HOST_ID}
It works if you set the content type in the curl command: -H "Accept: version=2,application/json" -H "Content-Type: application/json" curl -o bootdisk_generic.iso -sS -k -u ${USER}:${PASS} -H "Accept: version=2,application/json" -H "Content-Type: application/json" https://${SATELLITE_SERVER}/bootdisk/api/generic curl -o ${HOSTNAME}.iso -sS -k -u ${USER}:${PASS} -H "Accept: version=2,application/json" -H "Content-Type: application/json" https://${SATELLITE_SERVER}/bootdisk/api/hosts/${HOSTNAME}