Mendeskripsikan aturan firewall SQL.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeFirewallRules |
get |
*DBCluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID Kluster. |
pc-***************** |
| RuleNameList |
string |
No |
Nama aturan firewall yang akan dikueri. Untuk mengkueri beberapa aturan, pisahkan nama aturan dengan koma (,). Catatan
Panggil operasi DescribeFirewallRules untuk menampilkan Tampilan detail semua aturan firewall pada Kluster target, termasuk nama aturan. |
testrule |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
84D7DCD2-54F7-5BD2-B055-F5DE9D2B5264 |
| 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 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Data |
object |
The result set. |
|
| RuleList |
array |
The list of firewall rules. |
|
|
string |
The rule object. |
"{"mode":"Defending","endpoint":"[{"EndpointName":"pe-**************","EndpointType":"Cluster","DBEndpointDescription":"Cluster Address"},{"EndpointName":"pe-************","EndpointType":"Custom","DBEndpointDescription":"pc-***********"},{"EndpointName":"pe-**************","EndpointType":"Custom","DBEndpointDescription":"pc-***********"}]","id":"test","sub_rules":[],"type":"BlackList","enabled":"true","users":{"applies_to":[]}}" |
|
| DBClusterId |
string |
The cluster ID. |
pc-***************** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "84D7DCD2-54F7-5BD2-B055-F5DE9D2B5264",
"Message": "Message",
"Success": true,
"Data": {
"RuleList": [
"\"{\"mode\":\"Defending\",\"endpoint\":\"[{\"EndpointName\":\"pe-**************\",\"EndpointType\":\"Cluster\",\"DBEndpointDescription\":\"Cluster Address\"},{\"EndpointName\":\"pe-************\",\"EndpointType\":\"Custom\",\"DBEndpointDescription\":\"pc-***********\"},{\"EndpointName\":\"pe-**************\",\"EndpointType\":\"Custom\",\"DBEndpointDescription\":\"pc-***********\"}]\",\"id\":\"test\",\"sub_rules\":[],\"type\":\"BlackList\",\"enabled\":\"true\",\"users\":{\"applies_to\":[]}}\""
]
},
"DBClusterId": "pc-*****************\n"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.