UpdateSiteCoverage - 修改站点加速区域

更新时间:
复制为 MD 格式

修改单个站点的加速区域。更新站点的加速配置,以适应流量分布变化或提升特定地区用户的访问体验。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

esa:UpdateSiteCoverage

update

*Site

acs:esa:{#regionId}:{#accountId}:site/{#SiteId}

请求参数

名称

类型

必填

描述

示例值

SiteId

integer

站点 ID。可通过调用 ListSites 接口查询获取。

1234567890123

Coverage

string

修改到的目标加速区域。取值:

  • domestic:仅中国内地。

  • global:全球。

  • overseas:全球(不包含中国内地)。

global

返回参数

名称

类型

描述

示例值

object

RequestId

string

请求 ID。

65C66B7B-671A-8297-9187-2R5477247B76

示例

正常返回示例

JSON格式

{
  "RequestId": "65C66B7B-671A-8297-9187-2R5477247B76"
}

错误码

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 InvalidParameter.Coverage The selected location is unavailable in your plan. Change the location to one that is covered by the plan and try again. 您选择的加速区域不在当前套餐支持范围内,请更换为套餐支持的加速区域后重试。
400 SiteHasTransportLayerApplications The current site has an existing four-layer accelerated application, and the current operation is not allowed. If necessary, please contact customer service. 当前站点有已经存在的四层加速应用,不允许进行当前操作,如有需要,请联系客服。
400 IpaNotActive The ipa application is not active. 当前应用正在部署中。
400 InvalidSiteICP The specified website does not have an ICP filing or the filing information is invalid. Make sure your website is filed and try again. 您配置的站点未备案或ICP备案信息不合法,请确保站点已完成备案后重试。
400 NotEnoughResource.CustomPort Resource verification failed because there are not enough IP resources. 资源校验失败,已经没有足够的IP资源。
400 Site.HasStaticIP This operation is not allowed because the site has static IP enabled. 站点开启了固定IP,不允许此操作。
400 Site.HasCN2 The website has enabled CN2, and this operation is not allowed. 站点开启了中国大陆网络接入优化,不允许此操作。
400 Site.HasIpaEnableKeepAliveProtection The site has one or more TCP/UDP proxied applications with keep-alive-protection enabled. Its acceleration region or plan can't be edited. 站点下有四层代理应用开启了连接保持防护,不允许站点切换加速区域或切换套餐。
500 InternalError Failed to call the service. Try again later or contact technical support. 调用服务失败,请稍后重试或联系客服咨询详情。

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情