CreateOriginProtection - 开启源站防护

更新时间:
复制为 MD 格式

开启源站防护。

调试

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

调试

授权信息

当前API暂无授权信息透出。

请求参数

名称

类型

必填

描述

示例值

SiteId

integer

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

123456****

AutoConfirmIPList

string

off

返回参数

名称

类型

描述

示例值

object

Schema of Response

RequestId

string

请求 ID。

CB1A380B-09F0-41BB-A198-72F8FD6DA2FE

示例

正常返回示例

JSON格式

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

错误码

HTTP status code

错误码

错误信息

描述

400 FunctionQuotaCheckFailed The quota verification for this function fails. It may be that the configuration of this function exceeds the limit of the site plan. Please check the plan introduction document corresponding to this site. 当前套餐不支持配置受限功能,请检查套餐相关的功能描述。
400 ArgQuotaCheckFailed The 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. 当前套餐不支持配置受限参数,请检查输入的参数。
400 FunctionConflict The feature configuration conflicts. Sites with version management enabled cannot configure this feature. 当前配置的功能与其它功能存在冲突,如需要配置请先删除冲突的功能配置。
400 ConfigConflicts Configuration conflicts, usually when multiple configurations are configured under the same function of the same site, such as duplicate rule names between multiple configurations. 参数唯一性校验失败,请检查重复的参数值。
400 FunctionArgError Failed to check the configured function parameters. 配置的功能参数检查失败
404 SiteNotFound The website does not exist or does not belong to you. 站点不存在,或者不属于你。

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

变更历史

更多信息,参考变更详情