閱讀56 返回首頁    go 阿裏雲


批量添加域名解析記錄__批量管理接口_API文檔_雲解析-阿裏雲

描述

根據傳入參數批量添加域名和解析記錄。使用HTTP POST請求。

請求參數

名稱 類型 是否必須 描述
Action String 操作接口名,係統規定參數,取值:AddBatchDomainRecords
Records String 要添加的域名和解析, 以JSON字符串的形式提交(不包含回車換行符),最多支持5,000個解析記錄。

返回參數

公共返回參數,詳見公共返回參數

名稱 類型 描述
RequestId String 唯一請求識別碼
TraceId String 批量任務ID

錯誤碼

對於所有接口的通用性錯誤,請參考錯誤代碼表

錯誤代碼 描述 HTTP 狀態碼 語義
IllegalUser The user ID is illegal. 400 未被授權的用戶ID
QuotaExceeded.BatchNumber You Can’t finish this operation because the batch number has been out of MAX count. 400 批量操作的數量超過限製
OperationThreadInUsed You Can’t finish this operation because the thread of operation has been in used. 400 批量操作的線程被其他用戶占用
DataFormatError The data format is error. 400 數據格式不正確

示例

請求示例

https://alidns.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"
        }
    ]
}&<公共請求參數>

返回示例

XML格式

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

JSON示例

{
    "RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
    "TraceId": "10001"
}

最後更新:2016-11-23 17:16:06

  上一篇:go 批量刪除域名__批量管理接口_API文檔_雲解析-阿裏雲
  下一篇:go 批量修改解析記錄__批量管理接口_API文檔_雲解析-阿裏雲