Menghapus database dari cluster PolarDB.
Deskripsi operasi
Cluster harus dalam status Running dan tidak terkunci. Jika tidak, database yang ditentukan tidak dapat dihapus.
Operasi penghapusan dilakukan secara asinkron. Diperlukan waktu yang lama untuk menghapus database berukuran besar. Respons sukses untuk operasi ini hanya menunjukkan bahwa permintaan untuk menghapus database telah dikirim. Anda harus melakukan kueri pada database untuk memeriksa apakah database telah dihapus.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DeleteDatabase |
delete |
*DBCluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID cluster. |
pc-************* |
| DBName |
string |
Yes |
Nama database. |
testdb |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
2FED790E-FB61-4721-8C1C-07C627****** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "2FED790E-FB61-4721-8C1C-07C627******"
}
Respons error
JSONformat
{
"RequestId": "2FED790E-FB61-4721-8C1C-07C627FA5A19"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidDBName.Malformed | The specified parameter DBName is not valid. | The format of the specified database name is invalid. |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
| 404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | The specified DBClusterId parameter is invalid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.