修改sql防火牆配置
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
polardb:ModifyFirewallRules |
update |
*DBCluster
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| DBClusterId |
string |
是 |
叢集 ID。 |
pc-***************** |
| RuleName |
string |
是 |
防火牆規則名稱。一次僅支援輸入一個規則名稱。 說明
|
test |
| RuleConfig |
string |
是 |
需要修改的防火牆規則的配置參數及其值的 JSON 串,參數的值都是字串類型,例如:
說明
|
{"id":"test","enabled":"true","mode":"Collecting","users":{"applies_to":[]},"endpoint":"[{"EndpointName":"pe-************","EndpointType":"Cluster","DBEndpointDescription":"Cluster Address"},{"EndpointName":"pe-************","EndpointType":"Custom","DBEndpointDescription":"pc-************"},{"EndpointName":"pe-************","EndpointType":"Custom","DBEndpointDescription":"pc-************K"}]","type":"WhiteList"} |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
A8DBA3A7-82FB-5CBE-A002-8959E47D1D61 |
| Message |
string |
請求返回訊息。 說明
請求成功時該參數返回 Successful,請求失敗時會返回請求異常資訊(如錯誤碼等)。 |
Successful |
| Success |
boolean |
請求結果。取值:
|
true |
樣本
正常返回樣本
JSON格式
{
"RequestId": "A8DBA3A7-82FB-5CBE-A002-8959E47D1D61",
"Message": "Successful",
"Success": true
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。