查詢sql防火牆資訊
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
polardb:DescribeFirewallRules |
get |
*DBCluster
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| DBClusterId |
string |
是 |
叢集 ID。 |
pc-***************** |
| RuleNameList |
string |
否 |
需要查詢的防火牆規則名稱。支援輸入多個規則名稱進行批量查詢,多個名稱間用英文逗號(,)分隔。 說明
您可以通過 DescribeFirewallRules 介面查看目的地組群下所有防火牆規則的詳情,包括規則名稱。 |
testrule |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
84D7DCD2-54F7-5BD2-B055-F5DE9D2B5264 |
| Message |
string |
請求返回訊息。 說明
請求成功時該參數返回 Successful,請求失敗時會返回請求異常資訊(如錯誤碼等)。 |
Message |
| Success |
boolean |
請求結果。取值:
|
true |
| Data |
object |
結果集。 |
|
| RuleList |
array |
防火牆規則列表。 |
|
|
string |
規則對象。 |
"{"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 |
叢集 ID。 |
pc-***************** |
樣本
正常返回樣本
JSON格式
{
"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"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。