Description
Save images of boot and additional disk backup.
It is for making the backup object which will be deleted after 3 times use, to be permanent.
※backup_id : The ID which automatically executes cancel operation when 1VM is applied for backup
※backuprun_id : The ID which associates to a backup operation
Request URL
Compute API v2.0
POST /v1/{tenant_id}/backup/{backup_id}/action
Request Parameters
| Parameter | Value | Style | Description |
|---|---|---|---|
| X-Auth-Token | User Token | header | |
| tenant_id | Tenant ID | URI | |
| backup_id | Backup ID | URI | The ID which automatically executes cancel operation when 1VM is applied for backup |
| backuprun_id | backuprun ID | plain | The ID which associates to a backup operation |
| image_name | Image Name | plain | Half-width alphanumeric, "-" and "_" are only allowed. The length should be of 1-255 characters. |
Request Json
{
"createImage": {
"backuprun_id": "9ba40be79b474328a42046d47171ca1d",
"image_name": "sample_image01"
}
}
Normal response codes
202 Accepted
Example
curl -i -X POST \
-H "Accept: application/json" \
-H "X-Auth-Token: 35941e7df872405d84e5b026dba8323c" \
-d '{"createImage": {"backuprun_id": "136918faac024d879acda658d47c290f","image_name": "backup_image01"}}' \
https://compute.tyo1.cloud.z.com/v2/1864e71d2deb46f6b47526b69c65a45d/backup/3166c62f-88d5-4807-b7e2-d92c95e2863b/actionHTTP/1.1 202 Accepted Date: Tue, 10 Feb 2015 08:10:45 GMT Server: Apache Content-Length: 0 Content-Type: text/html; charset=UTF-8