閱讀294 返回首頁    go 阿裏雲 go 技術社區[雲棲]


更換雲解析產品綁定的域名__雲解析產品管理接口_API文檔_雲解析-阿裏雲

描述

更換雲解析產品綁定的域名。
無論當前雲解析產品是否綁定域名,都調用此接口。 從雲解析產品中解綁域名,也調用此接口,即NewDomain為空。

請求參數

名稱 類型 是否必須 描述
Action String 操作接口名,係統規定參數,取值:ChangeDomainOfDnsProduct
InstanceId String 雲解析產品ID
NewDomain String 目標綁定域名,如不填寫,則為解綁

返回參數

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

名稱 類型 描述
RequestId String 唯一請求識別碼
OriginalDomain String 原始綁定的域名,如果為空,則為第一次綁定

錯誤碼

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

錯誤代碼 描述 HTTP 狀態碼 語義
InvalidDnsProduct The DNS product is not exist. 400 雲解析產品不存在
IncorrectDomainUser The domain name does not belong to this user. 400 域名在本賬戶下不存在
InvalidBinding.SpecialDomain The special domain name is invalid to bind on the DNS product. 400 特殊域名綁定無效
QuotaExceeded.Binding The total count of binding domain has been out of range. 400 綁定次數超過版本規定的限製
InvalidBinding.BoundDomain The new domain has been bound on other DNS product. 400 要更換的目標域名已經使用雲解析付費產品

示例

請求示例

https://alidns.aliyuncs.com/?Action=ChangeDomainOfDnsProduct
&InstanceId=i-7sb
&NewDomain=newdomain.com
&<公共請求參數>

返回示例

XML格式

<ChangeDomainOfDnsProductResponse>
    <RequestId>536E9CAD-DB30-4647-AC87-AA5CC38C5382</RequestId>
    <OriginalDomain>originaldomain.com</OriginalDomain>
</ChangeDomainOfDnsProductResponse>

JSON示例

{
    "RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
    "OriginalDomain": "originaldomain.com"
}

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

  上一篇:go 獲取雲解析收費版本產品列表__雲解析產品管理接口_API文檔_雲解析-阿裏雲
  下一篇:go 添加域名分組__域名分組接口_API文檔_雲解析-阿裏雲