Restore a datastore from snapshot or a backup.

post/backup-recovery/v1beta1/datastores/{id}/restore

Restores a datastore from selected snapshot or backup.

Securitybearer
Request
path Parameters
id
required
string

UUID string uniquely identifying the datastore

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

UUID string uniquely identifying the backup.

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.

object (alternateDSRestoreRequestParams)

Provides the details about the target datastore location and other inputs to create a new datastore in case of an alternate restore. These inputs are required only if the restore type is 'ALTERNATE'. Parameters are optional and values default to parent datastore details.

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",
  • "restoreType": "PARENT",
  • "snapshotId": "9b4c14a6-3cd5-4907-97c4-cf44c5b641e4",
  • "targetDatastoreInfo": {
    }
}
Response samples
application/json
{ }