Removes IP addresses or CIDR blocks from the whitelist of a listener.
Debugging
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. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=RemoveListenerWhiteListItem
&ListenerPort=80
&LoadBalancerId=lb-8vb86hxixo8lvsja8****
&SourceItems=192.168.XX.XX
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<?xml version="1.0" encoding="UTF-8"?>
<RemoveListenerWhiteListItemResponse>
<RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>
</RemoveListenerWhiteListItemResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"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.