Performs batch operations to add or delete domain names and DNS records.
Operation description
You can use this operation to perform multiple DNS tasks when immediate execution is not required.
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 to submit. You can submit a maximum of 1,000 entries. | |
object | No | |||
Type | string | No | The record type, such as A, AAAA, TXT, MX, and CNAME. Note This parameter is required if the Type parameter is set to RR_ADD or RR_DEL. | MX |
Value | string | No | The record value. Note This parameter is required if the Type parameter is set to RR_ADD or RR_DEL. | fd87da3c4528844d45af39200155a905 |
Ttl | integer | No | The time to live (TTL) in seconds. The default value is 600. | 600 |
Domain | string | Yes | The domain name. Note You can submit up to 1,000 data entries, where N starts from 1. Due to limitations on HTTP request header size, entries that exceed the 1,000 limit are ignored. Do not submit more than 1,000 entries. | example.com |
Line | string | No | The DNS resolution line. The default value is default. | default |
NewRr | string | No | The new host record. This parameter is used only for modification operations and is not available to external users. | |
Rr | string | No | The host record. Note This parameter is required if the Type parameter is set to RR_ADD or RR_DEL. | zhaohui |
Priority | integer | No | The priority of the MX record. This parameter is required if the record type is MX. The default value is 10. | 5 |
NewType | string | No | The new record type. This parameter is used only for modification operations and is not available to external users. | AAAA |
NewValue | string | No | The new record value. This parameter is used only for modification operations and is not available to external users. | 114.92.XX.XX |
Response elements
Element | Type | Description | Example |
object | |||
TaskId | integer | The task ID. | 34**** |
RequestId | string | The unique ID of the request. | 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.