Description
The SaveBatchTaskForModifyingDomainDns API submits bulk DNS modification tasks. You can use the QueryTaskDetailList API to query the task execution result.
Request parameters
For more information about public request parameters, see Public parameters.
Parameter |
Type |
Required |
Description |
Action |
String |
Yes |
API of the action, system required parameter. Set this parameter to SaveBatchTaskForModifyingDomainDns. |
DomainName |
DomainListType |
Yes |
Domain name list. |
AliyunDns |
Boolean |
Yes |
Whether to change the domain name to Alibaba Cloud DNS. |
DomainNameServer |
DnsListType |
No |
DNS list (required if AliyunDns is set to false). |
Lang |
String |
No |
Language of the error message returned from the API. The enumerated values include zh (Chinese) and en (English). The default value is en. |
Response parameters
Parameter |
Type |
Description |
RequestId |
String |
Unique request identifier. |
TaskNo |
String |
Task ID. |
Error codes
Error code |
Description |
HTTP status code |
Semantics |
ParameterIllegal |
Parameter illegal. |
400 |
Parameter error. |
NetworkIOError |
Network IO Error. |
400 |
Network I/O exception. |
Examples
Request example
http://domain-intl.aliyuncs.com/?Action=SaveBatchTaskForModifyingDomainDns
&AliyunDns=false
&DomainName.1=test1.com
&DomainName.2=test2.com
&DomainNameServer.1=ns1.test.com
&DomainNameServer.2=ns2.test.com
&<Public request parameters>
Response example
<?xml version='1.0' encoding='UTF-8'?>
<SaveBatchTaskForModifyingDomainDnsResponse>
<TaskNo>35fb2fb7-d4d6-4478-9408-22cb63696b86</TaskNo>
<RequestId>6A862A8A-E7AB-4C4E-8946-A74122D9CC4B</RequestId></SaveBatchTaskForModifyingDomainDnsResponse>
{
"requestId": "689C17B3-6AE0-45FB-8E41-4491A02C9999",
"taskNo": "fce12087-6c9f-4dcd-92df-d3829b7f19bc"
}