Creates a restore job for an SAP HANA database.
Operation description
Calls the CreateHanaRestore operation to restore a specified database to a specified state. Proceed with caution. For more information, see Restore SAP HANA.
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 instance ID of the SAP HANA instance to be recovered. |
cl-000fbrs5******ka9w |
| DatabaseName |
string |
Yes |
The name of the database to be restored. |
TS2 |
| BackupId |
integer |
No |
The ID of the backup. |
1645628400235 |
| Mode |
string |
Yes |
The restore 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 when the Mode parameter is set to RECOVERY_TO_POINT_IN_TIME. The system restores the database to the state closest to this point in time. |
1635315505 |
| LogPosition |
integer |
No |
The log position. This parameter is valid only when the Mode parameter is set to RECOVERY_TO_LOG_POSITION. |
0 |
| VolumeId |
integer |
No |
The ID of the volume to be restored. This parameter is valid only when the Mode parameter is set to RECOVERY_TO_LOG_POSITION. |
0 |
| UseCatalog |
boolean |
No |
Specifies whether to search for backups from the catalog. This parameter is valid only when the Mode parameter is set to RECOVERY_TO_SPECIFIC_BACKUP. If you do not use the catalog, you must specify a backup prefix, and Cloud Backup restores the database based on the backup prefix. |
false |
| BackupPrefix |
string |
Yes |
The backup prefix. |
COMPLETE_DATA_BACKUP_2022_05_02_15_39 |
| SystemCopy |
boolean |
No |
Specifies whether to perform a cross-instance restore. |
false |
| Source |
string |
No |
The name of the source system. This parameter specifies the name of the source database to be restored, in the format of |
HNP@HNP |
| SourceClusterId |
string |
No |
The instance ID of the source SAP HANA instance. |
cl-000ii8tzv******xm0t |
| ClearLog |
boolean |
No |
Specifies whether to initialize the log area. If you do not want to restore the log segments that reside in the log area, set this parameter to false. After the restore job is complete, log entries are deleted from the log area. |
false |
| CheckAccess |
boolean |
No |
Specifies whether to check the availability of differential and log backups. If you enable this option, the system checks whether the required differential and log backups are available at the beginning of the restore job. If a differential or log backup is missing, the restore job stops before any data is changed. |
false |
| UseDelta |
boolean |
No |
Specifies whether to use differential backups. Select this option if you want to perform a restore by using differential or incremental backups. If you choose to perform a restore without using differential or incremental backups, log backups are used for the restore. |
true |
| SidAdmin |
string |
No |
The SidAdmin account, which is a system account created by SAP HANA. |
DB |
| MasterClientId |
string |
No |
The client ID of the HANA master node. |
c-000ii8tzv********** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The return code. A value of 200 indicates success. |
200 |
| Message |
string |
The return message. The value successful is returned if the call succeeds, and an error message is returned if the call fails. |
successful |
| RequestId |
string |
The request ID. |
EEC65C22-2152-5E31-8AD6-D6CBF1BFF49F |
| Success |
boolean |
Indicates whether the request 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.