Adds a domain name.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
Action | String | Yes | AddDomain | The operation that you want to perform. Set the value to AddDomain. |
DomainName | String | Yes | www.aliyun.com | The domain name that you want to add. |
AccountId | String | No | 123456 | The ID of the Alibaba Cloud account used to access HTTPDNS. |
Response parameters
Parameter | Type | Example | Description |
DomainName | String | www.aliyun.com | The added domain name. |
RequestId | String | ADA27798-6911-4B06-AF34-53F62F624D7B | The ID of the request. |
Examples
Sample requests
http(s)://httpdns-api.aliyuncs.com/?Action=AddDomain
&DomainName=www.aliyun.com
&<Common request parameters>
Sample success responses
XML
format
<AddDomainResponse>
<RequestId>ADA27798-6911-4B06-AF34-53F62F624D7B</RequestId>
<DomainName>www.aliyun.com</DomainName>
</AddDomainResponse>
JSON
format
{
"RequestId": "ADA27798-6911-4B06-AF34-53F62F624D7B",
"DomainName": "www.aliyun.com"
}
Error codes
For a list of error codes, visit the API Error Center.