UpdateCnameFlattening - 修改站点CNAME拉平配置

修改站点CNAME拉平配置。

调试

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

授权信息

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

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用前面加 * 表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
esa:UpdateCnameFlatteningupdate
*Site
acs:esa:{#regionId}:{#accountId}:site/{#SiteId}

请求参数

名称类型必填描述示例值
SiteIdlong

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

123456****
FlattenModestring

拉平模式。取值范围:

  • flatten_all:拉平所有。
  • flatten_at_root: 仅拉平根域。默认拉平根域。
flatten_all

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

请求 ID。

CB1A380B-09F0-41BB-280B-72F8FD6DA2FE

示例

正常返回示例

JSON格式

{
  "RequestId": "CB1A380B-09F0-41BB-280B-72F8FD6DA2FE"
}

错误码

HTTP status code错误码错误信息描述
400ApplyVipErrorFailed to apply for ip resources, please contact customer service.申请IP资源失败,请联系客服。
400SiteConfigLengthExceedLimitThe overall configuration size of the site exceeds the limit, and the total size of all functional configurations of the site cannot exceed 512K.站点功能配置大小超出限制,总大小不能超过512K。
400ConfigConflictsConfiguration conflicts, usually when multiple configurations are configured under the same function of the same site, such as duplicate rule names between multiple configurations.参数唯一性校验失败,请检查重复的参数值。
400ArgQuotaCheckFailedThe passed-in parameter value failed to verify the validity of the plan. Please check the plan document to obtain the range of parameters that can be configured for the site plan.当前套餐不支持配置受限参数,请检查输入的参数。
400ServiceInvokeFailedThe call to the internal service failed. The engineer is resolving the problem. Please wait a moment before trying, or contact customer service for details.调用服务失败,请稍后重试或联系客服咨询详情。
400FunctionConflictThe feature configuration conflicts. Sites with version management enabled cannot configure this feature.当前配置的功能与其它功能存在冲突,如需要配置请先删除冲突的功能配置。
400SpecifiedVersionReadOnlyThe specified version number is read-only and cannot be modified.指定的版本号为只读版本, 无法修改版本配置。
400VersionNotValidThe site does not have version management enabled, or the version number passed in does not exist.站点没有开启版本管理功能,或者传入的版本号不存在。
400InternalExceptionFailed to call the service. Try again later or contact technical support.调用服务失败,请稍后重试或联系客服咨询详情。
400InvalidParameter.ArgNameInvalid ArgName. Check your website configuration parameters and make sure that they match the supported features and parameter names listed in the official documentation.传入的ArgName无效,请检查您提供的站点配置参数,确保它们与官方文档中列出的支持功能及参数名称相匹配。
400InvalidParameter.ArgValueInvalid parameter value. Check whether the value format and length meet the requirements.参数值无效,请检查输入是否符合规定格式及长度限制。
400InvalidParameter.ConfigsInvalid parameter configurations. Check whether your feature configurations are in the valid format and comply with relevant requirements.配置参数错误,请检查站点功能设置项是否遵循规定格式及要求。
400InstanceNotExistThe instance does not exist. Check whether the specified instance ID is correct or whether the instance belongs to your account.实例不存在,请检查提供的实例ID是否正确或该实例是否属于您的账户。
400LockFailedThe system is handling requests you previously submitted. Try again later.您有其他请求正在处理中,请稍后再进行重试。
400IllegalOperation.VersionManagementThe version management operation failed because incompatible features or environment settings are configured. Adjust your configurations and try again.当前进行版本管理操作时,存在与其互斥的功能或环境设置,请先调整相关配置后再尝试。
400QuotaCheckFailed.VersionManagementInsufficient quota for version management. Contact technical support.当前套餐的版本管理配额不足,请联系客服咨询详情。
400InvalidConfigIdThe input configuration ID: ConfigId it does not exist, query the existing configuration and its valid ConfigId through the ListSiteFunction.传入的ConfigId不存在。
400Instance.NotOnlineYour plan is unavailable due to an overdue payment. Complete the payment first.您的套餐实例因欠费当前处于非上线状态,请先完成续费操作以继续使用。
404SiteNotFoundThe website does not exist or does not belong to you.站点不存在,或者不属于你。

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