tencent cloud

域名注册

动态与公告
产品公告
产品简介
域名简介
腾讯云域名优势
腾讯云域名后缀
域名注册商信息介绍
产品规则
60天内禁止转移注册商锁定规则
域名转出规则
域名命名规则
购买指南
购买方式
域名注册
域名注册
.ai 域名注册
域名管理
域名续费
开启域名安全保护
手机邮箱验证
修改 DNS 服务器
域名赎回
自定义 DNS Host
信息模板修改
域名信息模板
域名到期提醒管理
域名查询
域名状态相关
批量操作
批量域名续费
批量域名修改 DNS 服务器
批量域名设置禁止更新锁
批量域名设置禁止转移锁
域名转移
域名账号间转移
域名转出腾讯云
域名转入腾讯云
域名 Push
故障处理
域名注册相关
域名转入相关
API 文档
History
Introduction
API Category
Making API Requests
Domain Management APIs
Domain Query APIs
Bulk Operation APIs
Registrant Profile APIs
Other APIs
Data Types
Error Codes
常见问题
域名注册相关
域名转移相关
域名续费相关
域名转入相关
DNS 设置相关
域名账号间转移相关
域名安全相关
域名滥用投诉相关
产品协议
隐私协议
数据处理和安全协议

BatchModifyIntlDomainDNS

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2025-10-30 21:41:05

1. API Description

Domain name for API request: domain.intl.tencentcloudapi.com.

This API is used to bulk modify DNS servers for domains.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: BatchModifyIntlDomainDNS.
Version Yes String Common Params. The value used for this API: 2018-08-08.
Region No String Common Params. This parameter is not required for this API.
Domains.N Yes Array of String The target domains.
Dns.N Yes Array of String The domain DNS array.
BatchAction No String Valid values: batch_modify_domain_dns1, batch_modify_domain_dns2, batch_modify_domain_dns3

3. Output Parameters

Parameter Name Type Description
LogId Integer The log ID.
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Bulk modifying DNS servers for domains

Input Example

POST / HTTP/1.1
Host:domain.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: BatchModifyIntlDomainDNS
<Common request parameters>

{
    "Domains": [
        "h101.tencent.com"
    ],
    "Dns": [
        "f1g1ns2.dnspod.net",
        "f1g1ns2.dnspod.net"
    ]
}

Output Example

{
    "Response": {
        "LogId": 54,
        "RequestId": "ac64c5c2-c0f0-11ea-ba13-080027f4585e"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
FailedOperation Operation failed.
FailedOperation.SetDomainDnsFailed Failed to modify the DNS server. Enter a correct DNS server address.
InternalError Internal error.
InternalError.DomainInternalError Network error. Please try again later.
InternalError.ForbiddenRequest Forbidden request.
InternalError.JsonMarshal Error in converting to JSON.
InternalError.MethodNotMatch Method mismatch.
InternalError.NeedLogin Login is required.
InternalError.ReadBodyError Failed to read the body.
InvalidParameter Invalid parameter.
InvalidParameter.DomainNameIsInvalid The domain is empty or incorrect.
InvalidParameter.UpTo4000 The number of domains cannot exceed 4,000.
InvalidParameterValue.InvalidParameterFormat Invalid parameter value.
MissingParameter Missing parameter.
MissingParameter.ActionNotFound The route is not defined.
MissingParameter.DomainIsEmpty The domain cannot be empty.
MissingParameter.RepDataIsNone The request data cannot be empty.
ResourceNotFound.DomainNotFound The domain address is incorrect. Please enter a correct one.
ResourceUnavailable.DomainIsModifyingDNS Unable to perform this operation because an operation of the same type is in progress for this domain.
UnsupportedOperation.ModifyDomainInfoOperateUnsupported This operation is unavailable under the current domain status.
UnsupportedOperation.ModifyDomainInfoUnsupported Modification is unavailable under the current domain status.
UnsupportedOperation.ModifyDomainUnsupported Modification is unavailable under the current domain status.

Ajuda e Suporte

Esta página foi útil?

comentários