This API is used to delete manual backups in batches.
This API is only available for RDS for SQL Server instances.
POST https://{Endpoint}/v3/{project_id}/backups/batch-delete
Name |
Mandatory |
Description |
|---|---|---|
project_id |
Yes |
Specifies the project ID of a tenant in a region. For details about how to obtain the project ID, see Obtaining a Project ID. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
Content-Type |
Yes |
String |
The content type. The default value is application/json. |
X-Auth-Token |
Yes |
String |
Specifies the user token. The user token is a response to the API used to obtain a user token. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
backup_ids |
Yes |
Array of strings |
IDs of the manual backups to be deleted. Value range: [1, 50] |
Delete manual backups in batches.
POST https://rds.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/backups/batch-delete
{
"backup_ids" : [ "53ad33abe43976054br04", "63ad3439af9776054br04" ]
}
Name |
Type |
Description |
|---|---|---|
delete_results |
Array of objects |
Backup deletion results. For details, see Table 5. |
Parameter |
Type |
Description |
|---|---|---|
backup_id |
String |
Backup ID. |
error_code |
String |
Code returned after a task is submitted.
|
error_msg |
String |
Description returned after a task is submitted.
|
{
"delete_results" : [ {
"backup_id" : "dsfae23fsfdsae3435br04",
"error_code" : "DBS.200054",
"error_msg" : "the backup is in use"
} ,
{
"backup_id" : "ed23545223fsfdsae3435br04",
"error_code" : "0",
"error_msg" : "Success"
}
] }
For details, see Status Codes.
For details, see Error Codes.