Retrieving Domain Name Attributes Based on Alibaba Cloud DNS Versions

Last Updated: May 27, 2016

Description

Retrieves the DNS attributes (e.g. lines, types, TTL intervals) corresponding to a Alibaba Cloud DNS version based on the input parameters.

Request Parameters

Name Type Required? Description
Action String Yes Operation interface name, required parameter. Value: DescribeDnsProductAttributes
VersionCode String No The Alibaba Cloud DNS product version, "Free version" by default

Return Parameters

Public return parameters. For details, see Public Return Parameters

Name Type Description
RequestId String The unique request identifier
RecordTypes List<Type> The list of DNS record type names. The type is String type
TtlMinValue Long The minimum TTL value
TtlMaxValue Long The maximum TTL value
RecordLines RecordLineType The list of DNS record line names

Error Codes

For errors common to all interfaces, please refer to the Error Code Table .

Error Code Description HTTP Status Code Meaning
InvalidVersion The version of DNS product is not exist. 400 This Alibaba Cloud DNS version does not exist

Example

Request Example

http://dns.aliyuncs.com/?Action=DescribeDnsProductAttributes
&VersionCode=version1
&<Public Request Parameters>

Return Example

XML Format

<DescribeDnsProductAttributesResponse>
    <RequestId>536E9CAD-DB30-4647-AC87-AA5CC38C5382</RequestId>
    <RecordTypes>
        <Type>A</Type>
        <Type>AAAA</Type>
        <Type>CNAME</Type>
        <Type>TXT</Type>
        <Type>MX</Type>
        <Type>SRV</Type>
        <Type>REDIRECT_URL</Type>
        <Type>FORWORD_URL</Type>
        <Type>NS</Type>
    </RecordTypes>
    <TtlMinValue>600</TtlMinValue>
    <TtlMaxValue>86400</TtlMaxValue>
    <RecordLines>
        <RecordLine>
            <LineCode>default</LineCode>
            <LineName>Default</LineName>
        </RecordLine>
        <RecordLine>
            <LineCode>telecom</LineCode>
            <LineName>China Telecom</LineName>
        </RecordLine>
        <RecordLine>
            <LineCode>shanghai-telecom</LineCode>
            <FatherCode>telecom</FatherCode>
            <LineName>Shanghai Telecom</LineName>
        </RecordLine>
        ......
    </RecordLines>
</DescribeDnsProductAttributesResponse>

JSON Example

{
  "DescribeDnsProductAttributesResponse": {
    "RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
    "RecordTypes": {
      "Type": [
        "A",
        "AAAA",
        "CNAME",
        "TXT",
        "MX",
        "SRV",
        "REDIRECT_URL",
        "FORWORD_URL",
        "NS"
      ]
    },
    "TtlMinValue": 600,
    "TtlMaxValue": 86400,
    "RecordLines": {
      "RecordLine": [
        {
          "LineCode": "default",
          "LineName": "Default"
        },
        {
          "LineCode": "telecom",
          "LineName": "China Telecom"
        },
        {
          "LineCode": "shanghai-telecom",
          "FatherCode": "telecom",
          "LineName": "Shanghai Telecom"
        },
        ......
      ]
    }
  }
}
Thank you! We've received your feedback.