Menambahkan aturan Pembatasan SQL.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:AddSQLRateLimitingRules |
create |
*DBCluster
|
None | None |
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID Kluster. |
pc-************** |
| RuleName |
string |
Yes |
Nama aturan Pembatasan SQL. Anda hanya dapat menentukan satu nama aturan sekaligus. Catatan
|
testrule |
| RuleConfig |
string |
Yes |
Konfigurasi aturan Pembatasan SQL yang akan ditambahkan atau diubah, ditentukan sebagai string JSON. Nilai parameter harus berupa string. Contoh:
|
{"id":"test","enabled":"true","match_mode":"0","template":"dXBkYXRlIHQgc2V0IGEgPSAxIHdoZXJlIGlkID0gMQ==","user":"","database":"","waiting":1024,"endpoint":"[{"EndpointName":"pe-***********","EndpointType":"Cluster","DBEndpointDescription":"Cluster Address"}]","throttle_mode":0,"concurrency":1} |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Message |
string |
The response message. Catatan
If the request is successful, `Successful` is returned. If the request fails, an error message is returned, such as an error code. |
Message |
| RequestId |
string |
The request ID. |
69A85BAF-1089-4CDF-A82F-0A140F****** |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Contoh
Respons sukses
JSONformat
{
"Message": "Message",
"RequestId": "69A85BAF-1089-4CDF-A82F-0A140F******",
"Success": true
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.