Change media

Format

MethodPOST
URL

/tasks/create

Request contentGuestDelete Object
Successful answerTaskResult Object
Unexpected errorHTTP 500

Changes the iso images mounted in a running guest.

GuestChangeISO Object

Schema

typeStringTask type identifier. In this case, "guest_change_iso"
guest_idStringUnique identifier of the Guest
iso_listArray of ISOInfoArray of associated ISO images. See details in Create a Guest
save_changebooleanPersist 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"
}