最近更新时间:2023.11.16 15:51:42
首次发布时间:2021.08.31 10:37:28
调用 ModifyRules 接口更换指定HTTP/HTTPS监听器中转发规则对应的后端服务器组或修改转发规则的描述。
ServerGroupId
参数会对应创建一个默认的转发规则转发至指定后端服务器组,默认转发规则不支持修改。名称 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ModifyRules | 要执行的操作,取值为ModifyRules。 |
Version | String | 是 | 2020-04-01 | API版本信息,当前版本为:2020-04-01。 |
ListenerId | String | 是 | lsn-2fek3rgsxhrsw5oxruwec**** | 监听器的ID。您可以调用DescribeListeners接口获取监听器ID。 |
Rules.N.RuleId | String | 是 | Rules.1.RuleId=rule-2fegss1cplxxc5oxruvvq****&Rules.2.RuleId=rule-3ciynwkb46c6rrt4jszkd**** | 转发规则的ID。您可以调用DescribeRules接口获取转发规则ID。
|
Rules.N.ServerGroupId | String | 否 | Rules.1.ServerGroupId=rsp-bp1o94dp5i6ea****&Rules.2.ServerGroupId=rsp-2fea4bshkqv405oxruuz4**** | 后端服务器组ID。您可以调用DescribeServerGroups接口获取后端服务器组ID。
|
Rules.N.Description | String | 否 | Rules.1.Description=rule1&Rules.2.Description=rule2 | 转发规则的描述。
|
字段 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 20210811152539010225146063030**** | 请求ID。 |
GET /?Action=ModifyRules&Version=2020-04-01&ListenerId=lsn-2fek3rgsxhrsw5oxruwec****&Rules.1.RuleId=rule-2fegss1cplxxc5oxruvvq****&Rules.1.ServerGroupId=rsp-bp1o94dp5i6ea****&Rules.1.Description=test HTTP/1.1 Host: open.volcengineapi.com Region: cn-beijing Service: clb
{ "ResponseMetadata": { "RequestId": "20210811152539010225146063030****", "Action": "ModifyRules", "Version": "2020-04-01", "Service": "clb", "Region": "cn-beijing" }, "Result": { "RequestId": "20210811152539010225146063030****" } }
此处仅展示当前API的错误码,更多错误码请参见公共错误码。
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | MissingParameter | The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, the 'XXX'. | 该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如XXX。 说明 其中,XXX表示缺少的参数名称。 |
400 | InvalidDescription.Malformed | The specified Description is malformed. | 指定的 Description 参数格式不合法。 |
400 | UnsupportedOperation.AccountArrears | The request on the specified instance is denied due to the account in arrears status. | 因账户处于欠费状态,对于该实例的操作请求被拒绝。 |
400 | InvalidLoadBalancer.InvalidStatus | The specified LoadBalancer is not in the correct status for the request. | 指定的负载均衡所处状态无法响应该请求。 |
400 | InvalidDefaultRule.UnSupportAction | The specified Default Rule does not support this action. | 指定的默认转发规则不支持当前操作。 |
400 | LimitExceeded.Rule | You've reached the limit on the number of rules that you can operate. | 已达到可操作转发规则的数量上限。 |
400 | InvalidIncorrectOrder.Malformed | The specified index order is malformed. | 指定的索引顺序参数格式不合法。 |
403 | InvalidResourceType.ServcieManaged | The specified ResourceType is managed by a service. | 指定的资源是服务托管资源。 |
404 | InvalidListener.NotFound | The specified Listener does not exist. | 指定的监听器不存在。 |
404 | InvalidRule.NotFound | The specified Rule does not exist. | 指定的转发规则不存在。 |
404 | InvalidServerGroup.NotFound | The specified ServerGroup does not exist. | 指定的后端服务器组不存在。 |
404 | InvalidExclusiveCluster.NotFound | The specified ExclusiveCluster does not exist. | 指定的独占集群不存在。 |
409 | InvalidRule.Conflict | The specified Rule already exists. | 指定的转发规则已存在。 |
412 | InvalidLoadBalancer.Expired | The specified LoadBalancer has expired. | 指定的负载均衡已过期。 |
412 | InvalidExclusiveCluster.Expired | The specified ExclusiveCluster has expired. | 指定的独占集群已过期。 |
412 | InvalidExclusiveCluster.UnPurchased | The specified ExclusiveCluster is not purchased. | 指定的独占集群未购买。 |