Membuat atau mengubah daftar putih akses untuk kluster. Daftar putih dapat berupa daftar putih alamat IP atau grup keamanan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ModifyDBClusterAccessWhitelist |
update |
*dbcluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID kluster. |
pc-************* |
| SecurityIps |
string |
No |
Alamat IP atau blok CIDR dalam kelompok daftar putih alamat IP. Semua kelompok daftar putih alamat IP dapat berisi total 1.000 alamat IP atau blok CIDR. Pisahkan beberapa alamat IP dengan koma (,). Format berikut didukung:
Catatan
Parameter ini hanya tersedia ketika WhiteListType diatur ke IP. |
10.23.12.24 |
| DBClusterIPArrayName |
string |
No |
Nama kelompok daftar putih alamat IP. Panjang nama harus 2 hingga 120 karakter. Nama harus terdiri dari huruf kecil dan angka. Nama harus diawali dengan huruf dan diakhiri dengan huruf atau angka.
Catatan
|
default |
| DBClusterIPArrayAttribute |
string |
No |
Atribut kelompok daftar putih alamat IP. Jika Anda mengatur parameter ini ke `hidden`, kelompok daftar putih tidak akan terlihat di konsol. Catatan
|
hidden |
| WhiteListType |
string |
No |
Tipe daftar putih. Nilai valid:
Nilai default adalah IP. |
IP |
| SecurityGroupIds |
string |
No |
ID grup keamanan. Pisahkan beberapa ID grup keamanan dengan koma (,). Catatan
|
sg-********* |
| ModifyMode |
string |
No |
Metode yang digunakan untuk mengubah daftar putih alamat IP. Nilai valid:
Catatan
Parameter ini hanya tersedia ketika WhiteListType diatur ke IP. |
Cover |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
D0CEC6AC-7760-409A-A0D5-E6CD86****** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "D0CEC6AC-7760-409A-A0D5-E6CD86******"
}
Respons error
JSONformat
{
"RequestId": "D0CEC6AC-7760-409A-A0D5-E6CD8660E9CC"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NumberExceed.securityGroupIds | The number of SecurityGroupIds exceeds 10. | |
| 400 | InvalidSecurityIPList.Duplicate | Specified security IP list is not valid: Duplicate IP address in the list | |
| 400 | InvalidSecurityIPList.Format | Specified security IP list format is not valid. | |
| 400 | LockTimeout | The request processing has failed due to lock timeout. | |
| 403 | SecurityIPList.Duplicate | Specified same security IP already exists. | |
| 403 | OperationDenied.LockMode | The operation is not permitted when the instance is locked. | |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | |
| 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.