Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Next »
Method | POST |
---|
URL | /tasks/create |
---|
Request content | GuestCopy Object
|
---|
Successful answer | TaskResult Object
|
---|
Unexpected error | HTTP 500 |
---|
GuestCopy Object
Schema
repeat | String | Reserved |
---|
retries | String | Number of times this task will be retried, in case of an error |
---|
type | String | Task type identifier. In this case, "guest_copy" |
---|
src_guest_id | String | Identifier of the Guest to be copied |
---|
dest_guest_id | String | Identifier of the new Guest |
---|
description | String | Description of the new Guest |
---|
dst_pool_id | String | Pool where the new Guest will get its resources |
---|
dst_volume_id | String | Volume 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" ,
"dst_pool_id" : "mainPool" ,
"dst_volume_id" : "userGuests"
}
|