ListRecursionZones

Updated at:

Queries the built-in authoritative zones of HTTPDNS.

Operation description

  • Specify at least one of the ResourceId.N or Tag.N (Tag.N.Key and Tag.N.Value) parameters in the request to determine the objects to retrieve.

  • Tag.N is a tag of a resource and consists of a key-value pair. If you specify only Tag.N.Key, all tag values associated with the tag key are returned. If you specify only Tag.N.Value, an error is reported.

  • If you specify both Tag.N and ResourceId.N to filter tags, the ResourceId.N parameter must meet all the specified tag key-value pairs.

  • If you specify multiple tag key-value pairs, the returned resources contain all the specified key-value pairs.

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

pubdns:ListRecursionZones

list

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

ZoneName

string

No

The name of the domain name zone.

example.com

Remark

string

No

The remark.

test

PageNumber

integer

Yes

The page number. Pages start from page 1. Default value: 1.

1

PageSize

integer

Yes

The number of entries per page in the paging settings for a paged query. Maximum value: 100. Default value: 20.

10

MaxResults

integer

No

The maximum number of entries to return for the current request.

100

NextToken

string

No

The token used to start the next query.

4698691

Response elements

Element

Type

Description

Example

object

RequestId

string

The unique request ID.

536E9CAD-DB30-4647-AC87-AA5CC38C5382

PageNumber

integer

The page number. Pages start from page 1. Default value: 1.

1

PageSize

integer

The number of entries per page.

5

TotalPages

integer

The total number of pages.

1

TotalItems

integer

The total number of addresses in the retrieved address list.

1

Zones

object

Zone

array<object>

The list of zones supported in the current region.

array<object>

The list of zones supported in the current region.

ZoneId

string

The zone ID, which is the unique identifier of the zone.

173671468000011

CreateTime

string

The creation time. The time is displayed in UTC in the YYYY-MM-DDTHH:mmZ format.

2021-03-08T05:45Z

CreateTimestamp

integer

The creation time, which is a timestamp.

1729674680000

UpdateTime

string

The update time. The time is displayed in UTC in the YYYY-MM-DDTHH:mmZ format.

2024-11-12T04:30Z

UpdateTimestamp

integer

The update time, which is a timestamp.

1707189878000

ZoneName

string

The name of the zone.

example.com

Remark

string

The remark.

107

RecordCount

integer

The number of DNS records in the zone.

8

ProxyPattern

string

Specifies whether to enable recursive proxy for subdomains. Valid values:

  • zone: Disabled. When a query is made for a non-existent subdomain under the domain name, NXDOMAIN is directly returned, indicating that the subdomain does not exist.

  • record: Enabled. When a query is made for a non-existent subdomain under the domain name, the system sequentially queries the forwarding and recursion modules, and responds to the DNS query with the final resolution result.

record

Creator

string

The creator.

218497924149333932

CreatorType

string

The creator type. Valid values:

  • user: User

  • system: System

USER

CreatorSubType

string

The account type. Valid values:

  • custom: Alibaba Cloud account

  • sub: RAM user

  • sts: role assumption

  • other: Other

SUB

EffectiveScopes

object

EffectiveScope

array<object>

The resolution scope.

array<object>

EffectiveType

string

The type of the effective scope. Valid values:

  • account: Account

account

Scopes

object

Scope

array

The list of resolution scope values.

string

The effective scope, which corresponds to the effective scope type. For the account type, it corresponds to the account ID list for the recursive resolution of the user.

20003

MaxResults

integer

The maximum number of entries to return for the current request.

100

NextToken

string

The token used to start the next query.

4698691

Examples

Success response

JSON format

{
  "RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
  "PageNumber": 1,
  "PageSize": 5,
  "TotalPages": 1,
  "TotalItems": 1,
  "Zones": {
    "Zone": [
      {
        "ZoneId": "173671468000011",
        "CreateTime": "2021-03-08T05:45Z",
        "CreateTimestamp": 1729674680000,
        "UpdateTime": "2024-11-12T04:30Z",
        "UpdateTimestamp": 1707189878000,
        "ZoneName": "dfsdfsd",
        "Remark": "107",
        "RecordCount": 8,
        "ProxyPattern": "record",
        "Creator": "218497924149333932",
        "CreatorType": "USER",
        "CreatorSubType": "SUB",
        "EffectiveScopes": {
          "EffectiveScope": [
            {
              "EffectiveType": "account",
              "Scopes": {
                "Scope": [
                  "20003"
                ]
              }
            }
          ]
        }
      }
    ]
  },
  "MaxResults": 100,
  "NextToken": "4698691"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.