Queries listeners that are associated with a specified ACL.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListAclRelations |
The operation that you want to perform. Set the value to ListAclRelations. |
AclIds | Array of String | Yes | nacl-hp34s2h0xx1ht4nwo**** |
The IDs of the ACLs to be queried. You can specify up to 5 ACLs at a time. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
AclRelations | Array of AclRelation |
The relations between the specified ACL and the listeners. |
|
AclId | String | nacl-hp34s2h0xx1ht4nwo**** |
ACL ID |
RelatedListeners | Array of RelatedListener |
The listeners associated with the specified ACL. |
|
ListenerId | String | lsr-bp1bpn0kn908w4nbw**** |
The ID of the listener. |
ListenerPort | Integer | 80 |
The port of the listener. |
ListenerProtocol | String | HTTPS |
The protocol used by the listener. |
LoadBalancerId | String | lb-bp1b6c719dfa08ex**** |
The ID of the SLB instance. |
Status | String | Associated |
The status of association between the listener and the ACL.
|
RequestId | String | 593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ListAclRelations
&AclIds=["nacl-hp34s2h0xx1ht4nwo****"]
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ListAclRelationsResponse>
<AclRelations>
<AclId>nacl-hp34s2h0xx1ht4nwo****</AclId>
<RelatedListeners>
<ListenerId>lsr-bp1bpn0kn908w4nbw****</ListenerId>
<ListenerPort>80</ListenerPort>
<ListenerProtocol>HTTPS</ListenerProtocol>
<LoadBalancerId>lb-bp1b6c719dfa08ex****</LoadBalancerId>
<Status>Associated</Status>
</RelatedListeners>
</AclRelations>
<RequestId>593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3</RequestId>
</ListAclRelationsResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"AclRelations" : [ {
"AclId" : "nacl-hp34s2h0xx1ht4nwo****",
"RelatedListeners" : [ {
"ListenerId" : "lsr-bp1bpn0kn908w4nbw****",
"ListenerPort" : 80,
"ListenerProtocol" : "HTTPS",
"LoadBalancerId" : "lb-bp1b6c719dfa08ex****",
"Status" : "Associated"
} ]
} ],
"RequestId" : "593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
404 | ResourceNotFound.Acl | The specified resource %s is not found. | The error message returned because the specified resource %s does not exist. |
For a list of error codes, visit the API Error Center.