DescribeResolverRules
Queries a list of forwarding rules.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pvtz:DescribeResolverRules |
list |
*Rule
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Keyword |
string |
No |
The keyword for the forwarding rule name. Fuzzy match is supported and the search is case-insensitive. |
test |
| Lang |
string |
No |
The language of the response. Valid values:
Default value: en. |
en |
| PageNumber |
integer |
No |
The paging settings for the page number in the paged query. The starting value is 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The paging settings for the data volume per page in the paged query. Maximum value: 100. Default value: 20. |
20 |
| NeedDetailAttributes |
boolean |
No |
Specifies whether to return additional information, such as the list of VPCs associated with the forwarding rule. Valid values:
Default value: false. |
true |
| EndpointId |
string |
No |
The ID of the outbound endpoint. |
hr**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageSize |
integer |
The number of entries returned per page. |
10 |
| RequestId |
string |
The unique request ID. |
A10E03D7-808C-422D-9144-F8586C2E2297 |
| PageNumber |
integer |
The current page number of the returned data. |
1 |
| TotalPages |
integer |
The total number of pages. |
1 |
| TotalItems |
integer |
The total number of entries. |
1 |
| Rules |
array<object> |
The list of forwarding rules. |
|
|
array<object> |
The forwarding rule information. |
||
| Type |
string |
The type of the forwarding rule. Currently, only forwarding to external IP addresses is supported. Valid values: OUTBOUND: Forward to external IP addresses. |
OUTBOUND |
| UpdateTime |
string |
The update time. Format: yyyy-MM-dd HH:mm:ss. |
2020-07-13 10:51:44 |
| ForwardIps |
array<object> |
The IP addresses and ports of the external DNS system. The IP addresses and ports of the destination servers to which DNS query traffic is forwarded. |
|
|
object |
The IP address and port of the destination server. |
||
| Ip |
string |
The destination IP address for forwarding. |
172.16.XX.XX |
| Port |
integer |
The port number of the destination IP address for forwarding. |
80 |
| EndpointName |
string |
The name of the endpoint. |
Endpoint-test |
| CreateTime |
string |
The creation time. Format: yyyy-MM-dd HH:mm:ss. |
2020-07-13 10:51:44 |
| ZoneName |
string |
The domain name (zone) for which resolution requests need to be forwarded. |
example.com |
| UpdateTimestamp |
integer |
The update timestamp. |
1594608704000 |
| BindVpcs |
array<object> |
The list of associated VPCs. |
|
|
object |
The VPC information. |
||
| VpcName |
string |
The name of the VPC. |
vpc-name-test |
| VpcId |
string |
The ID of the VPC, which is the unique identifier of the VPC. |
vpc-0jl96awrjt75ezglc**** |
| VpcType |
string |
The type of the VPC. Valid values:
|
STANDARD |
| RegionName |
string |
The name of the region to which the VPC belongs. |
China (Ulanqab) |
| RegionId |
string |
The ID of the region to which the VPC belongs. |
cn-wulanchabu |
| VpcUserId |
string |
The UID of the Alibaba Cloud account to which the VPC actually belongs. |
141339776561**** |
| EndpointId |
string |
The ID of the endpoint. |
hr**** |
| Name |
string |
The name of the forwarding rule. |
ForwardingRule-test |
| Id |
string |
The ID of the forwarding rule. |
hr**** |
| CreateTimestamp |
integer |
The creation timestamp. |
1594608704000 |
| BindEdgeDnsClusters |
array<object> |
The list of associated self-managed DNS clusters. |
|
|
object |
|||
| ClusterId |
string |
The ID of the self-managed DNS cluster. |
1344387 |
| ClusterName |
string |
The name of the self-managed DNS cluster. |
Test1 |
| ClusterUserId |
integer |
The user ID of the owner of the self-managed DNS cluster. |
52352345 |
| PriorityForwardConfigs |
array<object> |
The list of priority forwarding configurations. |
|
|
object |
|||
| Protocol |
string |
The protocol used for priority forwarding. |
doh |
| EnableStatus |
string |
The enabling status of the priority forwarding configuration. |
enable |
| Priority |
integer |
The priority of the priority forwarding configuration. |
0 |
| AlidnsServiceAddresses |
array |
The list of DoH service addresses provided by Alibaba Cloud DNS. |
|
|
string |
The DoH service address provided by Alibaba Cloud DNS. |
https://5***4-2h*****ynx3tls.alidns.com/dns-query |
|
| CustomAddresses |
array |
The list of custom DoH service addresses. |
|
|
string |
The custom DoH service address. |
https://dns.alidns.com/dns-query |
Examples
Success response
JSON format
{
"PageSize": 10,
"RequestId": "A10E03D7-808C-422D-9144-F8586C2E2297",
"PageNumber": 1,
"TotalPages": 1,
"TotalItems": 1,
"Rules": [
{
"Type": "OUTBOUND",
"UpdateTime": "2020-07-13 10:51:44",
"ForwardIps": [
{
"Ip": "172.16.XX.XX",
"Port": 80
}
],
"EndpointName": "Endpoint-test",
"CreateTime": "2020-07-13 10:51:44",
"ZoneName": "example.com",
"UpdateTimestamp": 1594608704000,
"BindVpcs": [
{
"VpcName": "vpc-name-test",
"VpcId": "vpc-0jl96awrjt75ezglc****",
"VpcType": "STANDARD",
"RegionName": "China (Ulanqab)",
"RegionId": "cn-wulanchabu",
"VpcUserId": "141339776561****"
}
],
"EndpointId": "hr****",
"Name": "ForwardingRule-test",
"Id": "hr****",
"CreateTimestamp": 1594608704000,
"BindEdgeDnsClusters": [
{
"ClusterId": "1344387",
"ClusterName": "测试1",
"ClusterUserId": 52352345
}
],
"PriorityForwardConfigs": [
{
"Protocol": "doh",
"EnableStatus": "enable",
"Priority": 0,
"AlidnsServiceAddresses": [
"https://5***4-2h*****ynx3tls.alidns.com/dns-query"
],
"CustomAddresses": [
"https://dns.alidns.com/dns-query"
]
}
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.