All Products
Search
Document Center

Cloud Backup:CreateHanaRestore

Last Updated:Nov 06, 2024

Creates a restore job for an SAP HANA database.

Operation description

If you call this operation to restore a database, the database is restored to a specified state. Proceed with caution. For more information, see Restore databases to an SAP HANA instance.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
hbr:CreateHanaRestorecreate
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
VaultIdstringNo

The ID of the backup vault.

v-000************yqr
ClusterIdstringYes

The ID of the SAP HANA instance that you want to restore.

cl-000fbrs5******ka9w
DatabaseNamestringYes

The name of the database that you want to restore.

TS2
BackupIdlongYes

The ID of the backup.

1645628400235
ModestringYes

The recovery mode. Valid values:

  • RECOVERY_TO_MOST_RECENT: restores the database to the recently available state to which the database has been backed up.
  • RECOVERY_TO_POINT_IN_TIME: restores the database to a specified point in time.
  • RECOVERY_TO_SPECIFIC_BACKUP: restores the database to a specified backup.
  • RECOVERY_TO_LOG_POSITION: restores the database to a specified log position.
RECOVERY_TO_POINT_IN_TIME
RecoveryPointInTimelongNo

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
LogPositionlongNo

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
VolumeIdintegerNo

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
UseCatalogbooleanNo

Specifies 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 turn off Use Catalog, you must specify the prefix of a backup file. Then, Cloud Backup finds the backup file based on the specified prefix and restores the backup file.

false
BackupPrefixstringYes

The backup prefix.

COMPLETE_DATA_BACKUP_2022_05_02_15_39
SystemCopybooleanNo

Specifies whether to restore the database to a different instance.

false
SourcestringNo

The name of the source system. This parameter specifies the name of the source database that you want to restore. You must set the parameter in the <Source database name>@SID format.

HNP@HNP
SourceClusterIdstringNo

The ID of the source SAP HANA instance.

cl-000ii8tzv******xm0t
ClearLogbooleanNo

Specifies whether to delete all log entries from the log area after the log entries are restored. Valid values: true and false. If you set the value to false, all log entries are deleted from the log area after the log entries are restored.

false
CheckAccessbooleanNo

Specifies whether to validate the differential backup and log backup. Valid values: true and false. If you set the value to true, HBR checks whether the required differential backup and log backup are available before the restore job starts. If the differential backup or log backup is unavailable, HBR does not start the restore job.

false
UseDeltabooleanNo

Specifies whether to use a differential backup or an incremental backup to restore the database. Valid values: true and false. If you want to use a differential backup or an incremental backup to restore the database, set the value to true. If you set the value to false, HBR uses a log backup to restore the database.

true
SidAdminstringNo

The SID admin account that is created by SAP HANA.

DB
MasterClientIdstringNo

The ID of the client where the primary node of the SAP HANA resides.

c-000ii8tzv**********

Response parameters

ParameterTypeDescriptionExample
object
Codestring

The HTTP status code. The status code 200 indicates that the call is successful.

200
Messagestring

The message that is returned. If the call is successful, "successful" is returned. If the call fails, an error message is returned.

successful
RequestIdstring

The ID of the request.

EEC65C22-2152-5E31-8AD6-D6CBF1BFF49F
Successboolean

Indicates whether the call is successful. Valid values:

  • true: The call is successful.
  • false: The call fails.
true
RestoreIdstring

The ID of the restore job.

hr-000fb9bz190p1rse6jwv

Examples

Sample success responses

JSONformat

{
  "Code": "200",
  "Message": "successful",
  "RequestId": "EEC65C22-2152-5E31-8AD6-D6CBF1BFF49F",
  "Success": true,
  "RestoreId": "hr-000fb9bz190p1rse6jwv"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history