UpdateWaitingRoomRule - 修改等候室绕过规则

更新指定站点的等候室绕过规则配置。

接口说明

通过此接口可以修改站点中特定等待室的规则设置,包括规则名称、启用状态及规则内容等。

调试

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

授权信息

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

请求参数

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

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

123456****
WaitingRoomRuleIdlong

要更新的等候室绕过规则 ID,可通过调用 ListWaitingRoomRules 接口获取。

8987739839****
RuleNamestring

规则名称。

test1
RuleEnablestring

规则启用状态,支持:

  • on :表示启用。
  • off:表示禁用。
on
Rulestring

规则内容,具体实施的策略或条件表达式。

(http.request.uri.path.file_name eq \"jpg\")

返回参数

名称类型描述示例值
object

响应成功时返回的信息。

RequestIdstring

请求 ID,用于追踪请求处理进度。

9bfe9d95-7bf6-469d-a628-ed7bc9f25073

示例

正常返回示例

JSON格式

{
  "RequestId": "9bfe9d95-7bf6-469d-a628-ed7bc9f25073"
}

错误码

HTTP status code错误码错误信息描述
400CompileRuleErrorRule compilation failed, please check the rule information passed in to ensure that the rule is written according to the syntax described in the document.规则编译失败,请检查传入的规则配置,请参考接口文档中描述的规则配置格式。
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.参数唯一性校验失败,请检查重复的参数值。
400RuleRegexQuotaCheckFailedWhen configuring rules, rules with regular expressions are not allowed in this plan. Please check the relevant documentation of the plan or upgrade the plan.当前套餐不支持配置带有正则的规则引擎,请查看套餐描述,并升级您的套餐。
400NestedRuleQuotaCheckFailedThe nesting level of rules allowed by the plan failed to be verified. Please modify the nesting level of rules or upgrade the plan.规则内嵌子条件数量超过套餐上限,请查看套餐描述,并升级您的套餐。
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.当前配置的功能与其它功能存在冲突,如需要配置请先删除冲突的功能配置。
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.参数值无效,请检查输入是否符合规定格式及长度限制。
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.您有其他请求正在处理中,请稍后再进行重试。
400WaitingRoomRuleNotExistThe waiting room bypass rule that you want to modify does not exist. Specify a valid one.您要修改的等候室绕过规则不存在,请检查并传入正确的等候室绕过规则。
404SiteNotFoundThe website does not exist or does not belong to you.站点不存在,或者不属于你。

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

变更历史

变更时间变更内容概要操作
2024-09-18OpenAPI 错误码发生变更查看变更详情