All Products
Search
Document Center

Cloud Backup:CreateHanaRestore

Last Updated:Oct 26, 2026

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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_MOST_RECENT: Most recent time. Restores the database to the most recent available state based on backups.

  • RECOVERY_TO_POINT_IN_TIME: Specific time. Restores the database to a specific point in time.

  • RECOVERY_TO_SPECIFIC_BACKUP: Specific backup. Restores the database to a specific database backup.

  • RECOVERY_TO_LOG_POSITION: Log position. Restores the database to a specific log position.

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 source database name@SID.

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: Successful.

  • false: Failed.

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.