Configure a whitelist for a listener.

Request parameters

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


RegionId String   Yes The region of SLB instance.

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

LoadBalancerId String   Yes The ID of SLB instance.
ListenerPort Integer Yes The frontend listener port used by the SLB instance.

Valid value: 1-65535

SourceItems String   Yes Only requests from IP addresses in the whitelist are forwarded.

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

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

Note This is valid when the AccessControlStatus of the listener is open_white_list.

Response parameters

Name Type Description
RequestId String The ID of the request.


Request example

Response example

  • XML format
    <? xml version="1.0" encoding="UTF-8"? >
  • JSON format