OperateBatchDomain
Performs batch operations to add or delete domain names and DNS records.
Operation description
Scenarios: You have a large number of parse operation nodes to execute, but do not require high efficiency for node 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 language of the response. Valid values:
Default value: zh. |
en |
| Type |
string |
Yes |
The type of the batch operation. Valid values:
|
RR_ADD |
| DomainRecordInfo |
array<object> |
Yes |
The data submitted by the user. A maximum of 200 data entries are supported. |
|
|
object |
No |
|||
| Type |
string |
No |
The type of the DNS record. Examples: A, AAAA, TXT, MX, and CNAME. Note
Required when the batch operation type is RR_ADD or RR_DEL. |
MX |
| Value |
string |
No |
The value of the DNS record. Note
Required when the batch operation type is RR_ADD or RR_DEL. |
fd87da3c4528844d45af39200155a905 |
| Ttl |
integer |
No |
The effective period. Unit: seconds. Default value: 600. |
600 |
| Domain |
string |
Yes |
The domain name. Note
For the data submitted by the user, N starts from 1, and a maximum of 200 data entries are supported. Do not exceed 200 data entries due to HTTP request header limits. |
example.com |
| Line |
string |
No |
The source of the DNS resolution request. Default value: default. |
default |
| NewRr |
string |
No |
The new host record. This parameter is used only for modification operations and is not supported for external users. |
|
| Rr |
string |
No |
The host record. Note
Required when the batch operation type is RR_ADD or RR_DEL. |
zhaohui |
| Priority |
integer |
No |
The priority of the MX record. Required when the record type is MX. Default value: 10. |
5 |
| NewType |
string |
No |
The new record type code. This parameter is used only for modification operations and is not supported for external users. |
AAAA |
| NewValue |
string |
No |
The new record value. This parameter is used only for modification operations and is not supported for external users. |
114.92.XX.XX |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TaskId |
integer |
The task ID. |
34**** |
| RequestId |
string |
The unique 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.