Updates the backup retention period of an SAP HANA database.
Operation description
To update the backup parameters of a database, call UpdateHanaBackupSetting.
After the backup retention period of an SAP HANA database expires, Cloud Backup automatically clears expired BACKINT backups, catalog records related to file backups, and associated data. Cleared data cannot be recovered. Configure the backup retention period carefully based on your business requirements.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hbr:UpdateHanaRetentionSetting |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| VaultId |
string |
Yes |
The ID of the backup vault. |
v-000fb0v2ly******k6 |
| ClusterId |
string |
Yes |
The SAP HANA instance ID. |
cl-00024vyjj******srrq |
| Schedule |
string |
Yes |
The policy for updating the retention period. Valid format:
|
I|0|P1D |
| RetentionDays |
integer |
Yes |
The number of days for which backups are retained. If Disabled is set to false, backups are retained for the number of days specified by this parameter. |
90 |
| Disabled |
boolean |
Yes |
Specifies whether backups are permanently retained. Valid values:
|
false |
| DatabaseName |
string |
Yes |
The name of the database. |
SYSTEMDB |
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 for a successful request. If an error occurs, the corresponding error message is returned. |
successful |
| RequestId |
string |
The ID of the request. |
7BEE26EB-8EE3-57A0-A9DE-5FD700165DE5 |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "successful",
"RequestId": "7BEE26EB-8EE3-57A0-A9DE-5FD700165DE5",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.