DescribeResolverRules

Updated at:

Queries a list of forwarding rules.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

pvtz:DescribeResolverRules

list

*Rule

acs:pvtz::{#accountId}: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:

  • zh: Chinese.

  • en: English.

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:

  • true: Yes.

  • false: No.

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: Standard VPC.

  • EDS: EDS workspace VPC.

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.