AddBatchDomainRecords
描述
根据传入参数批量添加域名和解析记录。使用HTTP POST请求。
请求参数
返回参数
公共返回参数,详见
公共返回参数
错误码
对于所有接口的通用性错误,请参考
错误代码表。
示例
请求示例
- [backcolor=transparent]http[backcolor=transparent]:[backcolor=transparent]//alidns.aliyuncs.com/?Action=AddBatchDomainRecords HTTP 1.1
- [backcolor=transparent]Records[backcolor=transparent]={
- [backcolor=transparent] [backcolor=transparent]"RR"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"www"[backcolor=transparent],
- [backcolor=transparent] [backcolor=transparent]"Type"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"A"[backcolor=transparent],
- [backcolor=transparent] [backcolor=transparent]"priority"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"10"[backcolor=transparent],[backcolor=transparent]//注释:非MX记录不需要;
- [backcolor=transparent] [backcolor=transparent]"Value"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"1.1.1.1"[backcolor=transparent],
- [backcolor=transparent] [backcolor=transparent]"Domains"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent][
- [backcolor=transparent] [backcolor=transparent]{
- [backcolor=transparent] [backcolor=transparent]"Index"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"1"[backcolor=transparent],
- [backcolor=transparent] [backcolor=transparent]"Domain"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"abc.com"
- [backcolor=transparent] [backcolor=transparent]},
- [backcolor=transparent] [backcolor=transparent]{
- [backcolor=transparent] [backcolor=transparent]"Index"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"2"[backcolor=transparent],
- [backcolor=transparent] [backcolor=transparent]"Domain"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"example.com"
- [backcolor=transparent] [backcolor=transparent]},
- [backcolor=transparent] [backcolor=transparent]{
- [backcolor=transparent] [backcolor=transparent]"Index"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"10000"[backcolor=transparent],
- [backcolor=transparent] [backcolor=transparent]"Domain"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"news.com"
- [backcolor=transparent] [backcolor=transparent]}
- [backcolor=transparent] [backcolor=transparent]]
- [backcolor=transparent]}&<公共请求参数>
返回示例
XML格式
- [backcolor=transparent]<AddBatchDomainRecordsResponse>
- [backcolor=transparent] [backcolor=transparent]<RequestId>[backcolor=transparent]536E9CAD-DB30-4647-AC87-AA5CC38C5382[backcolor=transparent]</RequestId>
- [backcolor=transparent] [backcolor=transparent]<TraceId>[backcolor=transparent]10001[backcolor=transparent]</TraceId>
- [backcolor=transparent]</AddBatchDomainRecordsResponse>
JSON示例
- [backcolor=transparent]{
- [backcolor=transparent] [backcolor=transparent]"RequestId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"536E9CAD-DB30-4647-AC87-AA5CC38C5382"[backcolor=transparent],
- [backcolor=transparent] [backcolor=transparent]"TraceId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"10001"
- [backcolor=transparent]}