Copy an Image from an ImageStorage
Format
Method | POST |
---|---|
URL | /tasks/create |
Request content | ImageCopy Object |
Successful answer | TaskResult Object |
Unexpected error | HTTP 500 |
ImageCopy 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, "image_delete" |
image_id | String | New unique identifier of the target Image |
image_storage_id | String | Unique identifier of the ImageStorage that contains Volume volume_id |
volume_id | String | Unique identifier of the Volume where Image image_id will be created |
source_image_id | String | Unique identifier of the source Image |
source_volume_id | String | Unique identifier of the Volume that contains source_image_id |
Ejemplo en JSON
{ "repeat": "0", "retries": "0", "type": "image_copy", "image_id": "debian_template3", "volume_id": "flexfs01", "image_storage_id": "istorage01", "source_image_id": "debian_template2", "source_volume_id": "flexfs01" } |
Número de veces que se ha de reintentar la tarea en caso de error