You need to enable JavaScript to run this app.
导航

RemoveAclEntries

最近更新时间2024.01.12 10:21:38

首次发布时间2021.08.31 10:37:28

调用 RemoveAclEntries 接口为指定访问控制策略组删除IP条目。

使用说明

调用一次接口最多可以删除50个IP条目。

调试

请求参数

名称类型是否必填示例值
描述
ActionStringRemoveAclEntries要执行的操作,取值为RemoveAclEntries。
VersionString2020-04-01API版本信息,当前版本为:2020-04-01。
AclIdStringacl-3cj44nv0jhhxc6c6rrtet****访问控制策略组ID。您可以调用DescribeAcls接口获取访问控制策略组ID。

Entries.N

String

Entries.1=192.XX.XX.7/16&Entries.2=172.XX.XX.0/24

说明

删除IP条目时,会自动忽略不合法或不存在的IP条目。

IP条目的地址段。

  • 参数 - N:表示IP条目的序号,取值范围为1 ~ 50。
  • 多个IP条目间使用“&”分隔。

返回参数

字段类型示例值描述
RequestIdString20210811152539010225146063030****请求ID。

请求示例

GET /?Action=RemoveAclEntries&Version=2020-04-01&AclId=acl-3cj44nv0jhhxc6c6rrtet****&Entries.1=192.XX.XX.7/16&Entries.2=172.XX.XX.0/24 HTTP/1.1
Host: open.volcengineapi.com
Region: cn-beijing
Service: clb

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20210811152539010225146063030****",
        "Action": "RemoveAclEntries",
        "Version": "2020-04-01",
        "Service": "clb",
        "Region": "cn-beijing"
    },
    "Result": {
        "RequestId": "20210811152539010225146063030****"
    }
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

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表示缺少的参数名称。

400InvalidIncorrectOrder.MalformedThe specified index order is malformed.指定的索引顺序参数格式不合法。
400InvalidAcl.InvalidStatusThe specified ACL is not in the correct status for the request.指定的 ACL 所处状态无法响应该请求。
400LimitExceeded.IPOperationYou've reached the limit on the number of IP that you can operate at a time.已达到单次可操作的 IP 条目数量上限。
400InvalidAcl.UnSupportActionThe specified ACL does not support this action.指定的 ACL 不支持当前操作。
403InvalidResourceType.ServcieManagedThe specified ResourceType is managed by a service.指定的资源是服务托管资源。
404InvalidAcl.NotFoundThe specified Acl does not exist.指定的 ACL 不存在。
409InvalidEntry.ConflictThe specified ACL Entry already exists.指定 ACL 的IP条目已存在。