Membuat akun yang diberikan izin hanya-baca untuk node shard dalam instans kluster sharded Database Apsara for MongoDB yang menggunakan cloud disk.
Deskripsi operasi
-
You can create an account for shard nodes only in an ApsaraDB for MongoDB sharded cluster instance that uses cloud disks.
-
The account is granted read-only permissions.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:CreateAccount |
create |
*DBInstance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
ID kluster. |
dds-uf6e9433e955xxxx |
| AccountName |
string |
Yes |
Nama akun database. Panjang nama harus 4 hingga 16 karakter. Dapat berisi huruf kecil, digit, dan garis bawah (_). Harus dimulai dengan huruf kecil. Akun diberikan izin hanya-baca. |
admin1 |
| AccountPassword |
string |
Yes |
Kata sandi akun database. Panjang kata sandi harus 8 hingga 32 karakter. Dapat berisi minimal tiga tipe karakter berikut: huruf besar, huruf kecil, digit, dan karakter khusus. Karakter khusus mencakup ! # $ % ^ & * ( ) _ + - =. |
Test123456! |
| CharacterType |
string |
No |
Tipe akun yang ingin Anda buat. Nilai valid:
Catatan
Anda hanya dapat mengatur parameter ini ke db. |
db |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
7FEF1BEF-2842-5758-9126-415A297XXXXX |
Contoh
Respons sukses
JSONformat
{
"RequestId": "7FEF1BEF-2842-5758-9126-415A297XXXXX"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidAccountName.Malformed | Specified parameter AccountName is not valid. | |
| 400 | InvalidAccountPassword.Malformed | Specified parameter AccountPassword is not valid. | |
| 400 | InvalidAccountDescription.Malformed | Specified parameter AccountDescription is not valid. | |
| 404 | AccountLimitExceeded | AccountQuotaExceeded: Exceeding the allowed amount of account. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.