Versions Compared

Key

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

Format


MethodPOST
URL

/tasks/create

Request contentGuestCopy Object
Successful answerTaskResult Object
Unexpected errorHTTP 500


GuestCopy Object

Schema

repeatStringReservedretriesStringNumber of times this task will be retried, in case of an error
typeStringTask type identifier. In this case, "guest_copy"
src_guest_idStringIdentifier of the Guest to be copied
dest_guest_idStringIdentifier of the new Guest
descriptionStringDescription of the new Guest
dst_pool_idStringPool where the new Guest will get its resources
dst_volume_idStringVolume where the disk images of the new guest will be stored

JSON example


{
    

"repeat

"

: "0",   
    "retries": "0",
    "

type": "guest_copy",
    "src_guest_id": "myOldGuest",
    "dst_guest_id":

"myOldGuest

"myNewGuest",
    "description": "This one is new",

    "dst_pool_id": "mainPool",
    "dst_volume_id": "userGuests"
}