Adds a DNS record for a private zone.


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 AddZoneRecord

The operation that you want to perform. Set the value to AddZoneRecord.

Rr String Yes www

The name of the domain or subdomain.

For example, you must specify @ for this parameter if you want to resolve

Type String Yes A

The record type. You can add A, CNAME, TXT, MX, and PTR records to your private zone.

Value String Yes

The value of the DNS record.

ZoneId String Yes CAgICA1OA_58

The ID of the zone.

Lang String No en

The language.

Priority Integer No 5

The priority of the MX record. Valid values: 1 to 10.

Ttl Integer No 60

The time to live (TTL) of the record. Default value: 60.

UserClientIp String No 2.2.XX.XX

The IP address of the client.

Response parameters

Parameter Type Example Description
RecordId Long 5808

The ID of the DNS record.

RequestId String 0B7AD377-7E86-44A8-B9A8-53E8666E72FE

The ID of the request.

Success Boolean true

Indicates whether the call is successful.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

For a list of error codes, visit the API Error Center.