Queries the listeners that are associated with security policies.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alb:ListSecurityPolicyRelations |
get |
*SecurityPolicy
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SecurityPolicyIds |
array |
Yes |
The security policy IDs. You can specify up to five IDs. |
|
|
string |
No |
The security policy ID. You can specify up to five IDs. |
sp-n0kn923**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
593B0448-D13E-4C56-AC0D-FDF****** |
| SecrityPolicyRelations |
array<object> |
The security policies and the listeners that are associated with the security policies. |
|
|
array<object> |
The security policy and the listeners that are associated with the security policy. |
||
| RelatedListeners |
array<object> |
The listeners that are associated with the security policy. |
|
|
object |
The listener that is associated with the security policy. |
||
| ListenerId |
string |
The listener ID. |
lsn-0bfuc**** |
| ListenerPort |
integer |
The listener port. |
80 |
| ListenerProtocol |
string |
The listener protocol. |
HTTPS |
| LoadBalancerId |
string |
The Server Load Balancer (SLB) instance ID. |
alb-umwzbz6****** |
| SecurityPolicyId |
string |
The security policy ID. |
sp-bp1bpn0kn9**** |
Examples
Success response
JSON format
{
"RequestId": "593B0448-D13E-4C56-AC0D-FDF******",
"SecrityPolicyRelations": [
{
"RelatedListeners": [
{
"ListenerId": "lsn-0bfuc****",
"ListenerPort": 80,
"ListenerProtocol": "HTTPS",
"LoadBalancerId": "alb-umwzbz6******"
}
],
"SecurityPolicyId": "sp-bp1bpn0kn9****"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | ResourceNotFound.SecurityPolicy | The specified resource %s is not found. | The specified resource %s is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.