Removes IP addresses or CIDR blocks from the whitelist of a listener.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
RegionId String No cn-hangzhou

The region where the Classic Load Balancer (CLB) instance is created.

You can call the DescribeRegions operation to query the most recent region list.

Action String Yes RemoveListenerWhiteListItem

The operation that you want to perform. Set the value to RemoveListenerWhiteListItem.

LoadBalancerId String Yes lb-8vb86hxixo8lvsja8****

The ID of the CLB instance.

ListenerPort Integer Yes 80

The listening port.

SourceItems String Yes 192.168.XX.XX

The list of IP addresses or CIDR blocks that you want to remove from the whitelist. Separate multiple IP addresses or CIDR blocks with commas (,).

Note If all IP addresses are removed from the whitelist, the listener does not forward requests.
ListenerProtocol String No https

The frontend protocol that is used by the CLB instance.

Note This parameter is required when listeners that use different protocols listen on the same port.

Response parameters

Parameter Type Example Description
RequestId String CEF72CEB-54B6-4AE8-B225-F876FF7BA984

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK

<?xml version="1.0" encoding="UTF-8"?>

JSON format

HTTP/1.1 200 OK

  "RequestId" : " CEF72CEB-54B6-4AE8-B225-F876FF7BA984"

Error codes

HttpCode Error code Error message Description
400 TooManyListeners More than 1 listener is found, please be more specified The error message returned because more than one listener matches the specified conditions. Specify more filter conditions and try again.

For a list of error codes, visit the API Error Center.