根据站点ID和站点接入类型修改站点的接入方式。
接口说明
在从 NS 接入修改到 CNAME 接入时,存在一些限制:
-
需要保证站点下仅存在开启加速的 A/AAAA、CNAME 记录。
-
需要站点没有开启“DNS 透传模式”、“自定义 NS”功能。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
esa:UpdateSiteAccessType |
none |
*Site
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| SiteId |
integer |
是 |
站点 ID,可通过调用 ListSites 接口获取。 |
1234567890 |
| AccessType |
string |
是 |
修改到的站点接入类型。取值:
|
NS |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID。 |
15C66C7B-671A-4297-9187-2C4477247A74 |
示例
正常返回示例
JSON格式
{
"RequestId": "15C66C7B-671A-4297-9187-2C4477247A74"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | 调用服务失败,请稍后重试或联系客服咨询详情。 |
| 400 | Site.ServiceBusy | This website is being configured. Try again later. | 该站点正在配置中,请稍后再试。 |
| 400 | Site.UpdateAccessTypeUnable | Failed to change the DNS setup for the website. Check whether the website has configurations or DNS records that are incompatible with the target DNS setup option. | 无法更新站点的接入类型,请检查是否有目标接入类型不支持的配置或记录。 |
| 400 | VerifyNameServerFailed | The NS verification failed. Please configure the NS provided by ESA on the domain name management platform and try again. | NS校验失败,请您在域名管理平台配置为ESA提供的NS后,再进行重试。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。