添加sql防火牆配置
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
polardb:AddFirewallRules |
create |
*DBCluster
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| DBClusterId |
string |
是 |
叢集 ID。 |
pc-***************** |
| RuleName |
string |
否 |
防火牆規則名稱。一次僅支援輸入一個規則名稱。 說明
|
testrule |
| 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"} |
| ResourceGroupId |
string |
否 |
資源群組 id。 |
rg-************ |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
2921D843-433A-5FB3-A03B-4EC093B219F8 |
| Message |
string |
返回資訊。 |
Successful |
| Success |
boolean |
請求結果。取值:
|
True |
樣本
正常返回樣本
JSON格式
{
"RequestId": "2921D843-433A-5FB3-A03B-4EC093B219F8",
"Message": "Successful",
"Success": true
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。