Membuat atau memodifikasi daftar putih akses untuk sebuah kluster. Daftar putih tersebut dapat berupa daftar alamat IP atau security group.
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 yang didukung meliputi:
Catatan
Parameter ini hanya tersedia ketika WhiteListType diatur ke IP. |
10.23.12.24 |
| DBClusterIPArrayName |
string |
No |
Nama kelompok daftar putih alamat IP. Nama harus terdiri dari 2 hingga 120 karakter, hanya menggunakan huruf kecil dan angka, dimulai dengan huruf, serta 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 tersebut tidak akan terlihat di Konsol. Catatan
|
hidden |
| WhiteListType |
string |
No |
Tipe daftar putih. Nilai yang valid:
Nilai default adalah IP. |
IP |
| SecurityGroupIds |
string |
No |
ID security group. Pisahkan beberapa ID security group dengan koma (,). Catatan
|
sg-********* |
| ModifyMode |
string |
No |
Metode yang digunakan untuk memodifikasi daftar putih alamat IP. Nilai yang valid:
Catatan
Parameter ini hanya tersedia ketika WhiteListType diatur ke IP. |
Cover |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
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.