閱讀274 返回首頁    go 小米MIX


修改解析記錄__解析管理接口_API文檔_雲解析-阿裏雲

描述

根據傳入參數修改解析記錄。

請求參數

名稱 類型 是否必須 描述
Action String 操作接口名,係統規定參數,取值:UpdateDomainRecord
RecordId String 解析記錄的ID,此參數在添加解析時會返回,在獲取域名解析列表時會返回
RR String 主機記錄,如果要解析@.exmaple.com,主機記錄要填寫"@”,而不是空
Type String 解析記錄類型,參見解析記錄類型格式
Value String 記錄值
TTL Long 生存時間,默認為600秒(10分鍾),參見TTL定義說明
Priority Long MX記錄的優先級,取值範圍[1,10],記錄類型為MX記錄時,此參數必須
Line String 解析線路,默認為default。參見解析線路枚舉

返回參數

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

名稱 類型 描述
RequestId String 唯一請求識別碼
RecordId String 解析記錄的ID

錯誤碼

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

錯誤代碼 描述 HTTP 狀態碼 語義
DomainRecordNotBelongToUser The domain record does not belong to this user. 400 解析記錄在本賬戶下不存在
DomainRecordDuplicate The domain record is duplicated. 400 解析記錄已存在
DomainRecordConflict The domain record is conflict with other records. 400 解析記錄衝突
DomainForbidden The action could not be completed because the domain has been forbidden. 400 禁止解析操作的域名
DomainRecordLocked The domain record has been locked. 400 解析記錄被鎖定
UnKnownError There is an unknown error in system. 400 未知錯誤
QuotaExceeded.Record You Can’t add this domain record because the {“Type RR Line”} record has been out of MAX count (90). 400 超出解析記錄類型最大值90
QuotaExceeded.ARecord You Can’t add this domain record because the {“Type RR Line”} record has been out of MAX count. 400 超出A(AAAA)記錄類型最大值
RecordForbidden.BlackHole The action could not be completed because there are some reords have been into black hole. 400 域名解析防護進入黑洞
URLForwardError.PanRecord The Pan-record is not supported in url forward record. 400 URL轉發不支持泛解析記錄
URLForwardError.NotDefaultLine The url forward record only support default line. 400 URL轉發不是默認線路
URLForwardError. ChineseChar The Chinese char is not supported in url forward record. 400 URL轉發目標域名為中文域名
URLForwardError.NotVerifyDomain The domain name must be verified in Hichina in url forward record. 400 URL轉發域名未備案
QuotaExceeded.URLRecord The URL record has been out of MAX count. 400 URL轉發數量超過限製
QuotaExceeded.SubDomain The sub domain levels have been out of MAX count. 400 子域名級別超過限製
QuotaExceeded.TTL The TTL parameter has been out of range. 400 TTL時間超出限製
UnsupportedLine This line is not be supported in this DNS version. 400 當前版本不支持的解析線路
RecordForbidden.DNSChange The action could not be completed because DNS is changing. 400 DNS遷移過程禁止操作

示例

請求示例

https://alidns.aliyuncs.com/?Action=UpdateDomainRecord
&RecordId=9999985
&RR=www
&Type=A
&Value=202.106.0.20
&TTL=600
&Line=default
&<公共請求參數>

返回示例

XML格式

<UpdateDomainRecordResponse>
    <RequestId>536E9CAD-DB30-4647-AC87-AA5CC38C5382</RequestId>
    <RecordId>9999985</RecordId>
 </UpdateDomainRecordResponse>

JSON示例

{
    "RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
    "RecordId": "9999985"
}

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

  上一篇:go 刪除解析記錄__解析管理接口_API文檔_雲解析-阿裏雲
  下一篇:go 設置解析記錄狀態__解析管理接口_API文檔_雲解析-阿裏雲