Mengubah izin akun pada kluster PolarDB Basis Data Relasional Cloud-Native for Xscale.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:GrantAccountPrivilegeZonal |
update |
*全部资源
|
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. |
testacc |
| DBName |
string |
Yes |
Nama database yang akan diberikan izin. Untuk memberikan izin pada beberapa database, pisahkan nama database dengan koma (,). |
testdb_1,testdb_2 |
| AccountPrivilege |
string |
Yes |
Izin akun. Nilai valid:
|
ReadWrite,ReadOnly |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Pastikan token unik di antara permintaan yang berbeda. Token bersifat case-sensitive dan dapat berisi hingga 64 karakter ASCII. |
6000170000591aed949d0f5******************** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
CD35F3-F3-44CA-AFFF-BAF869****** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "CD35F3-F3-44CA-AFFF-BAF869******"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | EngineMigration.ActionDisabled | Specified action is disabled while custins is in engine migration. | |
| 400 | LockTimeout | The request processing has failed due to lock timeout. | |
| 400 | Account.UpdateError | Instance %s update Account %s error | |
| 400 | InvalidDBName.Malformed | The specified parameter DBName is not valid. | |
| 400 | InvalidAccountName.Malformed | The specified parameter AccountName is not valid. | |
| 400 | InvalidAccountPrivilege.Malformed | The specified parameter AccountPrivilege is not valid. | |
| 403 | IncorrectAccountPrivilegeType | Current account privilege type does not support this operation. | |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | |
| 404 | InvalidDBClusterId.NotFound | The DBInstanceId provided does not exist in our records. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.