Membuat akun database untuk Kluster PolarDB Basis Data Relasional Cloud-Native.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:CreateAccount |
create |
*dbcluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID Kluster. |
pc-************** |
| AccountName |
string |
Yes |
Nama akun database. Nama harus memenuhi persyaratan berikut:
|
testacc |
| AccountPassword |
string |
Yes |
Kata sandi akun database. Kata sandi harus memenuhi persyaratan berikut:
|
Test1111 |
| AccountType |
string |
No |
Tipe akun. Nilai valid:
Catatan
|
Normal |
| AccountDescription |
string |
No |
Deskripsi akun. Deskripsi harus memenuhi persyaratan berikut:
|
testdes |
| DBName |
string |
No |
Nama database yang dapat diakses oleh akun. Untuk menentukan beberapa database, pisahkan nama database dengan koma (,). Catatan
Parameter ini hanya berlaku untuk akun standar pada Kluster PolarDB Basis Data Relasional Cloud-Native untuk MySQL. |
testdb |
| AccountPrivilege |
string |
No |
Tingkat Hak istimewa yang diberikan pada database yang ditentukan. Nilai valid:
Catatan
|
ReadWrite |
| ClientToken |
string |
No |
token yang dihasilkan Klien untuk memastikan idempotensi permintaan. token harus unik di seluruh permintaan. token bersifat case-sensitive dan dapat terdiri dari hingga 64 karakter ASCII. |
6000170000591aed949d0f54a343f1a4233c1e7d1c5c****** |
| PrivForAllDB |
string |
No |
Apakah akan memberikan izin akun pada semua database saat ini dan yang akan datang di Kluster. Nilai valid:
Catatan
|
0 |
| NodeType |
string |
No |
Tipe node. Nilai valid:
|
Search |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
CED079B7-A408-41A1-BFF1-EC608E****** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "CED079B7-A408-41A1-BFF1-EC608E******"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | LockTimeout | The request processing has failed due to lock timeout. | |
| 400 | EngineMigration.ActionDisabled | Specified action is disabled while custins is in engine migration. | |
| 400 | InvalidAccountPassword.Malformed | The specified parameter AccountPassword is not valid. | |
| 400 | InvalidAccountType.Malformed | The specified parameter AccountType is not valid. | |
| 400 | InvalidAccountDescription.Malformed | The specified parameter AccountDescription is not valid. | |
| 400 | InvalidAccountPrivilege.Malformed | The specified parameter AccountPrivilege is not valid. | |
| 400 | InvalidAccountName.Malformed | The specified parameter AccountName is not valid. | |
| 404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.