All Products
Search
Document Center

Alibaba Cloud DNS:DescribeDnsProductInstances

Last Updated:Oct 24, 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

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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:DescribeDnsProductInstancesget
  • Instance
    acs:alidns:*:{#accountId}:instance/*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
LangstringNo

The language of the response. Valid values:

  • zh: Chinese
  • en: English

Default value: en

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 method that is used to sort returned entries. Valid values:

  • createDate: sorts returned entries by creation time. If this parameter is left empty, returned entries are sorted by creation time by default.
  • expireDate: sorts returned entries by expiration time.
createDate
DirectionstringNo

The order in which you want to sort returned entries. Valid values:

  • DESC: Returned entries are sorted in descending order. If this parameter is left empty, returned entries are sorted in descending order by default.
  • ASC: Returned entries are sorted in ascending order.
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 request ID.

536E9CAD-DB30-4647-AC87-AA5CC38C5382
PageNumberlong

The page number of the returned page.

1
DnsProductsarray<object>

The paid Alibaba Cloud DNS instances.

DnsProductobject
OverseaLinestring

The type of the overseas line.

Countries
PaymentTypestring

The billing method.

Subscription
MonitorNodeCountlong

The number of monitored nodes.

5
InBlackHoleboolean

Indicates whether the Domain Name System (DNS) servers stopped responding to all requests. Valid values:

  • true: The DNS servers stopped responding to all requests.
  • false: The DNS servers did not stop responding to all requests.
false
BindDomainUsedCountlong

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

3
ISPRegionLinesstring

The regional ISP resolution lines. Valid values:

  • China Telecom (province)
  • China Mobile (province)
  • China Unicom (province)
  • China Education and Research Network (CERNET) (province)
Telecom (Province), Mobile (Province), Unicom (Province), Education Network (Province)
TTLMinValuelong

The minimum TTL. Unit: seconds.

10
ISPLinesstring

The ISP resolution lines.

  • China Telecom
  • China Mobile
  • China Unicom
  • CERNET
  • China Broadcasting Network (CBN)
  • Dr Peng Telecom & Media Group
China Mobile,China Unicom,China Telecom,China Edu
SearchEngineLinesstring

The search engine resolution lines. Valid values:

  • Google
  • Baidu
  • Bing
  • Youdao
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 the DNS request lines are regional lines.

  • true: The DNS request lines are regional lines.
  • false: The DNS request lines are not regional lines.
true
Gslbboolean

Indicates whether global server load balancing (GSLB) is supported.

  • true: GSLB is supported.
  • false: GSLB is not supported.
true
DnsSecuritystring

The level of DNS protection. Valid values:

  • no: No DNS protection is provided.
  • basic: Basic DNS protection is provided.
  • advanced: Advanced DNS protection is provided.
no
DnsSLBCountlong

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

15
AutoRenewalboolean

Indicates whether auto-renewal was enabled. Valid values:

  • true: Auto-renewal was enabled.
  • false: Auto-renewal was not enabled.
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 changedView Change Details
2023-05-11The request parameters of the API has changedView Change Details