Mengubah status aturan firewall SQL untuk sebuah Kluster.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:EnableFirewallRules |
update |
*DBCluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID Kluster. |
pc-************ |
| RuleNameList |
string |
Yes |
Daftar nama aturan firewall yang akan diaktifkan atau dinonaktifkan, dipisahkan dengan koma. Catatan
Anda dapat menemukan nama aturan di tab Security Management > SQL Firewall pada Kluster. |
test111 |
| Enable |
boolean |
No |
Apakah akan mengaktifkan atau menonaktifkan aturan firewall yang ditentukan. Nilai valid:
Catatan
Parameter ini hanya berlaku jika nilai ditentukan untuk parameter RuleNameList. |
true |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The unique ID of the request. |
99B355CE-526C-478B-B730-AD9D7C****** |
| Message |
string |
The message returned. Catatan
Typically returns |
Message |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Contoh
Respons sukses
JSONformat
{
"RequestId": "99B355CE-526C-478B-B730-AD9D7C******",
"Message": "Message",
"Success": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.