You can call this operation to submit the task for modifying the domain name system (DNS) server for a domain name in batches.

You can call the QueryTaskDetailList operation to query the execution result.

Debugging

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 SaveBatchTaskForModifyingDomainDns

[DO NOT TRANSLATE] Set the value to SaveBatchTaskForModifyingDomainDns.

AliyunDns Boolean Yes false

Specifies whether to change the DNS server to the Alibaba Cloud DNS server.

DomainName.N RepeatList Yes test1.com

The domain name for which you want to modify the DNS server.

DomainNameServer.N RepeatList No ns1.test.com

The list of DNS servers to be modified. This parameter must be specified when AliyunDns is set to false.

Lang String No en

The language of the error message to return. Valid values:

  • zh: Chinese
  • en: English

Default value: en

UserClientIp String No 127.0.0.1

The IP address of the client used by the user to submit the task.

Response parameters

Parameter Type Example Description
RequestId String 6A862A8A-E7AB-4C4E-8946-A74122D9CC4B

The ID of the request.

TaskNo String 35fb2fb7-d4d6-4478-9408-22cb63696b86

The ID of the task.

Examples

Sample requests


http://domain.aliyuncs.com/?Action=SaveBatchTaskForModifyingDomainDns
&AliyunDns=false
&DomainName.1=test1.com
&DomainName.2=test2.com
&DomainNameServer.1=ns1.test.com
&DomainNameServer.2=ns2.test.com
&<Common request parameters>

Sample success responses

XML format

<SaveBatchTaskForModifyingDomainDnsResponse>
  <TaskNo>35fb2fb7-d4d6-4478-9408-22cb63696b86</TaskNo>
  <RequestId>6A862A8A-E7AB-4C4E-8946-A74122D9CC4B</RequestId></SaveBatchTaskForModifyingDomainDnsResponse>

JSON format

{
	"requestId":"689C17B3-6AE0-45FB-8E41-4491A02C9999",
	"taskNo":"fce12087-6c9f-4dcd-92df-d3829b7f19bc"
}

Error codes

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