Memodifikasi izin akun ApsaraDB for Tair (kompatibel dengan Redis).
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:GrantAccountPrivilege |
update |
*DBInstance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instance tempat akun tersebut berada. |
r-bp1zxszhcgatnx**** |
| AccountName |
string |
Yes |
Nama akun. Anda dapat memanggil operasi DescribeAccounts untuk mengkueri nama akun. |
demoaccount |
| AccountPrivilege |
string |
Yes |
Izin akun. Nilai yang valid:
|
RoleReadWrite |
| SourceBiz |
string |
No |
Parameter ini hanya digunakan untuk pemeliharaan internal. Anda tidak perlu menentukan parameter ini. |
SDK |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
3845BDF5-15A6-4444-B770-78501819**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "3845BDF5-15A6-4444-B770-78501819****"
}
Respons error
JSONformat
{
"RequestId": "3845BDF5-15A6-4444-B770-785018191E25"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidAccountName.Format | Specified AccountName is not valid. | |
| 400 | InvalidAccountPrivilege.Format | Specified AccountPrivilege is not valid. | |
| 400 | IncorrectAccount | Current DB instance account does not support this operation. | |
| 400 | IncorrectMinorVersion | Current engine minor version does not support operations. | |
| 404 | InvalidAccountName.NotFound | Specified AccountName does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.