CreateOriginProtection - 开启源站防护

开启源站防护。

调试

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

授权信息

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

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

请求参数

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

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

123456****

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

请求 ID。

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

示例

正常返回示例

JSON格式

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

错误码

HTTP status code错误码错误信息描述
400FunctionQuotaCheckFailedThe 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.当前套餐不支持配置受限功能,请检查套餐相关的功能描述。
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.当前套餐不支持配置受限参数,请检查输入的参数。
400FunctionConflictThe feature configuration conflicts. Sites with version management enabled cannot configure this feature.当前配置的功能与其它功能存在冲突,如需要配置请先删除冲突的功能配置。
400ConfigConflictsConfiguration conflicts, usually when multiple configurations are configured under the same function of the same site, such as duplicate rule names between multiple configurations.参数唯一性校验失败,请检查重复的参数值。
404SiteNotFoundThe website does not exist or does not belong to you.站点不存在,或者不属于你。

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