Modifies a DNS firewall rule.
Operation description
You can use this operation to modify a DNS firewall policy to accept, deny, or monitor traffic.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cloudfirewall:ModifyDnsFirewallPolicy |
update |
*DnsFirewallPolicy
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceIp |
string |
No |
The source IP address of the visitor. |
192.0.XX.XX |
| Lang |
string |
No |
The language of the content within the request and response. Valid values:-zh: Chinese-en: English |
zh |
| AclAction |
string |
No |
The action that is performed on traffic that hits the access control policy. Valid values:
|
log |
| Description |
string |
No |
The description of the access control policy. |
test |
| Destination |
string |
No |
The destination address in the access control policy.
|
db_group |
| DestinationType |
string |
No |
The type of the destination address in the access control policy. Valid values:
|
net |
| Source |
string |
No |
The source address in the access control policy. Valid values:
|
192.0.21.**/24 |
| AclUuid |
string |
Yes |
The unique ID of the access control policy. |
00281255-d220-4db1-8f4f-c4df22**** |
| SourceType |
string |
No |
The type of the source address in the access control policy. Valid values:
|
net |
| Release |
string |
No |
The status of the access control policy. By default, the policy is enabled after it is created. Valid values:
|
true |
| Priority |
string |
No |
The priority of the access control policy before the modification. |
1 |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
9C50C2A9-4BBB-5504-8ADA-C41A79**** |
Examples
Success response
JSON format
{
"RequestId": "9C50C2A9-4BBB-5504-8ADA-C41A79****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorParametersUid | The aliUid parameter is invalid. | The aliUid parameter is invalid. |
| 400 | ErrorDBSelect | An error occurred while querying database. | An error occurred while querying database. |
| 400 | ErrorAclNotExist | The ACL does not exist. | The ACL does not exist. |
| 400 | ErrorParameterIpVersion | The IP version is invalid. | The IP version is invalid. |
| 400 | ErrorParametersSource | The source is invalid. | The source is invalid. |
| 400 | ErrorParametersDestination | The Destination parameter is invalid. | The Destination parameter is invalid. |
| 400 | ErrorParametersAction | The action is invalid. | The action is invalid. |
| 400 | ErrorParametersNewOrder | The newOrder is invalid. | The newOrder is invalid. |
| 400 | ErrorParameters | Parameters error. | Parameter error. |
| 400 | ErrorAddressCountExceed | The maximum number of addresses is exceeded. | The maximum number of address is exceeded. |
| 400 | ErrorDBUpdate | internal error: sql updat. | An error occurred while updating the database. |
| 400 | ErrorDBInsert | An error occurred while performing an insert operation in the database. | An error occurred while performing an insert operation in the database. |
| 400 | ErrorRecordLog | An error occurred while updating the operation log. | An error occurred while updating the operation log. |
| 400 | ErrorMarshalJSON | An error occurred while encoding JSON. | An error occurred while encoding JSON. |
| 400 | ErrorAclRuleDuplicate | acl rule duplicate. | The same strategy exists. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.