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

负载均衡

复制全文
下载 pdf
访问控制
AddAclEntries - 为指定访问控制策略组添加 IP 条目
复制全文
下载 pdf
AddAclEntries - 为指定访问控制策略组添加 IP 条目
调用 AddAclEntries 接口,为指定访问控制策略组添加 IP 条目。​
使用说明​
  • 每个访问控制策略组中最多可添加 300 个 IP 条目。​
  • 调用一次接口添加 IP 条目上限为 50 个。​
  • 每秒最多提交 5 个 API 请求。​
请求说明​
  • 请求方式:GET​
  • 请求地址:/?Action=AddAclEntries&Version=2020-04-01​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:AddAclEntries​
要执行的操作,取值:AddAclEntries。​
​
Version string 必选 示例值:2020-04-01​
API的版本,取值:2020-04-01。​
​
AclEntries.N.Entry string[] 必选 示例值:AclEntries.1.Entry=1.0.0.0/8&AclEntries.2.Entry=192.1.0.0/16​
IP条目的地址段,只支持CIDR地址。​
  • 参数- N:表示IP条目的序号,数量上限为50个。​
  • 多个IP条目间使用“&”分隔。 添加时,会自动忽略重复的IP条目或者已存在的IP条目。​
​
AclEntries.N.Description string[] 可选 示例值:AclEntries.1.Description=entry1&AclEntries.2.Description=entry2​
IP条目的描述。​
  • 不能以http://或https://开头。​
  • 必须以字母或中文开头,可包含数字、英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。) 。​
  • 长度限制为1 ~ 255个字符。​
  • 不填默认为空字符串。​
​
AclId string 必选 示例值:acl-3cj44nv0jhhxc6c6rrtet****​
要增加acl规则的访问控制策略组ID。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
RequestId string 示例值:20210811152539010225146063030****​
请求ID 。​
​
​
​
请求示例​
​
GET /?Action=AddAclEntries&AclId=acl-33txelibucdfk57uhwmviq46o&AclEntries.1.Entry=1.0.0.0/8&AclEntries.1.Description=acl-rule-1&AclEntries.2.Entry=12.1.0.0/16&AclEntries.2.Description=acl-rule-2&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": "20210816184245010****46063050B4001",​
"Action": "AddAclEntries",​
"Version": "2020-04-01",​
"Service": "alb",​
"Region": "cn-beijing"​
},​
"Result": {​
"RequestId": "20210816184245****25146063050B4001"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
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​
MissingParameter​
The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, 'AclEntries'.​
该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如: AclEntries。​
400​
LimitExceed.AclEntry​
You've reached the limit on the number of ACL entries that you can operate at a time.​
已达到单次可操作的 IP 条目的数量上限。​
400​
InvalidIndexOrder.Malformed​
The specified index order is malformed.​
指定的索引顺序参数格式不合法。​
400​
InvalidAclEntries.Entry.Malformed​
The specified AclEntries.Entry is malformed.​
指定的 AclEntries.Entry 参数格式不合法。​
400​
InvalidAclEntries.Entry.Duplicated​
The specified AclEntries.Entry is duplicated.​
指定的 AclEntries.Entry 重复。​
400​
InvalidAclEntries.Description.Malformed​
The specified AclEntries.Description is malformed.​
指定的 AclEntries.Description 参数格式不合法。​
400​
InvalidAcl.InvalidStatus​
The specified ACL is not in the correct status for the request.​
指定的 ACL 所处状态无法响应该请求。​
400​
QuotaExceed.IPPerAcl​
You've reached the limit on the number of IPs per ACL you can add in, resource xxx, usage xx/xx.​
已达到每个 ACL 可添加的 IP 条目的数量上限。资源是xxx,目前已使用xxx,配额为xxx。​
400​
QuotaExceed.AclEntriesPerInstance​
You've reached the limit on the number of ACL entries per instance you can associate with, resource xxx, usage xx/xx.​
已达到每个实例可关联的 ACL 条目的数量上限。资源是xxx,目前已使用xxx,配额为xxx。​
404​
InvalidAcl.NotFound​
The specified ACL does not exist.​
指定的 ACL 不存在。​
409​
InvalidAclEntries.Entry.Conflict​
The specified AclEntries.Entry already exists.​
指定的 IP 条目已存在。​
500​
InternalError​
An internal error has occurred.​
发生内部错误。请稍后重试或联系工程师进一步咨询。​
​
​
最近更新时间:2026.07.06 20:39:17
这个页面对您有帮助吗?
有用
有用
无用
无用