Batch Add Domain Name/Resolution Records

Last Updated: May 27, 2016

Description

Domain names and resolution records are batch added based on input parameters.This operation uses HTTP POST requests.

Request Parameters

Name Type Required? Description
Action String Yes Operation interface name, required parameter. Value: AddBatchDomainRecords
Records String Yes Submits the domain names and resolution records to add in JSON string format (does not contain line breaks). A maximum of 5,000 domain names/resolution records may be submitted at one time.

Return Parameters

Public return parameters. For details, see Public Return Parameters

Name Type Description
RequestId String The unique request identifier
TraceId String The batch task ID

Error Codes

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

Error Code Description HTTP Status Code Meaning
IllegalUser The user ID is illegal. 400 The user ID is not authorized
QuotaExceeded.BatchNumber You Can’t finish this operation because the batch number has been out of MAX count. 400 Batch operation data exceeds the limit
OperationThreadInUsed You Can’t finish this operation because the thread of operation has been in used. 400 The batch operation threads are being used by another user
DataFormatError The data format is error. 400 Incorrect data format

Example

Request Example

http://dns.aliyuncs.com/?Action=AddBatchDomainRecords  HTTP 1.1
Records={
    "RR": "www",
    "Type": "A",
    "Value": "1.1.1.1",
    "Domains": [
        {
            "Index": "1",
            "Domain": "abc.com"
        },
        {
            "Index": "2",
            "Domain": "example.com"
        },
        {
            "Index": "10000",
            "Domain": "news.com"
        }
    ]
}&<Public Request Parameters>

Return Example

XML Format

<AddBatchDomainRecordsResponse>
    <RequestId>536E9CAD-DB30-4647-AC87-AA5CC38C5382</RequestId>
    <TraceId>10001</TraceId>
</AddBatchDomainRecordsResponse>

JSON Example

{
    "RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
    "TraceId": "10001"
}
Thank you! We've received your feedback.