edit-icon download-icon

DescribeListenerAccessControlAttribute

Last Updated: Mar 07, 2018

Description

Query the access control of a specified listener.

Request parameter

Name Type Required Description
Action String Yes

The action to perform.

Valid value: DescribeListenerAccessControlAttribute

RegionId String Yes The ID of the region where the SLB instance is located.
LoadBalancerId String Yes The ID of the SLB 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]

Response parameter

Name Type Description
RequestId String The ID of the request.
AccessControlStatus String Whether the whitelist access control function is enabled. open_whitelist indicates the whitelist access control function is enabled. close indicates the whitelist access control function is disabled.
SourceItems String The IP addresses or IP address ranges added to the whitelist.

Example

Request example

  1. https://slb.aliyuncs.com/?Action=DescribeListenerAccessControlAttribute
  2. &LoadBalancerId=139a00604ad-cn-east-hangzhou-01
  3. &ListenerPort=80
  4. &<Public Request Parameters>

Response example

  • XML format

    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <DescribeListenerAccessControlAttributeResponse>
    3. <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>
    4. <AccessControlStatus>open_whitelist</AccessControlStatus>
    5. <SourceItems>1.1.1.1,1.1.1.0/21</SourceItems>
    6. </DescribeListenerAccessControlAttributeResponse>
  • JSON format

    1. {
    2. "RequestId":"365F4154-92F6-4AE4-92F8-7FF34B540710",
    3. "AccessControlStatus":"open_whitelist",
    4. "SourceItems":"1.1.1.1,1.1.1.0/21"
    5. }
Thank you! We've received your feedback.