Restore one or more disks of a virtual machine from snapshot or backup.

post/backup-recovery/v1beta1/virtual-machines/{id}/restore-disks

Restore one or more disks of a virtual machine.

Securitybearer
Request
path Parameters
id
required
string

UUID string uniquely identifying the virtual machine

Example: 9b4c14a6-3cd5-4907-97c4-cf44c5b641e4
Request Body schema: application/json
required
backupId
required
string

UUID string uniquely identifying the backup. Mandatory if the restore is from a backup.

Array of objects
restoreType
required
string

Specifies the type of restore that needs to be performed.

Enum: "PARENT" "ALTERNATE"
snapshotId
required
string

UUID string uniquely identifying the snapshot. Mandatory if the restore if from snapshot.

targetVmId
string

Identifier of the target VM where disks needs to be restored to. This is optional. By default restores are performed to the original VM. This provides an option to the user to restore disks to a different VM. This identifier can not be a id of deleted VM.

Responses
202

Accepted

400

Bad request

401

Unauthorized

403

Forbidden

409

Conflict

412

Precondition failed (if the generation number is invalid).

500

Internal / unexpected error.

Request samples
application/json
{
  • "backupId": "9b4c14a6-3cd5-4907-97c4-cf44c5b641e4",
  • "restoreDiskDetails": [
    ],
  • "restoreType": "PARENT",
  • "snapshotId": "9b4c14a6-3cd5-4907-97c4-cf44c5b641e4",
  • "targetVmId": "string"
}
Response samples
application/json
{ }