Perform Azure SQL Database Restore
You can can restore corrupted Azure SQL database to a restore point with the specified ID.
Request
To perform a disk restore to a specific Azure SQL restore point, send the HTTP POST request to the /restorePoints/sql/{restorePointId}/restoreDb endpoint. {restorePointId} is a system ID assigned to the restore point of an Azure SQL database in the Veeam Backup for Microsoft Azure REST API.
HTTP Request
POST https://<hostname>/api/v3/restorePoints/sql/{restorePointId}/restoreDb |
Request Headers
The request contains the following headers.
Header | Required | Value | Description |
---|---|---|---|
Authorization | Required | Bearer <Access-Token> | Authenticates a client who sends the request to the server. Must contain the access token for the current logon session in the Bearer <Access-Token> format. |
Request Body
To perform disk restore operation, use the DatabaseRestoreOptopnsV3 schema to send parameters in the request body.
{ "newLocation": { "newName": "string", "targetServerId": "string", "elasticPoolName": "string" }, "serviceAccountId": "string", "reason": "string", "sqlAccountId": "string" } |
Response
The server returns the following response to the client.
Response Codes
A successfully completed operation returns a response code 202 (Accepted).
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTP headers.
Header | Value | Description |
---|---|---|
Content-length | integer | Identifies the length of the response body message, in bytes. |
Content-type |
| Identifies the media type of the response body message. |
Response Body
In the response body, Veeam Backup for Microsoft Azure returns the session ID of the restore operation. For the session log details, see JobSessionV3.
Example
The following request starts the restore operation of the Azure SQL database to the restore point with the ID 047a1f81-b7fe-457b-90ce-531e465e2d7b.
|