Mengaktifkan atau menonaktifkan aturan Pembatasan SQL.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:EnableSQLRateLimitingRules |
update |
*全部资源
|
None | None |
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID Kluster. |
pc-***************** |
| RuleNameList |
string |
Yes |
Nama aturan Pembatasan SQL yang akan diaktifkan. Untuk menentukan beberapa aturan, pisahkan nama dengan koma (,). Catatan
Anda dapat melihat semua aturan Pembatasan SQL dan namanya di tab SQL Firewall pada halaman Security Management Kluster. |
testrule |
| Enable |
boolean |
Yes |
Apakah akan mengaktifkan atau menonaktifkan aturan Pembatasan SQL yang ditentukan. Nilai valid:
Catatan
Parameter ini hanya berlaku saat Anda menentukan parameter RuleNameList. |
true |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Message |
string |
The response message. Catatan
If the request is successful, |
Successful |
| RequestId |
string |
The ID of the request. |
4CE6DF97-AEA4-484F-906F-C407EE****** |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Contoh
Respons sukses
JSONformat
{
"Message": "Successful",
"RequestId": "4CE6DF97-AEA4-484F-906F-C407EE******",
"Success": true
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.