Memodifikasi izin akun untuk instans Tair (kompatibel dengan Redis OSS).
Deskripsi operasi
Hanya mendukung instans Tair (kompatibel dengan Redis OSS) versi Redis 4.0 atau lebih baru.
Instans Tair (kompatibel dengan Redis OSS) harus dalam status running.
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 instans tempat akun tersebut berada. |
r-bp1zxszhcgatnx**** |
| AccountName |
string |
Yes |
Nama akun. Anda dapat memanggil operasi DescribeAccounts untuk mendapatkan nama akun tersebut. |
demoaccount |
| AccountPrivilege |
string |
Yes |
Izin akun. Nilai default: RoleReadWrite. Nilai yang valid:
|
RoleReadWrite |
| SourceBiz |
string |
No |
Parameter ini hanya digunakan untuk maintenance 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.