Membuat database pada kluster edge untuk PolarDB Basis Data Relasional Cloud-Native on ENS.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:CreateDatabaseZonal |
create |
*All Resource
|
None | None |
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID kluster. |
pc-************** |
| DBName |
string |
Yes |
Nama database. Nama harus memenuhi persyaratan berikut:
|
testDB |
| CharacterSetName |
string |
Yes |
Set karakter. |
utf8 |
| DBDescription |
string |
No |
Deskripsi database. Deskripsi harus memenuhi persyaratan berikut:
|
testdesc |
| AccountName |
string |
No |
Nama akun yang diberi izin untuk mengakses database. |
testacc |
| AccountPrivilege |
string |
No |
Izin akun. Nilai valid:
Nilai default: ReadWrite. |
ReadWrite |
| Collate |
string |
No |
Pengaturan lokal. Menentukan aturan pengurutan untuk database baru. |
C |
| Ctype |
string |
No |
Pengaturan lokal. Menentukan klasifikasi karakter untuk database. |
C |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan token. Token harus unik di antara permintaan yang berbeda. Token bersifat case-sensitive dan panjangnya dapat mencapai 64 karakter ASCII. |
6000170000591aed949d0f54a343f1a4233c1e7d1c5c****** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
93E98F25-BE02-40DA-83E3-F77F8D****** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "93E98F25-BE02-40DA-83E3-F77F8D******"
}
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. |
| 400 | Database.AddError | Instance %s add database minidoc error | Failed to add database minidoc to cluster %s. |
| 400 | InvalidDBDescription.Malformed | The specified parameter DBDescription is not valid. | The specified DBDescription parameter is invalid. |
| 400 | InvalidAccountPrivilege.Malformed | The specified parameter AccountPrivilege is not valid. | The specified AccountPrivilege parameter is invalid. |
| 400 | InvalidAccountName.Malformed | The specified parameter AccountName is not valid. | The specified AccountName parameter 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.Malformed | The specified parameter DBClusterId is not valid. | The specified DBClusterId parameter is invalid. |
| 404 | InvalidDBClusterId.NotFound | The DBInstanceId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.