DescribeDnsFirewallPolicy
Queries the DNS firewall ACL list.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cloudfirewall:DescribeDnsFirewallPolicy |
get |
*DnsFirewallPolicy
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceIp |
string |
No |
The source IP address of the requester. |
140.205.118.XXX |
| Lang |
string |
No |
The language of the request and response. Valid values:
|
zh |
| CurrentPage |
string |
Yes |
The page number of the current page for a paging query. Default value: 1. |
1 |
| PageSize |
string |
Yes |
The number of entries to return in the current query. |
10 |
| Source |
string |
No |
The source address in the access control policy of the DNS border firewall. Fuzzy match is supported. Note
Source can be a single CIDR block or an address book name. |
192.0.XX.XX/24 |
| Destination |
string |
No |
The destination address in the access control policy of the DNS border firewall. Fuzzy match is supported. Note
Destination can be a single CIDR block, a domain name, or an address book name. |
10.2.XX.XX/24 |
| Description |
string |
No |
The description of the DNS border firewall policy. |
test |
| AclAction |
string |
No |
The action that Cloud Firewall performs on the traffic in the access control policy of the DNS border firewall. Valid values:
Note
If you do not specify this parameter, all actions are queried. |
accept |
| Release |
string |
No |
The status of the access control policy. By default, the policy is enabled after it is created. Valid values:
|
true |
| AclUuid |
string |
No |
The unique ID of the firewall rule. |
b6c8f905-2eb6-442a-ba35-9416e**** |
| IpVersion |
string |
No |
The IP address version. Valid values:
Valid values:
|
4 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageNo |
string |
The current page number. |
1 |
| PageSize |
string |
The number of entries to return in the current query. |
10 |
| RequestId |
string |
The ID of the request. |
0A4ACDE9-9F9F-56C1-B3B7-60971BA1**** |
| TotalCount |
string |
The total number of returned entries. |
10 |
| Policys |
array<object> |
The information about the access control policy of the DNS firewall. |
|
|
object |
The information about the access control policy of the DNS firewall. |
||
| Direction |
string |
The traffic direction of the access control policy. Valid values:
|
in |
| DestinationGroupType |
string |
The type of the destination address book in the access control policy. Valid values:
|
ip |
| HitLastTime |
integer |
The latest hit UNIX timestamp. The value is a UNIX timestamp in seconds. |
1579261141 |
| Destination |
string |
The destination address in the access control policy of the DNS border firewall. Valid values:
|
x.x.x.x/32 |
| SourceType |
string |
The type of the source address in the access control policy of the DNS border firewall. Valid values:
|
net |
| AclUuid |
string |
The unique ID of the access control policy. |
01281255-d220-4db1-8f4f-c4df221a**** |
| Priority |
integer |
The priority of the access control policy. A smaller value indicates a higher priority. |
110 |
| Source |
string |
The source address in the access control policy. Valid values:
|
192.0.XX.XX/24 |
| DestinationType |
string |
The type of the destination address in the access control policy. Valid values:
|
net |
| HitTimes |
integer |
The number of hits for the access control policy. |
100 |
| IpVersion |
integer |
The IP address version. Valid values:
|
6 |
| Description |
string |
The description of the access control policy of the DNS border firewall. |
test |
| SourceGroupType |
string |
The type of the source address book in the access control policy. Valid values:
|
ip |
| AclAction |
string |
The action that Cloud Firewall performs on the traffic in the access control policy. Valid values:
|
accept |
| Release |
string |
The status of the access control policy. By default, the policy is enabled after it is created. Valid values:
|
true |
| DestinationAddrs |
array |
The list of addresses in the destination address book. |
|
|
string |
The list of addresses in the destination address book. |
192.0.XX.XX/24 |
|
| SourceAddrs |
array |
The source addresses. |
|
|
string |
The source addresses. |
10.2.XX.XX/24 |
Examples
Success response
JSON format
{
"PageNo": "1",
"PageSize": "10",
"RequestId": "0A4ACDE9-9F9F-56C1-B3B7-60971BA1****",
"TotalCount": "10",
"Policys": [
{
"Direction": "in",
"DestinationGroupType": "ip",
"HitLastTime": 1579261141,
"Destination": "x.x.x.x/32",
"SourceType": "net",
"AclUuid": "01281255-d220-4db1-8f4f-c4df221a****",
"Priority": 110,
"Source": "192.0.XX.XX/24",
"DestinationType": "net",
"HitTimes": 100,
"IpVersion": 6,
"Description": "test",
"SourceGroupType": "ip",
"AclAction": "accept",
"Release": "true",
"DestinationAddrs": [
"192.0.XX.XX/24\n"
],
"SourceAddrs": [
"10.2.XX.XX/24\n"
]
}
]
}
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 | ErrorParameterIpVersion | The IP version is invalid. | The IP version is invalid. |
| 400 | ErrorParametersSource | The source is invalid. | The source is invalid. |
| 400 | ErrorParametersAction | The action is invalid. | The action is invalid. |
| 400 | ErrorParametersNewOrder | The newOrder is invalid. | The newOrder is invalid. |
| 400 | ErrorParametersPageSizeOrNo | Either pageSize or pageNo is invalid. | Either pageSize or pageNo is invalid. |
| 400 | ErrorMarshalJSON | An error occurred while encoding JSON. | An error occurred while encoding JSON. |
| 400 | ErrorParametersDestination | The Destination parameter is invalid. | The Destination parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.