Membuat akun untuk Kluster PolarDB Basis Data Relasional Cloud-Native di ENS.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:CreateAccountZonal |
create |
*全部资源
|
None | None |
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID Kluster. |
pc-************** |
| AccountName |
string |
Yes |
Nama akun. Nama harus memenuhi persyaratan berikut:
|
testacc |
| AccountPassword |
string |
Yes |
Kata sandi akun. Kata sandi harus memenuhi persyaratan berikut:
|
Test1111 |
| AccountType |
string |
No |
Tipe akun. Nilai valid:
|
Normal |
| AccountDescription |
string |
No |
Deskripsi akun. Deskripsi harus memenuhi persyaratan berikut:
|
testdes |
| DBName |
string |
No |
Nama database yang dapat diakses oleh akun tujuan. Anda dapat menentukan beberapa nama database. Pisahkan dengan koma (,). |
testdb |
| AccountPrivilege |
string |
No |
Izin akun. Nilai valid:
|
ReadWrite |
| ClientToken |
string |
No |
token Klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan Klien untuk menghasilkan token, tetapi Anda harus memastikan bahwa token bersifat unik di antara permintaan yang berbeda. token bersifat case-sensitive dan dapat berisi maksimum 64 karakter ASCII. |
6000170000591aed949d0f54a343f1a4233c1e7d1c5c****** |
| PrivForAllDB |
string |
No |
Apakah akan memberikan izin pada semua database saat ini dan yang akan datang di Kluster. Nilai valid:
|
0 |
| NodeType |
string |
No |
Tipe node. |
Normal |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| 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.