Changing Domain Names Bound to Alibaba Cloud DNS Products

Last Updated: May 27, 2016

Description

Changes the domain name bound to the Alibaba Cloud DNS product.
This interface can be called whether or not the current Alibaba Cloud DNS product is bound to a domain name. This interface can also be called to unbind a domain name, simply by leaving the NewDomain field blank.

Request Parameters

Name Type Required? Description
Action String Yes Operation interface name, required parameter. Value: ChangeDomainOfDnsProduct
InstanceId String Yes The Alibaba Cloud DNS product ID
NewDomain String No The domain name to bind. If blank, the product is unbound

Return Parameters

Public return parameters. For details, see Public Return Parameters

Name Type Description
RequestId String The unique request identifier
OriginalDomain String The original bound domain name. If blank, this indicates the product was bound for the first time

Error Codes

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

Error Code Description HTTP Status Code Meaning
InvalidDnsProduct The DNS product is not exist. 400 The Alibaba Cloud DNS product does not exist
IncorrectDomainUser The domain name does not belong to this user. 400 The domain name does not exist under this account
InvalidBinding.SpecialDomain The special domain name is invalid to bind on the DNS product. 400 Special domain names cannot be bound
QuotaExceeded.Binding The total count of binding domain has been out of range. 400 The number of binding operation exceeds the limit for this version
InvalidBinding.BoundDomain The new domain has been bound on other DNS product. 400 The domain name to change to is already bound to a paid cloud DNS product

Example

Request Example

http://dns.aliyuncs.com/?Action=ChangeDomainOfDnsProduct
&InstanceId=i-7sb
&NewDomain=newdomain.com
&<Public Request Parameters>

Return Example

XML Format

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

JSON Example

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