Change media
Format
Method | POST |
---|---|
URL | /tasks/create |
Request content | GuestDelete Object |
Successful answer | TaskResult Object |
Unexpected error | HTTP 500 |
Changes the iso images mounted in a running guest.
GuestChangeISO Object
Schema
type | String | Task type identifier. In this case, "guest_change_iso" |
---|---|---|
guest_id | String | Unique identifier of the Guest |
iso_list | Array of ISOInfo | Array of associated ISO images. See details in Create a Guest |
save_change | boolean | Persist the change for the next boot |
JSON example
{ "type": "guest_change_iso", "guest_id": "1234", "iso_list": [ {"media_storage_id": "ms-empty", "filename": "ms-emtpy", "devnum": "1", "bus": "ide"}, {"media_storage_id": "ms-empty", "filename": "ms-emtpy", "devnum": "2", "bus": "ide"}, {"media_storage_id": "ms-empty", "filename": "ms-emtpy", "devnum": "3", "bus": "ide"} ], "save_change": "true" }