Deletes the backup sets of a PolarDB cluster.
Operation description
Before you call this operation, make sure that the cluster meets the following requirements:
The cluster is in the Running state.
The backup sets are in the Success state.
You can call the DescribeBackups operation to query the status of backup sets.
After you delete the backup set file, the storage space that is occupied by the file is released. The released storage space is smaller than the size of the file because your snapshots share some data blocks
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DeleteBackup |
delete |
*dbcluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. |
pc-************** |
| BackupId |
string |
Yes |
The backup ID. If you need to specify multiple backup IDs, separate the backup IDs with commas (,). Note
You can call the DescribeBackups operation to query the backup IDs. |
11111111 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
3CF4F9FE-BF77-4739-8D68-B8DF5D****** |
Examples
Success response
JSON format
{
"RequestId": "3CF4F9FE-BF77-4739-8D68-B8DF5D******"
}
Error response
JSON format
{
"RequestId":"3CF4F9FE-BF77-4739-8D68-B8DF5D3BAD8B"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidBackupSetID.NotFound | The specified parameter BackupId is not valid. | The specified BackupId parameter is invalid. |
| 404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.