Description
Specify one VM and apply it for backup.
※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
Request Parameters
| Parameter | Value | Style | Description |
|---|---|---|---|
| X-Auth-Token | User Token | header | |
| tenant_id | Tenant ID | URI | |
| instance_id | ID for a Specific VM | plain |
Request Json
{
"backup": {
"instance_id":"53235-4ioifjw-32423423"
}
}
Normal response codes
201 Created
Example
curl -i -X POST \
-H "Accept: application/json" \
-H "X-Auth-Token: 35941e7df872405d84e5b026dba8323c" \
-d '{"backup": {"instance_id":"efbc4dea-e7e3-4890-883c-9a7a5ca9e105"}}' \
https://compute.tyo1.cloud.z.com/v2/1864e71d2deb46f6b47526b69c65a45d/backup
HTTP/1.1 201 Created
Date: Tue, 10 Feb 2015 07:54:51 GMT
Server: Apache
Content-Length: 134
Content-Type: text/html; charset=UTF-8
{
"backup": {
"instance_id": "efbc4dea-e7e3-4890-883c-9a7a5ca9e105",
"created_at": "2015-05-08T08:52:28Z",
"id": "3166c62f-88d5-4807-b7e2-d92c95e2863b"
}
}