You need to enable JavaScript to run this app.
文档中心
负载均衡

负载均衡

复制全文
下载 pdf
转发规则
DeleteRules - 删除指定监听器转发规则
复制全文
下载 pdf
DeleteRules - 删除指定监听器转发规则
调用 DeleteRules 接口,删除指定监听器转发规则。​
使用说明​
每秒最多提交 5 个 API 请求。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:DeleteRules​
要执行的操作,取值:DeleteRules。​
​
Version string 必选 示例值:2020-04-01​
API的版本,取值:2020-04-01。​
​
RuleIds.N string[] 必选 示例值:RuleIds.1=rule-****&RuleIds.2=rule-****​
转发规则的ID,转发规则必须属于对应的监听器。 如果传入的转发规则都不存在,则报错。​
  • 参数 - N:表示转发规则的序号,取值1 ~ 20。​
  • 多个转发规则间使用“&”分隔。​
​
ListenerId string 必选 示例值:lsn-2fea4ayvu2g3k5oxruuz****​
监听器ID。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
RequestId string 示例值:20210811152539010225146063030****​
请求ID。​
​
​
​
请求示例​
​
GET /?Action=DeleteRules&ListenerId=lsn-1g0puwcx****8g8ibuxxw2pmf7&RuleIds.1=rule-1g0pux***a9s8ibuxy0p2l88&Version=2020-04-01 HTTP/1.1​
Host: alb.cn-beijing.volcengineapi.com​
X-Date: 20251121T094038Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20251121/cn-beijing/alb/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "2021081317494****22514214202F3FE94",​
"Action": "DeleteRules",​
"Version": "2020-04-01",​
"Service": "alb",​
"Region": "cn-beijing"​
},​
"Result": {​
"RequestId": "2021081317494801022514214202F3FE94"​
}​
}​
​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
Invalid%s.Malformed​
MismatchThe specified %s is malformed.​
指定的 %s 参数格式不合法。​
400​
MissingParameter​
The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, '%s'.​
该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如: %s。​
400​
InvalidParameter​
Data unmarshal failed.​
请求解析失败。​
400​
LimitExceed.Rule​
You've reached the limit on the number of rules that you can operate at a time.​
已达到单次可操作的转发规则的数量上限。​
400​
InvalidRuleIds.Duplicated​
The specified RuleIds is duplicated.​
指定的 RuleIds 重复。​
400​
InvalidLoadBalancer.InvalidStatus​
The specified 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.​
指定的服务器组所处状态无法响应该请求。​
403​
Forbidden​
You are not authorized to perform operations on the default rule.​
您无权限对默认转发规则进行操作。​
404​
InvalidListener.NotFound​
The specified Listener does not exist.​
指定的监听器不存在。​
404​
InvalidRule.NotFound​
The specified Rule does not exist.​
指定的转发规则不存在。​
500​
InternalError​
An internal error has occurred.​
发生内部错误。请稍后重试或联系工程师进一步咨询。​
​
​
最近更新时间:2026.09.30 10:12:55
这个页面对您有帮助吗?
有用
有用
无用
无用