Description
Restore backup for boot disk
※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
The operation can be executed only when VM associates with backup ID is not running.
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 | Backup Run ID | plain | The ID which associates to a backup operation |
Request Json
{
"restore": {
"backuprun_id": ""
}
}
Normal response codes
202 Accepted
Example
curl -i -X POST \
-H "Accept: application/json" \
-H "X-Auth-Token: 35941e7df872405d84e5b026dba8323c" \
-d '{"restore": {"backuprun_id": "136918faac024d879acda658d47c290f"}}' \
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