API 名称:CreateRules。
API 域名:open.volcengineapi.com 。
API 描述:为监听器添加转发规则。ALB 会按照您设置的转发规则,对不同特征的访问流量进行分发。
节流限制:每秒最多提交 5 个 API 请求。
在使用该部分 API 提交请求时必须包含以下 URI 参数。
除了 URI 参数,该 API 请求还需要包含签名参数。关于更多签名参数的信息,参见公共请求参数。
名称 | 类型 | 是否必选 | 格式 | 说明 |
---|---|---|---|---|
Action | String | 是 | [a-zA-Z]+ | API 名称,如 CreateRules。 |
Version | String | 是 | YYYY-MM-DD | API 版本信息。该参数的取值是 2020-04-01 。 |
X-Expires | Integer | 否 | 900 | 表示签名的有效时间,单位是秒,默认值是900。 |
在使用该 API 提交请求时,请求参数中可以包含的参数如下。
参数 | 类型 | 是否必选 | 参数说明 | 示例值 |
---|---|---|---|---|
ListenerId | String | 是 | 监听器ID。 | lsn-2fea4ayvu2g3k5oxruuz**** |
Rules | Array | 是 | 配置转发规则相关信息。详见 Rules(基础版)和 Rules(标准版)。 | - |
参数 | 类型 | 是否必选 | 参数说明 | 示例值 |
---|---|---|---|---|
Rules.N.Domain | String | 否 | 转发条件中的域名。
基本输入规范:
域名类型:
域名示例:
注意事项:
| Rules.1.Domain=*.com&Rules.2.Domain=www.test.com |
Rules.N.Url | String | 否 | 转发条件中的路径。
仅支持绝对路径。ALB 允许您指定精确路径或使用正则表达式来指定路径。如需使用正则表达式来指定路径,请提交工单进行申请。
注意事项:
| Rules.1.Url=/&Rules.2.Url=/foo |
Rules.N.RuleAction | String | 否 | 转发动作。取值范围:
| Rules.1.RuleAction=''&Rules.2.RuleAction=Redirect |
Rules.N.ServerGroupId | String | 否 | 请求被转发到的后端服务器组的 ID。该参数适用于单个后端服务器组的场景。
注意事项: | Rules.1.ServerGroupId=rsp-bp1o94dp5i6ea****&Rules.2.ServerGroupId=rsp-2fea4bshkqv405oxruuz4**** |
Rules.N.ForwardGroupConfig | Struct | 否 | 后端服务器组配置,具体可参见 ForwardGroupConfig。 | - |
Rules.N.RedirectConfig | Struct | 否 | 重定向配置,具体可参见 RedirectConfig。 | - |
Rules.N.RewriteEnabled | String | 否 | 是否开启“重写”功能。取值范围:
注意事项:
| Rules.1.RewriteEnabled=on |
Rules.N.RewriteConfig | Struct | 否 | “重写”配置,具体可参见 RewriteConfig。 | - |
Rules.N.TrafficLimitEnabled | String | 否 | 是否开启 QPS 限速。开启该功能后,当客户端请求数量超过设置的 QPS,ALB 会拒绝超出限制的请求,并返回 503 状态码给客户端。
| Rules.1.TrafficLimitEnabled=on |
Rules.N.TrafficLimitQPS | Integer | 否 | 限速 QPS (每秒请求数)。取值范围:100~150000。
| Rules.1.TrafficLimitQPS=100 |
Rules.N.Description | String | 否 | 转发规则的描述。默认值为空字符。
描述信息须满足以下要求:
| Rules.1.Description |
ForwardGroupConfig
参数 | 类型 | 是否必选 | 参数说明 | 示例值 |
---|---|---|---|---|
Rules.N.ForwardGroupConfig.ServerGroupTuples.N.ServerGroupId | String | 否 | 请求被转发到的后端服务器组的 ID。
注意事项:
| Rules.1.ForwardGroupConfig.ServerGroupTuples.2.ServerGroupId=rsp-j7vhgiusf98a |
Rules.N.ForwardGroupConfig.ServerGroupTuples.N.Weight | Integer | 否 | 后端服务器组的权重。取值范围:0~100。当服务器组数量为 1,且未指定此参数时,参数值会被置为 100。 当服务器组数量大于 1,且未指定此参数时,参数值会被置为 0。
| Rules.1.ForwardGroupConfig.ServerGroupTuples.2.Weight=50 |
Rules.N.ForwardGroupConfig.StickySessionEnabled | String | 否 | 是否开启组间会话保持。取值范围:
| Rules.1.ForwardGroupConfig.StickySessionEnabled=on |
Rules.N.ForwardGroupConfig.StickySessionTimeout | Integer | 否 | 组间会话保持的超时时间。取值范围:1 ~ 86400。默认值:1000 。单位:秒。 | Rules.1.ForwardGroupConfig.StickySessionTimeout=5000 |
RedirectConfig
参数 | 类型 | 是否必选 | 参数说明 | 示例值 |
---|---|---|---|---|
Rules.N.RedirectConfig.RedirectDomain | String | 否 | 请求被重定向到的域名。
指定的域名须满足以下要求:
如果您不指定域名,重定向到的域名与请求的域名相同。 | Rules.1.RedirectConfig.RedirectDomain=*.com&Rules.2.RedirectConfig.RedirectDomain=www.test.com |
Rules.N.RedirectConfig.RedirectUri | String | 否 | 请求被重定向到的路径。
指定的路径须满足以下要求:
如果您不指定路径,重定向到的路径与请求的路径相同。 | Rules.1.RedirectConfig.RedirectUri=/&Rules.2.RedirectConfig.RedirectUri=/foo |
Rules.N.RedirectConfig.RedirectPort | Integer | 否 | 请求被重定向到的端口。取值范围:1~65535。
如果您不指定端口,重定向到的端口与请求的端口相同。 | Rules.1.RedirectConfig.RedirectPort=80&Rules.2.RedirectConfig.RedirectPort=443 |
Rules.N.RedirectConfig.RedirectHttpCode | Integer | 否 | 状态码,用于表示重定向的响应。
取值范围:
| Rules.1.RedirectConfig.RedirectHttpCode=301&Rules.2.RedirectConfig.RedirectHttpCode=302 |
Rules.N.RedirectConfig.RedirectProtocol | String | 否 | 重定向使用的协议。
取值范围:
| Rules.1.RedirectConfig.RedirectProtocol=HTTP&Rules.2.RedirectConfig.RedirectProtocol=HTTPS |
RewriteConfig
参数 | 类型 | 是否必选 | 参数说明 | 示例值 |
---|---|---|---|---|
Rules.N.RewriteConfig.RewritePath | String | 否 | 重写后的路径。
指定的路径须满足以下要求:
注意事项: | Rules.1.RewriteConfig.RewritePath=/${1}/${2}&Rules.2.RewriteConfig.RewritePath=/foo |
参数 | 类型 | 是否必选 | 参数说明 | 示例值 |
---|---|---|---|---|
Rules.N.Priority | Integer | 否 | 转发规则的优先级。取值范围:1~10000。 | Rules.1.Priority=1 |
Rules.N.RuleConditions | Array | 否 | 转发条件,具体可参见 RuleConditions。
| - |
Rules.N.RuleActions | Array | 否 | 转发动作,具体可参见 RuleActions。 | - |
Rules.N.Description | String | 否 | 转发规则的描述。默认值为空字符串。
描述信息须满足以下要求:
| Rules.N.Description=rule_dept1 |
RuleConditions
参数 | 类型 | 是否必选 | 参数说明 | 示例值 |
---|---|---|---|---|
Rules.N.RuleConditions.N.Type | String | 是 | 转发条件的类型。
转发条件类型的取值范围:
| Rules.1.RuleConditions.1.Type=Host |
Rules.N.RuleConditions.N.HostConfig | Struct | 否 | 域名配置,具体可参见 HostConfig。 | - |
Rules.N.RuleConditions.N.PathConfig | Struct | 否 | 路径配置,具体可参见 PathConfig。 | - |
Rules.N.RuleConditions.N.HeaderConfig | Struct | 否 | HTTP 标头配置,具体可参见 HeaderConfig。 | - |
HostConfig
参数 | 类型 | 是否必选 | 参数说明 | 示例值 |
---|---|---|---|---|
Rules.N.RuleConditions.N.HostConfig.Values.N | Array | 否 | 域名。
基本输入规范:
域名类型:
域名示例:
| Rules.1.RuleConditions.1.HostConfig.Values.1=www.test.com |
PathConfig
参数 | 类型 | 是否必选 | 参数说明 | 示例值 |
---|---|---|---|---|
Rules.N.RuleConditions.N.PathConfig.Values.N | Array | 否 | 路径。
仅支持绝对路径。ALB 允许您指定精确路径或使用正则表达式来指定路径。如需使用正则表达式来指定路径,请提交工单进行申请。
| Rules.1.RuleConditions.1.PathConfig.Values.1=/foo |
HeaderConfig
参数 | 类型 | 是否必选 | 参数说明 | 示例值 |
---|---|---|---|---|
Rules.N.RuleConditions.N.HeaderConfig.Key | String | 否 | HTTP 标头的键。
同一条转发规则内,键不能相同。指定的键需满足以下要求:
| Rules.1.RuleConditions.1.HeaderConfig.Key=test |
Rules.N.RuleConditions.N.HeaderConfig.Values.N | Array | 否 | HTTP 标头的值。
每个键可以对应多个值,这些值之间是“或”的关系。指定的值需满足以下要求:
| Rules.1.RuleConditions.1.HeaderConfig.Values.1=test |
RuleActions
参数 | 类型 | 是否必选 | 参数说明 | 示例值 |
---|---|---|---|---|
Rules.N.RuleActions.N.Type | String | 是 | 转发动作的类型。
取值范围:
注意事项:
| Rules.1.RuleActions.1.Type=ForwardGroup |
Rules.N.RuleActions.N.ForwardGroupConfig | Struct | 否 | “转发至”转发动作的配置,具体可参见ForwardGroupConfig。 | - |
Rules.N.RuleActions.N.RedirectConfig | Struct | 否 | “重定向至”转发动作的配置,具体可参见RedirectConfig。 | - |
Rules.N.RuleActions.N.RewriteConfig | Struct | 否 | “重写”转发动作的配置,具体可参见RewriteConfig。 | - |
Rules.N.RuleActions.N.TrafficLimitConfig | Struct | 否 | “限速”转发动作的配置,具体可参见TrafficLimitConfig。 | - |
ForwardGroupConfig
参数 | 类型 | 是否必选 | 参数说明 | 示例值 |
---|---|---|---|---|
Rules.N.RuleActions.N.ForwardGroupConfig.ServerGroupTuples.N.ServerGroupId | String | 否 | 请求被转发到的后端服务器组的 ID。
| Rules.1.RuleActions.1.ForwardGroupConfig.ServerGroupTuples.1.ServerGroupId=sg-xxx |
Rules.N.RuleActions.N.ForwardGroupConfig.ServerGroupTuples.N.Weight | Integer | 否 | 后端服务器组的权重。取值范围:0~100,
| Rules.1.RuleActions.1.ForwardGroupConfig.ServerGroupTuples.1.Weight=100 |
Rules.N.RuleActions.N.ForwardGroupConfig.ServerGroupStickySession.Enabled | String | 否 | 是否开启组间会话保持。取值范围:
| Rules.1.RuleActions.1.ForwardGroupConfig.ServerGroupStickySession.Enabled=on |
Rules.N.RuleActions.N.ForwardGroupConfig.ServerGroupStickySession.Timeout | Integer | 否 | 组间会话保持的超时时间。取值范围:1 ~ 86400。默认值:1000。单位:秒。
| Rules.1.RuleActions.1.ForwardGroupConfig.ServerGroupStickySession.Timeout=1000 |
RedirectConfig
参数 | 类型 | 是否必选 | 参数说明 | 示例值 |
---|---|---|---|---|
Rules.N.RuleActions.N.RedirectConfig.Host | String | 否 | 请求被重定向到的域名。
指定的域名须满足以下要求:
如果您不指定域名,重定向到的域名与请求的域名相同。 | Rules.1.RuleActions.1.RedirectConfig.Host=www.test.com |
Rules.N.RuleActions.N.RedirectConfig.HttpCode | Integer | 否 | 状态码,用于表示重定向的响应。
取值范围:
| Rules.1.RuleActions.1.RedirectConfig.HttpCode=302 |
Rules.N.RuleActions.N.RedirectConfig.Path | String | 否 | 请求被重定向到的路径。
指定的路径须满足以下要求:
如果您不指定路径,重定向到的路径与请求的路径相同。 | Rules.1.RuleActions.1.RedirectConfig.Path=/test |
Rules.N.RuleActions.N.RedirectConfig.Port | String | 否 | 请求被重定向到的端口。取值范围:1~65535。
如果您不指定端口,重定向到的端口与请求的端口相同。 | Rules.1.RuleActions.1.RedirectConfig.Port=443 |
Rules.N.RuleActions.N.RedirectConfig.Protocol | String | 否 | 重定向使用的协议。
取值范围:
| Rules.1.RuleActions.1.RedirectConfig.Protocol=HTTPS |
RewriteConfig
参数 | 类型 | 是否必选 | 参数说明 | 示例值 |
---|---|---|---|---|
Rules.N.RuleActions.N.RewriteConfig.Path | String | 否 | 重写后的路径。
指定的路径须满足以下要求:
| Rules.1.RuleActions.1.RewriteConfig.Path=/test |
TrafficLimitConfig
参数 | 类型 | 是否必选 | 参数说明 | 示例值 |
---|---|---|---|---|
Rules.N.RuleActions.N.TrafficLimitConfig.QPS | Integer | 否 | 限速 QPS(每秒请求数)。取值范围:100~150000。
注意事项: | Rules.1.RuleActions.1.TrafficLimitConfig.QPS=100 |
参数 | 类型 | 参数说明 | 示例值 |
---|---|---|---|
RequestId | String | 请求 ID。 | 20210811152539010225146063030**** |
RuleIds | Array | 转发规则 ID。 | ["rule-****","rule- ****"] |
GET /?Action=CreateRules&ListenerId=lsn-1g0puwcxuf****ibuxxw2pmf7&Rules.1.Domain=test.com&Rules.1.ServerGroupId=rsp-3ciynvqsspiww****rsz73tzn&Rules.1.Url=/test&Version=2020-04-01 HTTP/1.1 Host: open.volcengineapi.com Region: cn-beijing ServiceName: alb
GET /?Version=2020-04-01&Action=CreateRules&ListenerId=lsn-2jh19vydarjls2jrn9ki5****&Rules.1.RuleConditions.1.Type=Host&Rules.1.RuleConditions.1.HostConfig.Values.1=www.example.com&Rules.1.RuleActions.1.Type=ForwardGroup&Rules.1.RuleActions.1.ForwardGroupConfig.ServerGroupTuples.1.ServerGroupID=rsp-r1s8yili3sow3dvb46l6****&Rules.1.RuleActions.1.ForwardGroupConfigr.ServerGroupTuples.1.Weight=100 HTTP/1.1 Host: open.volcengineapi.com Region: cn-beijing ServiceName: alb
{ "ResponseMetadata": { "RequestId": "202108131613570****5146063000AD724", "Action": "CreateRules", "Version": "2020-04-01", "Service": "alb", "Region": "cn-beijing" }, "Result": { "RequestId": "2021081316135****225146063000AD724", "RuleIds": [ "rule-3ciynwk****b46c6rrt4jszkd" ] } }
如果响应正文包含 Error 字段,则表示 API 请求失败。此处仅展示当前 API 的错误码,更多错误码请参见公共错误码。
HTTP Code | 错误码 | 错误信息 | 错误描述 |
---|---|---|---|
400 | InvalidIndexOrder.Malformed | The specified index order is malformed. | 指定的索引顺序参数格式不合法。 |
400 | OperationDenied.AccountArrears | The request on the specified resource is denied due to the account being in arrears status. | 因账号处于欠费状态,对于该资源的操作请求被拒绝。 |
400 | MissingParameter | The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, 'Rules'. | 该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如: Rules。 |
400 | LimitExceed.Rule | You've reached the limit on the number of rules that you can operate at a time. | 已达到单次可操作的转发规则的数量上限。 |
400 | InvalidRules.TrafficLimitEnabled.Malformed | The specified Rules.TrafficLimitEnabled is malformed. | 指定的 Rules.TrafficLimitEnabled 参数格式不合法。 |
400 | InvalidRules.TrafficLimitQPS.Malformed | The specified Rules.TrafficLimitQPS is malformed. | 指定的 Rules.TrafficLimitQPS 参数格式不合法。 |
400 | MissingParameter | The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, 'Rules.Domain, Rules.Url'. | 该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如: Rules.Domain, Rules.Url。 |
400 | OperationDenied.DefaultRule | The request on the specified rule is denied due to the default rule can not be added. | 因默认转发规则不支持人为添加,对于该转发规则的操作请求被拒绝。 |
400 | InvalidRules.Domain.Malformed | The specified Rules.Domain is malformed. | 指定的 Rules.Domain 参数格式不合法。 |
400 | InvalidRules.Url.Malformed | The specified Rules.Url is malformed. | 指定的 Rules.Url 参数格式不合法。 |
400 | InvalidRules.Url.Duplicated | The specified Rules.Url is duplicated. | 指定的 Rules.Url 重复。 |
400 | InvalidRules.Description.Malformed | The specified Rules.Description is malformed. | 指定的 Rules.Description 参数格式不合法。 |
400 | MissingParameter | The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, 'Rules.ServerGroupId'. | 该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如: Rules.ServerGroupId。 |
400 | InvalidVpcForServerGroup.LoadBalancerMismatch | The specified VPC of ServerGroup and LoadBalancer do not match. | 指定的服务器组和 ALB 实例的 VPC 不匹配。 |
400 | InvalidServerGroup.InvalidStatus | The specified ServerGroup is not in the correct status for the request. | 指定的服务器组所处状态无法响应该请求。 |
400 | OperationDenied.RewriteEnabledInRedirectAction | The request on the specified Rule is denied due to the rewrite config is not allowed to be configured in redirect action. | 因重定向转发动作不支持重写功能,对于该转发规则的操作请求被拒绝。 |
400 | InvalidRules.RedirectConfig.Malformed | The specified Rules.RedirectConfig is malformed. | 指定的 Rules.RedirectConfig 参数格式不合法。重定向协议与监听器协议一致,域名、端口、URI 至少填写一项。 |
400 | InvalidRules.RedirectConfig.RedirectHttpCode.Malformed | The specified Rules.RedirectConfig.RedirectHttpCode is malformed. | 指定的 Rules.RedirectConfig.RedirectHttpCode 参数格式不合法。 |
400 | InvalidRules.RedirectConfig.RedirectProtocol.Malformed | The specified Rules.RedirectConfig.RedirectProtocol is malformed. | 指定的 Rules.RedirectConfig.RedirectProtocol 参数格式不合法。 |
400 | InvalidRules.RedirectConfig.RedirectDomain.Malformed | The specified Rules.RedirectConfig.RedirectDomain is malformed. | 指定的 Rules.RedirectConfig.RedirectDomain 参数格式不合法。 |
400 | InvalidRules.RedirectConfig.RedirectUri.Malformed | The specified Rules.RedirectConfig.RedirectUri is malformed. | 指定的 Rules.RedirectConfig.RedirectUri 参数格式不合法。 |
400 | InvalidRules.RedirectConfig.RedirectPort.Malformed | The specified Rules.RedirectConfig.RedirectPort is malformed. | 指定的 Rules.RedirectConfig.RedirectPort 参数格式不合法。 |
400 | InvalidRules.RuleAction.Malformed | The specified Rules.RuleAction is malformed. | 指定的 Rules.RuleAction 参数格式不合法。 |
400 | InvalidRules.RewriteEnabled.Malformed | The specified Rules.RewriteEnabled is malformed. | 指定的 Rules.RewriteEnabled 参数格式不合法。 |
400 | InvalidRules.RewriteConfig.RewritePath.Malformed | The specified Rules.RewriteConfig.RewritePath is malformed. | 指定的 Rules.RewriteConfig.RewritePath 参数格式不合法。 |
400 | QuotaExceed.RulePerInstance | You've reached the limit on the number of rules per ALB you can create in, resource xxx, usage xx/xx. | 已达到每个实例可创建转发规则的数量上限。资源是xxx,目前已使用xxx,配额为xxx。 |
400 | QuotaExceed.ServerPerInstance | You've reached the limit on the number of backend servers per ALB you can associate with, resource xxx, usage xx/xx. | 已达到每个实例可关联的后端服务器的数量上限。资源是xxx,目前已使用xxx,配额为xxx。 |
400 | QuotaExceed.RulePerGroup | You've reached the limit on the number of rules per server group you can associate with, resource xxx, usage xx/xx. | 已达到每个服务器组可关联转发规则的数量上限。资源是xxx,目前已使用xxx,配额为xxx。 |
400 | InvalidLoadBalancer.InvalidStatus | The related LoadBalancer is not in the correct status for the request. | 关联的 ALB 实例所处状态无法响应该请求。 |
400 | InvalidServerGroup.InvalidStatus | The specified ServerGroup is not in the correct status for the request. | 指定的服务器组所处状态无法响应该请求。 |
400 | OperationDenied.RewriteEnabledInRedirectAction | The request on the specified Rule is denied due to the rewrite config is not allowed to be configured in redirect action. | 因重定向转发动作不支持重写功能,对于该转发规则的操作请求被拒绝。 |
400 | LimitExceed.ServerGroupTuple | You've reached the limit on the number of server group tuples that you can associate with the rule. | 已达到单个转发规则可关联的服务器组的数量上限。 |
400 | InvalidRules.ForwardGroupConfig.ServerGroupTuples.ServerGroupId.Duplicated | The specified Rules.ForwardGroupConfig.ServerGroupTuples.ServerGroupId is duplicated. | 指定的Rules.ForwardGroupConfig.ServerGroupTuples.ServerGroupId重复。 |
400 | InvalidRules.ForwardGroupConfig.Malformed | Either ForwardGroupConfig or ServerGroupID must be specified | 转发规则中 ForwardGroupConfig、ServerGroupID 至少填写一项 |
400 | InvalidRules.ForwardGroupConfig.StickySessionTimeout.Malformed | The specified Rules.ForwardGroupConfig.StickySessionTimeout is malformed. | 指定的 Rules.ForwardGroupConfig.StickySessionTimeout 参数格式不合法。 |
400 | InvalidRules.ForwardGroupConfig.ServerGroupTuples.Weight.Malformed | The specified Rules.ForwardGroupConfig.ServerGroupTuples.Weight is malformed. | 指定的 Rules.ForwardGroupConfig.ServerGroupTuples.Weight 参数格式不合法。 |
400 | InvalidRules.ForwardGroupConfig.StickySessionEnabled.Malformed | The specified Rules.ForwardGroupConfig.StickySessionEnabled is malformed. | 指定的 Rules.ForwardGroupConfig.StickySessionEnabled 参数格式不合法。 |
400 | MissingParameter | The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, 'Rules.ForwardGroupConfig.ServerGroupTuples.ServerGroupId'. | 该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如: Rules.ForwardGroupConfig.ServerGroupTuples.ServerGroupId。 |
400 | MissingParameter | The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, 'Rules.ForwardGroupConfig.ServerGroupTuples'. | 该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如: Rules.ForwardGroupConfig.ServerGroupTuples。 |
403 | Forbidden | You are not authorized to configure server group tuples. | 您无权限使用多服务器组功能。 |
403 | Forbidden | You are not authorized to configure traffic limit for rule. | 您无权限对指定转发规则配置限速值。 |
403 | Forbidden | You are not authorized to create rule with regex url. | 您无权限创建正则表达式 url 的转发规则。 |
403 | Forbidden | You are not authorized to configure rewrite for rule. | 您无权限对指定转发规则配置重写。 |
404 | InvalidListener.NotFound | The specified Listener does not exist. | 指定的监听器不存在。 |
404 | InvalidServerGroup.NotFound | The specified ServerGroup does not exist. | 指定的服务器组不存在。 |
409 | InvalidRules.Conflict | The specified Rule already exists. | 指定的转发规则已存在。 |
400 | InvalidTypeOfRule.LoadBalancerEditionMismatch | The type of Rule and LoadBalancer edition do not match. | 转发规则类型与实例版本不匹配。 |
400 | InvalidRules.Priority.Malformed | The specified Rules.Priority is malformed. | 指定的 Rules.Priority 参数格式不合法。 |
400 | InvalidRules.Priority.Duplicated | The specified Rules.Priority is duplicated. | 指定的 Rules.Priority 重复。 |
400 | InvalidPriorityOrder.Malformed | The specified priority order is malformed. | 指定的优先级顺序参数格式不合法。 |
400 | MissingParameter | The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, 'Rules.RuleConditions'. | 该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如: Rules.RuleConditions。 |
400 | MissingParameter | The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, 'Rules.RuleActions'. | 该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如: Rules.RuleActions。 |
400 | MissingParameter | The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, 'Rules.RuleConditions.HostConfig.Values'. | 该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如: Rules.RuleConditions.HostConfig.Values。 |
400 | MissingParameter | The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, 'Rules.RuleConditions.PathConfig.Values'. | 该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如: Rules.RuleConditions.PathConfig.Values。 |
400 | MissingParameter | The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, 'Rules.RuleConditions.HeaderConfig.Values'. | 该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如: Rules.RuleConditions.HeaderConfig.Values。 |
400 | LimitExceed.Rules.Conditions | You've reached the limit on the number of conditions you can associate with the rule. | 已达到单个转发规则可添加的转发条件数量上限。 |
400 | LimitExceed.Rules.Actions | You've reached the limit on the number of actions you can associate with the rule. | 已达到单个转发规则可添加的转发动作数量上限。 |
400 | LimitExceed.Rules.Wildcard | You've reached the limit on the number of wildcard characters you can use in the rule. | 已达到单个转发规则可使用的通配符数量上限。 |
400 | InvalidRules.RuleConditions.HeaderConfig.Key.Malformed | The specified Rules.RuleConditions.HeaderConfig.Key is malformed. | 指定的 Rules.RuleConditions.HeaderConfig.Key 参数格式不合法。 |
400 | InvalidRules.RuleConditions.HeaderConfig.Values.Malformed | The specified Rules.RuleConditions.HeaderConfig.Values is malformed. | 指定的 Rules.RuleConditions.HeaderConfig.Values 参数格式不合法。 |
400 | InvalidRules.RuleActions.Type.Malformed | The specified Rules.RuleActions.Type is malformed. | 指定的 Rules.RuleActions.Type 参数格式不合法。 |
400 | InvalidRules.RuleConditions.Type.Malformed | The specified Rules.RuleConditions.Type is malformed. | 指定的 Rules.RuleConditions.Type 参数格式不合法。 |
400 | InvalidRules.RuleActions.TrafficLimitConfig.QPS.Malformed | The specified Rules.RuleActions.TrafficLimitConfig.QPS is malformed. | 指定的 Rules.RuleActions.TrafficLimitConfig.QPS 参数格式不合法。 |
400 | InvalidRules.RuleConditions.HostConfig.Values.Malformed | The specified Rules.RuleConditions.HostConfig.Values is malformed. | 指定的 Rules.RuleConditions.HostConfig.Values 参数格式不合法。 |
400 | InvalidRules.RuleConditions.PathConfig.Values.Malformed | The specified Rules.RuleConditions.PathConfig.Values is malformed. | 指定的 Rules.RuleConditions.PathConfig.Values 参数格式不合法。 |
400 | InvalidRules.RuleActions.RedirectConfig.Malformed | The specified Rules.RuleActions.RedirectConfig is malformed. | 指定的 Rules.RuleActions.RedirectConfig 参数格式不合法。重定向协议与监听器协议一致,域名、端口、URI 至少填写一项。 |
400 | InvalidRules.RuleActions.RedirectConfig.Host.Malformed | The specified Rules.RuleActions.RedirectConfig.Host is malformed. | 指定的 Rules.RuleActions.RedirectConfig.Host 参数格式不合法。 |
400 | InvalidRules.RuleActions.RedirectConfig.Path.Malformed | The specified Rules.RuleActions.RedirectConfig.Path is malformed. | 指定的 Rules.RuleActions.RedirectConfig.Path 参数格式不合法。 |
400 | InvalidRules.RuleActions.RedirectConfig.Port.Malformed | The specified Rules.RuleActions.RedirectConfig.Port is malformed. | 指定的 Rules.RuleActions.RedirectConfig.Port 参数格式不合法。 |
400 | InvalidRules.RuleActions.RedirectConfig.HttpCode.Malformed | The specified Rules.RuleActions.RedirectConfig.HttpCode is malformed. | 指定的 Rules.RuleActions.RedirectConfig.HttpCode 参数格式不合法。 |
400 | InvalidRules.RuleActions.RedirectConfig.Protocol.Malformed | The specified Rules.RuleActions.RedirectConfig.Protocol is malformed. | 指定的 Rules.RuleActions.RedirectConfig.Protocol 参数格式不合法。 |
400 | InvalidRules.RuleActions.RewriteConfig.Path.Malformed | The specified Rules.RuleActions.RewriteConfig.Path is malformed. | 指定的 Rules.RuleActions.RewriteConfig.Path 参数格式不合法。 |
400 | InvalidRules.RuleActions.RewriteConfig.Malformed | The specified Rules.RuleActions.RewriteConfig is malformed.Please specify one rewrite config at least. | 指定的 Rules.RuleActions.RewriteConfig 参数格式不合法。请至少指定一项重写配置。 |
400 | InvalidRules.RuleActions.ForwardGroupConfig.ServerGroupStickySession.Timeout.Malformed | The specified Rules.RuleActions.ForwardGroupConfig.ServerGroupStickySession.Timeout is malformed. | 指定的 Rules.RuleActions.ForwardGroupConfig.ServerGroupStickySession.Timeout 参数格式不合法。 |
400 | InvalidRules.RuleActions.ForwardGroupConfig.ServerGroupTuples.Weight.Malformed | The specified Rules.RuleActions.ForwardGroupConfig.ServerGroupTuples.Weight is malformed. | 指定的 Rules.RuleActions.ForwardGroupConfig.ServerGroupTuples.Weight 参数格式不合法。 |
400 | InvalidRules.RuleActions.ForwardGroupConfig.ServerGroupStickySession.Enabled.Malformed | The specified Rules.RuleActions.ForwardGroupConfig.ServerGroupStickySession.Enabled is malformed. | 指定的 Rules.RuleActions.ForwardGroupConfig.ServerGroupStickySession.Enabled 参数格式不合法。 |
400 | MissingParameter | The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, 'Rules.RuleActions.ForwardGroupConfig.ServerGroupTuples.ServerGroupId'. | 该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如: Rules.RuleActions.ForwardGroupConfig.ServerGroupTuples.ServerGroupId。 |
400 | InvalidRules.RuleActions.ForwardGroupConfig.ServerGroupTuples.ServerGroupId.Duplicated | The specified Rules.RuleActions.ForwardGroupConfig.ServerGroupTuples.ServerGroupId is duplicated. | 指定的服务器组 ID 重复。 |
400 | MissingParameter | The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, 'Rules.RuleActions.ForwardGroupConfig.ServerGroupTuples.ServerGroupTuples.ServerGroupId'. | 该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如: Rules.RuleActions.ForwardGroupConfig.ServerGroupTuples。 |
400 | InvalidRules.RuleConditions.HostConfig.Duplicated | The specified Rules.RuleConditions.HostConfig is duplicated. | 指定的Rules.RuleConditions.HostConfig重复。 |
400 | InvalidRules.RuleConditions.PathConfig.Duplicated | The specified Rules.RuleConditions.PathConfig is duplicated. | 指定的Rules.RuleConditions.PathConfig重复。 |
400 | InvalidRules.RuleActions.RewriteConfig.Duplicated | The specified Rules.RuleActions.RewriteConfig is duplicated. | 指定的Rules.RuleActions.RewriteConfig重复。 |
400 | InvalidRules.RuleActions.TrafficLimitConfig.Duplicated | The specified Rules.RuleActions.TrafficLimitConfig is duplicated. | 指定的Rules.RuleActions.TrafficLimitConfig重复。 |
400 | InvalidRules.RuleConditions.HostConfig.Values.Duplicated | The specified Rules.RuleConditions.HostConfig.Values is duplicated. | 指定的Rules.RuleConditions.HostConfig.Values重复。 |
400 | InvalidRules.RuleConditions.PathConfig.Values.Duplicated | The specified Rules.RuleConditions.PathConfig.Values is duplicated. | 指定的Rules.RuleConditions.PathConfig.Values重复。 |
400 | InvalidRules.RuleConditions.HeaderConfig.Key.Duplicated | The specified Rules.RuleConditions.HeaderConfig.Key is duplicated. | 指定的Rules.RuleConditions.HeaderConfig.Key重复。 |
400 | InvalidRules.RuleConditions.HeaderConfig.Values.Duplicated | The specified Rules.RuleConditions.HeaderConfig.Values is duplicated. | 指定的Rules.RuleConditions.HeaderConfig.Values重复。 |
400 | OperationDenied.MissingForwardAction | The request on the specified Rule is denied due to the forward-type action does not exist. | 因转发规则,对于该缺少转发类转发动作的操作请求被拒绝。 |
400 | OperationDenied.TrafficLimitMustUsedWithForward | The request on the specified Rule is denied due to the traffic limit rule action must used with forward rule action. | 因转发规则,对于该限速转发动作必须搭配转发至转发动作的操作请求被拒绝。 |
400 | OperationDenied.MultipleForwardActions | The request on the specified Rule is denied due to multiple forward actions. | 因转发规则,对于该一条转发规则包含多个转发类动作的操作请求被拒绝。 |
400 | InvalidPriority.RuleActionMismatch | The specified priority and action of rule do not match.The traffic-limit-type rule action must have the first priority. | 指定的转发动作和优先级不匹配。限速类转发动作的优先级必须放在最前。 |
400 | InvalidPriority.RuleActionMismatch | The specified priority and action of rule do not match.The forward-type rule action must have the last priority. | 指定的转发动作和优先级不匹配。转发类转发动作的优先级必须放在最后。 |
403 | Forbidden | You are not authorized to use ServerGroup with the protocol of gRPC. | 您无权限使用 gRPC 协议的服务器组。 |