All Products
Search
Document Center

Alibaba Cloud DNS:DescribeDnsProductInstances

Last Updated:Mar 15, 2024

Calls the DescribeDnsProductInstances operation to query the list of paid Alibaba Cloud DNS instances based on input parameters.

Operation description

Note If the response parameters of an Alibaba Cloud DNS instance do not contain domain names, no domain names are bound to the instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
alidns:DescribeDnsProductInstancesRead
  • Instance
    acs:alidns:*:{#accountId}:instance/*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
LangstringNo

The language of the content within the request and response. Valid values:

  • zh : Chinese
  • en (default) : English
en
UserClientIpstringNo

The IP address of the client.

192.0.2.0
PageNumberlongNo

The number of the page to return. Pages start from page 1. Default value: 1.

1
PageSizelongNo

The number of entries to return on each page. Maximum value: 100. Default value: 20.

20
VersionCodestringNo

The version code of the Alibaba Cloud DNS instance.

version1
DomainTypestringNo

The type of the domain name. Valid values:

  • PUBLIC (default): hosted public domain name
  • CACHE: cached public domain name
PUBLIC
OrderBystringNo

The Sorting parameter. Values:

  • createDate: Sort by creation time (if not specified, the default is to sort by creation time)
  • expireDate: Sort by expiration time
createDate
DirectionstringNo

The Sorting direction. Values:

  • DESC: Descending (if not specified, the default is descending order)
  • ASC: Ascending
DESC

Response parameters

ParameterTypeDescriptionExample
object
TotalCountlong

The total number of domain names.

2
DomainTypestring

The type of the domain name. Valid values:

  • PUBLIC (default): hosted public domain name
  • CACHE: cached public domain name
PUBLIC
PageSizelong

The number of entries returned per page.

2
RequestIdstring

The ID of the request.

536E9CAD-DB30-4647-AC87-AA5CC38C5382
PageNumberlong

The page number of the returned page.

1
DnsProductsobject []

The list of Alibaba Cloud DNS instances obtained by this operation.

OverseaLinestring

The type of the overseas line.

Countries
PaymentTypestring

The billing method. Valid value:

  • Subscription: You can pay in advance for the use of resources.
Subscription
MonitorNodeCountlong

The number of monitored nodes.

5
InBlackHoleboolean

Indicates whether the request for domain name resolution was in the black hole.

false
BindDomainUsedCountlong

The number of domain names that have been bound to the DNS instance.

3
ISPRegionLinesstring

The list of ISP line subdivisions.

Telecom (Province), Mobile (Province), Unicom (Province), Education Network (Province)
TTLMinValuelong

The minimum TTL. Unit: seconds.

10
ISPLinesstring

The list of ISP lines.

China Mobile,China Unicom,China Telecom,China Edu
SearchEngineLinesstring

The list of search engine lines.

Search Engine Robots,Google Robots,Baidu Robots,Bing Robots
EndTimestamplong

The UNIX timestamp representing the expiration time of the instance.

1474335170000
VersionNamestring

The version name of the Alibaba Cloud DNS instance.

Alibaba Cloud DNS
VersionCodestring

The version code of the Alibaba Cloud DNS instance.

version1
MonitorTaskCountlong

The number of monitoring tasks.

2
BindUsedCountlong

The number of times you have changed domain names that are bound to the DNS instance. It can be specified by the user who uses Alibaba Cloud DNS of the custom version.

1
Domainstring

The bound domain name.

example.com
MonitorFrequencylong

The monitoring frequency. Unit: minutes.

50
InCleanboolean

Indicates whether the request for domain name resolution was being cleared.

false
URLForwardCountlong

The URL forwarding quantity.

20
StartTimestamplong

The UNIX timestamp representing when the DNS instance was purchased.

1474335170000
DDosDefendQuerylong

The DDoS protection frequency. Unit: 10,000 QPS.

50
InstanceIdstring

The ID of the Alibaba Cloud DNS instance.

i-8fj
DDosDefendFlowlong

The DDoS protection traffic. Unit: GB.

50
BindCountlong

The number of times you can change domain names that are bound to the DNS instance. It can be specified by the user who uses Alibaba Cloud DNS of the custom version.

3
SubDomainLevellong

The number of subdomain name levels.

6
BindDomainCountlong

The number of domain names that can be bound to the DNS instance.

5
EndTimestring

The time at which the instance expired.

2015-12-12T00:00Z
StartTimestring

The time when the DNS instance was purchased.

2015-11-12T09:23Z
OverseaDDosDefendFlowlong

DDoS protection traffic outside China. Unit: GB.

1
RegionLinesboolean

Indicates whether regional lines were allowed.

true
Gslbboolean

Indicates whether global server load balancing (GSLB) was allowed.

true
DnsSecuritystring

The DNS security policy. Valid values:

  • no: not required.
  • basic: anti-DDoS basic.
  • advanced: anti-DDoS advanced.
no
DnsSLBCountlong

The number of IP addresses supported by a domain name or line.

15
AutoRenewalboolean

Indicates whether auto-renewal is enabled for the extra internal bandwidth that you purchased. Valid values:

  • true: Auto-renewal is enabled.
  • false: Auto-renewal is disabled.
Note If no extra internal bandwidth is purchased, this parameter is not returned.
true

Examples

Sample success responses

JSONformat

{
  "TotalCount": 2,
  "DomainType": "PUBLIC",
  "PageSize": 2,
  "RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
  "PageNumber": 1,
  "DnsProducts": {
    "DnsProduct": [
      {
        "OverseaLine": "Countries",
        "PaymentType": "Subscription",
        "MonitorNodeCount": 5,
        "InBlackHole": false,
        "BindDomainUsedCount": 3,
        "ISPRegionLines": "Telecom (Province), Mobile (Province), Unicom (Province), Education Network (Province)",
        "TTLMinValue": 10,
        "ISPLines": "China Mobile,China Unicom,China Telecom,China Edu",
        "SearchEngineLines": "Search Engine Robots,Google Robots,Baidu Robots,Bing Robots",
        "EndTimestamp": 1474335170000,
        "VersionName": "Alibaba Cloud DNS",
        "VersionCode": "version1",
        "MonitorTaskCount": 2,
        "BindUsedCount": 1,
        "Domain": "example.com",
        "MonitorFrequency": 50,
        "InClean": false,
        "URLForwardCount": 20,
        "StartTimestamp": 1474335170000,
        "DDosDefendQuery": 50,
        "InstanceId": "i-8fj",
        "DDosDefendFlow": 50,
        "BindCount": 3,
        "SubDomainLevel": 6,
        "BindDomainCount": 5,
        "EndTime": "2015-12-12T00:00Z",
        "StartTime": "2015-11-12T09:23Z",
        "OverseaDDosDefendFlow": 1,
        "RegionLines": true,
        "Gslb": true,
        "DnsSecurity": "no",
        "DnsSLBCount": 15,
        "AutoRenewal": true
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-09-20API Description Update. The response structure of the API has changedsee changesets
Change itemChange content
API DescriptionAPI Description Update.
Output ParametersThe response structure of the API has changed.
2023-05-11The request parameters of the API has changedsee changesets
Change itemChange content
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: OrderBy
    Added Input Parameters: Direction