Queries the IP addresses and CIDR blocks added to a whitelist.
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 query the region ID from the Regions and zones list or by calling the DescribeRegions operation. |
Action | String | Yes | DescribeListenerAccessControlAttribute |
The operation that you want to perform. Set the value to DescribeListenerAccessControlAttribute. |
LoadBalancerId | String | Yes | lb-8vb86hxixo8lvsja8**** |
The ID of the CLB instance. |
ListenerPort | Integer | Yes | 80 |
The frontend port that is used by the CLB instance. Valid values: 1 to 65535. |
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 |
---|---|---|---|
SourceItems | String | 192.168.XX.XX |
The IP addresses and CIDR blocks added to the whitelist. |
AccessControlStatus | String | open_white_list |
Indicates whether the whitelist is enabled. Valid values:
|
RequestId | String | 365F4154-92F6-4AE4-92F8-7FF34B540710 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?RegionId=cn-hangzhou
&Action=DescribeListenerAccessControlAttribute
&ResourceOwnerId=111
&LoadBalancerId=lb-8vb86hxixo8lvsja8****
&ListenerPort=80
&ListenerProtocol=https
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeListenerAccessControlAttributeResponse>
<SourceItems>192.168.XX.XX</SourceItems>
<AccessControlStatus>open_white_list</AccessControlStatus>
<RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>
</DescribeListenerAccessControlAttributeResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"SourceItems" : "192.168.XX.XX",
"AccessControlStatus" : "open_white_list",
"RequestId" : "365F4154-92F6-4AE4-92F8-7FF34B540710"
}
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.