Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

repeatStringReservedretriesStringNumber of times this task will be retried, in case of error
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

{
    "repeat""0",

Code Block
languagejs
{
    "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"

...


}