All Products
Search
Document Center

Adding a domain name

Last Updated: Oct 08, 2021

Calls the AddDomain operation to add a domain name based on input parameters.For domain legitimacy determination see: Domain name validity.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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

example.com

The domain name.

AccessKeyId

String

No

your_accessskey_id

The AccessKey ID provided to you by Alibaba Cloud.

GroupId

String

No

2223

The ID of the domain name group. The default value is the GroupId value of the default group.

Lang

String

No

en

The language type.

ResourceGroupId

String

No

rg-resourcegroupid

The ID of the resource group.

Response parameters

Parameter

Type

Example

Description

DnsServers

List

{"DnsServer": ["ns1.alidns.com","ns2.alidns.com"]}

The list of DNS servers of the domain name in the DNS system.

DnsServer

Details about a DNS server of the domain name in the DNS system.

DomainId

String

00efd71a-770e-4255-b54e-6fe5659baffe

The ID of the domain name.

DomainName

String

example.com

The domain name.

GroupId

String

2223

The ID of the domain name group.

GroupName

String

MyGroup

The name of the domain name group.

PunyCode

String

xn--fsq270a.com

The punycode is only returned for Chinese domain names.

RequestId

String

536E9CAD-DB30-4647-AC87-AA5CC38C5382

The ID of the request.

Examples

Sample requests

[Endpoint]/?Action=AddDomain
&DomainName=example.com
& 
 

]]> 
Sample success responses 
XML 
 format 
]]> 
JSON 
 format 
 
536E9CAD-DB30-4647-AC87-AA5CC38C5382 
00efd71a-770e-4255-b54e-6fe5659baffe 
example.com 
2223 
MyGroup 
xn--fsq270a.com 
Error codes 
For a list of error codes, visit the  
API Error Center 
. 
For a list of error codes, visit the  
API Error Center 
. 
dns1.hichina.com 
dns2.hichina.com