Copy Guest

Format

MethodPOST
URL

/tasks/create

Request contentGuestCopy Object
Successful answerTaskResult Object
Unexpected errorHTTP 500

GuestCopy Object

Schema

repeatStringReserved
retriesStringNumber 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": "myNewGuest",
    "description": "This one is new",

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