Creates a restore job for an SAP HANA database.
Operation description
This operation restores a database to a specified state. Proceed with caution. For more information, see Restore databases to an SAP HANA instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hbr:CreateHanaRestore |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| VaultId |
string |
No |
The ID of the backup vault. |
v-000************yqr |
| ClusterId |
string |
Yes |
The ID of the SAP HANA instance that you want to restore. |
cl-000fbrs5******ka9w |
| DatabaseName |
string |
Yes |
The name of the database that you want to restore. |
TS2 |
| BackupId |
integer |
No |
The ID of the backup. |
1645628400235 |
| Mode |
string |
Yes |
The recovery mode. Valid values:
|
RECOVERY_TO_POINT_IN_TIME |
| RecoveryPointInTime |
integer |
No |
The point in time to which you want to restore the database. This parameter is valid only if you set the Mode parameter to RECOVERY_TO_POINT_IN_TIME. HBR restores the database to a state closest to the specified point in time. |
1635315505 |
| LogPosition |
integer |
No |
The log position to which you want to restore the database. This parameter is valid only if you set the Mode parameter to RECOVERY_TO_LOG_POSITION. |
0 |
| VolumeId |
integer |
No |
The ID of the volume that you want to restore. This parameter is valid only if you set the Mode parameter to RECOVERY_TO_LOG_POSITION. |
0 |
| UseCatalog |
boolean |
No |
Whether to use a catalog backup to restore the database. This parameter is required only if you set the Mode parameter to RECOVERY_TO_SPECIFIC_BACKUP. If you do not use a catalog backup, you must specify a backup file prefix. Cloud Backup then finds and restores the matching backup file. |
false |
| BackupPrefix |
string |
Yes |
The backup prefix. |
COMPLETE_DATA_BACKUP_2022_05_02_15_39 |
| SystemCopy |
boolean |
No |
Whether to restore the database to a different instance. |
false |
| Source |
string |
No |
The name of the source system. Set the value in the |
HNP@HNP |
| SourceClusterId |
string |
No |
The ID of the source SAP HANA instance. |
cl-000ii8tzv******xm0t |
| ClearLog |
boolean |
No |
Whether to delete all log entries from the log area after the restore completes. Valid values: true and false. If you set the value to false, all log entries are deleted from the log area after the restore completes. |
false |
| CheckAccess |
boolean |
No |
Whether to validate the differential backup and log backup before the restore starts. Valid values: true and false. If you set the value to true, Cloud Backup checks whether the required differential backup and log backup are available. If either is unavailable, the restore job does not start. |
false |
| UseDelta |
boolean |
No |
Whether to use a differential backup or incremental backup to restore the database. Valid values: true and false. If you set the value to true, a differential or incremental backup is used. If you set the value to false, Cloud Backup uses a log backup instead. |
true |
| SidAdmin |
string |
No |
The SID admin account that is created by SAP HANA. |
DB |
| MasterClientId |
string |
No |
The ID of the client where the primary node of the SAP HANA resides. |
c-000ii8tzv********** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The HTTP status code. The value 200 indicates a successful call. |
200 |
| Message |
string |
The returned message. "successful" is returned for successful calls. Otherwise, an error message is returned. |
successful |
| RequestId |
string |
The ID of the request. |
EEC65C22-2152-5E31-8AD6-D6CBF1BFF49F |
| Success |
boolean |
Indicates whether the call is successful. Valid values:
|
true |
| RestoreId |
string |
The ID of the restore job. |
hr-000fb9bz190p1rse6jwv |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "successful",
"RequestId": "EEC65C22-2152-5E31-8AD6-D6CBF1BFF49F",
"Success": true,
"RestoreId": "hr-000fb9bz190p1rse6jwv"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.