CreateHttpResponseHeaderModificationRule_边缘安全加速_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

流控信息

当前云产品API请求速率暂未透出。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
esa:CreateHttpResponseHeaderModificationRule
Create
Site
acs:esa:{#regionId}:{#accountId}:site/{#SiteId}

请求参数

字段名称字段详情
SiteIdinteger<int64>

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

注意 该字段类型为 Long,在序列化/反序列化的过程中可能导致精度丢失,请注意数值不得大于 9007199254740991。
示例值:123456******参考取值来源:
    ListSites
    CreateSite
SiteVersioninteger<int32>

站点配置的版本号。开启了配置版本管理的站点,可以通过该参数指定配置生效的站点版本,默认为版本 0。

示例值:0
RuleNamestring

规则名称。添加全局配置的时候不需要设置该参数。

示例值:rule_example参考取值来源:
    GetCacheRule
    ListCacheRules
    CreateWaitingRoomRule
RuleEnablestring

规则开关。添加全局配置的时候不需要设置该参数。取值范围:展开详情

示例值:on枚举值:onoff参考取值来源:
    GetCacheRule
    ListCacheRules
    CreateWaitingRoomRule
Rulestring

规则内容,使用条件表达式来匹配用户请求。添加全局配置的时候不需要设置该参数。存在两种使用场景:展开详情

示例值:(http.host eq "video.example.com")参考取值来源:
    GetWafRule
    ListWafRules
    CreateWafRule
ResponseHeaderModificationarray<object>

修改响应头,支持添加、删除、修改三种操作方式。

Sequenceinteger<int32>

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:15C66C7B-671A-4297-9187-2C4477247A74
ConfigIdinteger<int64>

配置 ID。

注意 请注意,该值为 Long 类型,在某些语言中可能存在精度丢失的风险,请小心使用。
示例值:35281609698****

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
MissingParameter
The specified ArgName is required for this function.诊断
400
ApplyVipError
Failed to apply for ip resources, please contact customer service.诊断
400
CanNotSetSequence
Non-regular configuration, you cannot set Sequence parameters.诊断
400
CacheReserveSiteExceedLimit
The number of binding sites of the cache reserve instance exceeds the limit. The number of binding sites of a single cache reserve instance is limited. Please see the document for the limit.诊断
400
CompileRuleError
Rule compilation failed, please check the rule information passed in to ensure that the rule is written according to the syntax described in the document.诊断
400
SiteConfigLengthExceedLimit
The overall configuration size of the site exceeds the limit, and the total size of all functional configurations of the site cannot exceed 512K.诊断
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
FunctionConflict
The feature configuration conflicts. Sites with version management enabled cannot configure this feature.诊断
400
RuleRegexQuotaCheckFailed
When configuring rules, rules with regular expressions are not allowed in this plan. Please check the relevant documentation of the plan or upgrade the plan.诊断
400
NestedRuleQuotaCheckFailed
The nesting level of rules allowed by the plan failed to be verified. Please modify the nesting level of rules or upgrade the plan.诊断
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
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
ConfExceedLimit
The number of function configurations exceeds the limit. Please check the interface document to see the number of configurations that can be supported by a single function.诊断
400
ServiceInvokeFailed
The call to the internal service failed. The engineer is resolving the problem. Please wait a moment before trying, or contact customer service for details.诊断
400
SpecifiedVersionReadOnly
The specified version number is read-only and cannot be modified.诊断
400
VersionNotValid
The site does not have version management enabled, or the version number passed in does not exist.诊断
400
InternalException
Failed to call the service. Try again later or contact technical support.诊断
400
InvalidParameter.ArgName
Invalid ArgName. Check your website configuration parameters and make sure that they match the supported features and parameter names listed in the official documentation.诊断
400
InvalidParameter.ArgValue
Invalid parameter value. Check whether the value format and length meet the requirements.诊断
400
InvalidParameter.Configs
Invalid parameter configurations. Check whether your feature configurations are in the valid format and comply with relevant requirements.诊断
400
InvalidParameter.FunctionName
The specified feature does not exist. Specify a valid feature name based on the related documentation.诊断
400
InstanceNotExist
The instance does not exist. Check whether the specified instance ID is correct or whether the instance belongs to your account.诊断
400
LockFailed
The system is handling requests you previously submitted. Try again later.诊断
400
Instance.NotOnline
Your plan is unavailable due to an overdue payment. Complete the payment first.诊断
400
IllegalOperation.VersionManagement
The version management operation failed because incompatible features or environment settings are configured. Adjust your configurations and try again.诊断
400
QuotaCheckFailed.VersionManagement
Insufficient quota for version management. Contact technical support.诊断
400
CachceReserveInstanceCheckFalied
If the site uses the back-to-source whitelist node and the cache holding instance is not in the back-to-source whitelist, the cache holding instance cannot be associated with the site. If you want to use both functions at the same time, please contact customer service for details.诊断
404
SiteNotFound
The website does not exist or does not belong to you.诊断

变更历史

变更时间变更内容概要操作
2025-03-27
新增请求参数Sequence
2025-01-14
新增OpenAPI,创建修改HTTP响应头配置

相关示例