You can call the DescribeListenerAccessControlAttribute API to query the whitelist settings of a specific listener.


Click here to perform a debug operation in OpenAPI Explorer and automatically generate an SDK code example.

Request parameters

Name Type Required? Example value Description
Action String Yes DescribeListenerAccessControlAttribute

The action to perform. Valid value: DescribeListenerAccessControlAttribute.

RegionId String Yes cn-hangzhou

The ID of the region to which the SLB instance belongs.

You can refer to the region and zone list or call the DescribeRegions API to query this parameter.

ListenerPort Integer Yes 80

The frontend port used by the SLB instance. Valid values: 1–65535

LoadBalancerId String Yes lb-8vb86hxixo8lvsja86jaz

The ID of the SLB instance

Response parameters

Name Type Example value Description
AccessControlStatus String open_white_list

Whether to enable access control.

  • open_white_list: Enable a whitelist for access control.
  • close: Disable access control.
SourceItems String,

The access control list

RequestId String 365F4154-92F6-4AE4-92F8-7FF34B540710

The ID of the request


Request example

http(s)://[Endpoint]/? Action=DescribeListenerAccessControlAttribute

Normal response examples

XML format


JSON format


Error response example

JSON format

	"Message":"The specified parameter is not valid.",

Error codes

Click here to view the error codes.