Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Children Display
alltrue
styleh3
pageSuperb Cloud API

POST /backups/:backup_id/restore

Restore a disk to specified backup

Sections:

Table of Contents
maxLevel4
minLevel2
includeResponse.*|JSON.*|XML.*|Explanation.*

Response Parameters

Returns restored backup

JSON Request example

Code Block
languagebash
themeRDark
 curl -i -X POST -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url <api_url>/backups/:backup_id/restore.json

JSON Response

Code Block
themeRDark
 {
    "backup": {
        "allow_resize_without_reboot": true,
        "allowed_hot_migrate": true,
        "allowed_swap": true,
        "backup_server_id": 1,
        "backup_size": 969420,
        "built": true,
        "built_at": "2015-08-20T21:38:55+00:00",
        "created_at": "2015-08-20T21:37:54+00:00",
        "data_store_type": "lvm",
        "id": 6250,
        "identifier": "jijk18gqcjlh6m",
        "initiated": "manual",
        "iqn": null,
        "locked": false,
        "marked_for_delete": false,
        "min_disk_size": 5,
        "min_memory_size": 384,
        "note": null,
        "operating_system": "linux",
        "operating_system_distro": "rhel",
        "target_id": 489,
        "target_type": "VirtualMachine",
        "template_id": 128,
        "updated_at": "2015-08-20T22:34:40+00:00",
        "user_id": 337,
        "volume_id": null,
        "backup_type": "incremental",
        "disk_id": null
    }
}

XML Request example

Code Block
languagebash
themeRDark
 curl -i -X POST -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url <api_url>/backups/:backup_id/restore.xml