Hide Forgot
Document URL: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.5/html-single/api_guide/index Section Number and Name: N/A Describe the issue: Sometimes, when using Satellite 6 and building hosts, it's necessary to download host full image. There is a button in the GUI for it. This is also possible to do via API, but there is no documentation for it. Suggestions for improvement: Please add the description how to download the Full Host Image via API: GET /bootdisk/api/hosts/:host_id full=1
Hi Jitendra, by using the `hammer --debug bootdisk host --full 1 --host-id 4` command, I create the API request to download full host image. The hammer command downloads the image fine, the request though does not work. Are you able to test it and see what can be wrong? ~~~~~ # curl --header "Accept:application/json,version=2" --header "Content-Type:application/json" \ > --request GET --insecure --user user:password \ > --data '{"params":{"organization_id":1,"full":"true"}}' \ > https://dell-r220-2.gsslab.brq.redhat.com/bootdisk/api/v2/hosts/4 \ > | python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1024k 0 1024k 100 46 4112k 184 --:--:-- --:--:-- --:--:-- 4129k Extra data: line 1 column 2 - line 1583 column 673084 (char 1 - 1048576) ~~~~~ Thank you
These changes are now live on the customer portal: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.6-beta/html/api_guide/chap-red_hat_satellite-api_guide-using_the_red_hat_satellite_api#sect-Working_with_Hosts https://access.redhat.com/documentation/en-us/red_hat_satellite/6.5/html/api_guide/chap-red_hat_satellite-api_guide-using_the_red_hat_satellite_api#sect-Working_with_Hosts https://access.redhat.com/documentation/en-us/red_hat_satellite/6.4/html/api_guide/chap-red_hat_satellite-api_guide-using_the_red_hat_satellite_api#sect-Working_with_Hosts