Queries the access control settings of a listener.

Debug

Use OpenAPI Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
Action String Yes DescribeListenerAccessControlAttribute

The name of this action.

Value: DescribeListenerAccessControlAttribute

RegionId String Yes cn-hangzhou

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

To query the region ID, refer tothe list of regions and zones or call DescribeRegions.

ListenerPort Integer Yes 80

The frontend port used by the SLB instance.

Value range: 1 to 65535

LoadBalancerId String Yes lb-8vb86hxixo8lvsja86jaz

The ID of the SLB instance.

Response parameters

Parameter Type Example value Description
AccessControlStatus String open_white_list

Indicates whether access control is enabled.

  • open_white_list: A whitelist for access control is enabled.
  • close: Access control is disabled.
SourceItems String 1.1.1.1,1.1.1.0/24

The access control list.

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

The ID of the request.

Examples

Request example


http(s)://[Endpoint]/? Action=DescribeListenerAccessControlAttribute
&ListenerPort=80
&LoadBalancerId=lb-8vb86hxixo8lvsja86jaz
&<CommonParameters>

Response examples

XML format

<DescribeListenerAccessControlAttributeResponse>
  <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>
  <AccessControlStatus>open_white_list</AccessControlStatus>
  <SourceItems>1.1.1.1,1.1.1.0/24</SourceItems>
</DescribeListenerAccessControlAttributeResponse>

JSON format

{
	"RequestId":"365F4154-92F6-4AE4-92F8-7FF34B540710",
	"SourceItems":"1.1.1.1,1.1.1.0/24",
	"AccessControlStatus":"open_white_list"
}

Error codes

See common error codes.