Modifies the configuration of the SQL firewall.
Try it now

RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
polardb:ModifyFirewallRules | update | *DBCluster
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
DBClusterId | string | Yes | The cluster ID. | pc-***************** |
RuleName | string | Yes | The name of the firewall rule. You can specify only one rule name at a time. Note
| test |
RuleConfig | string | Yes | A JSON string that contains the configuration parameters of the firewall rule to modify and their values. The parameter values are strings. Example:
Note
| {"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"} |
Response elements
Element | Type | Description | Example |
object | Schema of Response | ||
RequestId | string | Id of the request | A8DBA3A7-82FB-5CBE-A002-8959E47D1D61 |
Message | string | The returned message. Note If the request is successful, Successful is returned. If the request fails, an error message is returned, such as an error code. | Successful |
Success | boolean | The result of the request. Valid values:
| true |
Examples
Success response
JSON
format
{ "RequestId": "A8DBA3A7-82FB-5CBE-A002-8959E47D1D61", "Message": "Successful", "Success": true }
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.