Calls the BindInstanceDomains operation to bind a domain name to a paid Alibaba Cloud DNS instance based on the instance ID.

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 BindInstanceDomains

The operation that you want to perform. Set the value to BindInstanceDomains.

DomainNames String Yes example1.com,example2.com

The list of domain names.

Note Separate multiple domain names with commas (,). A maximum of 100 domain names can be entered.
InstanceId String Yes sdfasdf

The ID of the instance.

Lang String No en

The language type.

Response parameters

Parameter Type Example Description
FailedCount Integer 0

The number of domain names that failed to be bound.

RequestId String 536E9CAD-DB30-4647-AC87-AA5CC38C5382

The ID of the request.

SuccessCount Integer 2

The number of domain names that have been bound.

Examples

Sample requests


http(s)://alidns.aliyuncs.com/?Action=BindInstanceDomains
&DomainNames=example1.com,example2.com
&InstanceId=sdfasdf
&<Common request parameters>

Sample success responses

XML format

<BindInstanceDomainsResponse>
      <RequestId>536E9CAD-DB30-4647-AC87-AA5CC38C5382</RequestId>
      <SuccessCount>2</SuccessCount>
      <FailedCount>0</FailedCount>
</BindInstanceDomainsResponse>

JSON format

{
	"FailedCount":0,
	"SuccessCount":2,
	"RequestId":"536E9CAD-DB30-4647-AC87-AA5CC38C5382"
}

Error codes

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