Delete an IP or IP address range from the access whitelist of the specified listener.

Request parameters

Name Type Required Description
Action String Yes The action to perform.  Valid value:

RemoveListenerWhiteListItem

RegionId String Yes The ID of the region where the SLB instance is located.

You can obtain the region ID by calling the DescribeRegions API.

LoadBalancerId String Yes The ID of the Server Load Balancer instance.
Listenerport Integer Yes The front-end port of the listener that is used to receive incoming traffic and distribute the traffic to the backend servers.

Valid value: 1-65535

SourceItems String Yes The access whitelist of the IP addresses or an IP address range to be allowed to access the listener.

Separate multiple IP addresses or IP address ranges using commas (,).

The IP address 0.0.0.0 or the IP address range 0.0.0.0/0 are not allowed. To disable access control, call the SetListenerAccessControlStatus API and set the value of the AccessControlStatus parameter to close.

Note If all the IP addresses are deleted, the listener will no longer forward any requests.

Response parameters

Name Type Description
RequestId String The ID of the request.

Examples

Request example

https://slb.aliyuncs.com/?Action=RemoveListenerWhiteListItem
&LoadBalancerId=lb-t4nj5vuz8ish9emfk1f20
&ListenerPort=80
&SourceItems=10.10.0.0/8
&CommonParameters

Response example

  • XML format
    <? xml version="1.0" encoding="UTF-8"? >
    <RemoveListenerWhiteListItemResponse>
          <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>
    </RemoveListenerWhiteListItemResponse>
    
  • JSON format
    {
      "RequestId":" CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
    }