Mengatur grup keamanan dalam daftar putih instans Database Apsara for Tair (kompatibel Redis).
Deskripsi operasi
Operasi ini menimpa grup keamanan yang ada dalam daftar putih instans dan menambahkan grup keamanan yang ditentukan oleh parameter SecurityGroupId ke daftar putih. Untuk operasi Konsol yang sesuai dengan API ini, lihat Menambahkan grup keamanan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:ModifySecurityGroupConfiguration |
update |
*DBInstance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
ID instans. |
r-bp1zxszhcgatnx**** |
| SecurityGroupId |
string |
Yes |
ID grup keamanan yang akan diatur. Anda dapat menentukan hingga 10 ID grup keamanan, dipisahkan dengan koma (,). Catatan
Ini akan menimpa pengaturan asli. Untuk nilai, lihat DescribeSecurityGroups untuk mengkueri informasi dasar grup keamanan yang telah Anda buat. |
sg-bpcfmyiu4ekp**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
147CAC09-E8C6-43F8-9599-982A43D6**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "147CAC09-E8C6-43F8-9599-982A43D6****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | EngineNotSupported | Engine specified cannot be supported the operation. | |
| 400 | AssociatedEcsSecurityGroupIdQuotaExceed | SecurityGroupId参数超过能使用的最大数量. | |
| 400 | MissingInstanceId | InstanceId is mandatory for this action. | |
| 400 | InvalidParam | Specified ecs security group id is not valid. | |
| 400 | InvalidIzNo.NotSupported | the Specified Zone not supported. | |
| 403 | AssociatedEcsSecurityGroupId.QuotaExceed | SecurityGroupIdQuotaExceeded exceeding the allowed amount of SecurityGroupId. | |
| 404 | MissingParameter | The input parameter “DBInstanceId” that is mandatory for processing this request is not supplied. | |
| 404 | InvalidInstanceId.NotFound | Specified instance does not exist. | |
| 404 | InvalidRegionZoneNotFound | Specified Region does not exist in RDS. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.