Adds or deletes domain names and DNS records in batches.
Operation description
Use this operation for batch DNS tasks that do not require immediate execution.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alidns:OperateBatchDomain |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The response language. Valid values:
Default value: zh |
en |
| Type |
string |
Yes |
The batch operation type. Valid values:
|
RR_ADD |
| DomainRecordInfo |
array<object> |
Yes |
The data for the batch operation. |
|
|
object |
No |
|||
| Type |
string |
No |
The record type. Examples: A, AAAA, TXT, MX, and CNAME. Note
This parameter is required when |
MX |
| Value |
string |
No |
The record value. Note
This parameter is required when |
fd87da3c4528844d45af39200155a905 |
| Ttl |
integer |
No |
The TTL, in seconds. Default value: 600. |
600 |
| Domain |
string |
Yes |
The domain name. Note
A single request can contain up to 200 entries. Exceeding this limit may cause the request to fail due to the HTTP request header size limit. |
example.com |
| Line |
string |
No |
The resolution line. Default value: default. |
default |
| NewRr |
string |
No |
The new host record. This parameter is used only for modification operations and is for internal use only. |
|
| Rr |
string |
No |
The host record. Note
This parameter is required when |
zhaohui |
| Priority |
integer |
No |
The MX priority. This parameter is required if the record type is MX. Default value: 10. |
5 |
| NewType |
string |
No |
The new record type. This parameter is used only for modification operations and is for internal use only. |
AAAA |
| NewValue |
string |
No |
The new record value. This parameter is used only for modification operations and is for internal use only. |
114.92.XX.XX |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TaskId |
integer |
The task ID. |
34**** |
| RequestId |
string |
The request ID. |
75446CC1-FC9A-4595-8D96-089D73D7A63D |
Examples
Success response
JSON format
{
"TaskId": 0,
"RequestId": "75446CC1-FC9A-4595-8D96-089D73D7A63D"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.