Enable or disable the access control function of 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 port used by the SLB instance.

Valid value: 1-65535

AccessControlStatus String   Yes Whether to enable access control. Valid value:
  • open_white_list: Enable access control.
  • close: Disable access control.
Note When the access control is enabled, you must configure a whitelist of IP addresses. Otherwise, no access is allowed.

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