Page tree

Versions Compared

Key

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

Children Display
alltrue
styleh3
pageSuperb Cloud API

POST /virtual_machines/:id/backups 

Creates an incremental Backup <:id> is the id of your virtual machine

Sections:

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

Request Parameters

note - optional backup note

Response Parameters

JSON Request example

Code Block
languagebash
themeRDark
 curl -i -X POST -H 'Accept: application/json' -H 'Content-type:application/json' -u user:password --url https://mycp.superb.net/api/virtual_machines/:id/backups.json -d '{"backup":{"note":"manual BU"}}'

JSON Response

Code Block
{
    "backup": {
        "allow_resize_without_reboot": true,
        "allowed_hot_migrate": true,
        "allowed_swap": true,
        "backup_server_id": 1,
        "backup_size": 0,
        "built": false,
        "built_at": null,
        "created_at": "2015-08-20T22:04:17+00:00",
        "data_store_type": "lvm",
        "id": 6254,
        "identifier": "x2wp1q3ztbkiwt",
        "initiated": "manual",
        "iqn": null,
        "locked": true,
        "marked_for_delete": false,
        "min_disk_size": 0,
        "min_memory_size": 384,
        "note": "my backup disk",
        "operating_system": "linux",
        "operating_system_distro": "rhel",
        "target_id": 489,
        "target_type": "VirtualMachine",
        "template_id": 128,
        "updated_at": "2015-08-20T22:04:17+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:password --url https://mycp.superb.net/api/virtual_machines/:id/backups.xml -d '<backup><note>manual BU</note></backup>'