Queries the details of a listener.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alb:GetListenerAttribute |
get |
*LoadBalancer
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ListenerId |
string |
Yes |
The listener ID. |
lsn-o4u54y73wq7b****** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The detailed information about the listener. |
||
| AclConfig |
object |
The ACL configuration structure. |
|
| AclRelations |
array<object> |
The IDs of the access control policies associated with the listener. |
|
|
object |
The structure of the access control policies associated with the listener. |
||
| AclId |
string |
The ID of the access control policy associated with the listener. |
acl-doc**** |
| Status |
string |
The association status between the ACL and the listener. Valid values:
|
Associating |
| AclType |
string |
The access control type. Valid values:
|
White |
| CaCertificates |
array<object> |
The list of CA certificates. |
|
|
object |
|||
| CertificateId |
string |
The ID of the CA certificate. |
139a00***** |
| IsDefault |
boolean |
Specifies whether the certificate is the default certificate. Valid values:
|
true |
| Status |
string |
The status of the certificate. |
Associated |
| CaEnabled |
boolean |
Specifies whether mutual authentication is enabled. Valid values:
|
false |
| Certificates |
array<object> |
The list of certificates. |
|
|
object |
The certificate structure. |
||
| CertificateId |
string |
The ID of the certificate. Only server certificates are supported. |
123157******* |
| DefaultActions |
array<object> |
The list of default rule actions. |
|
|
array<object> |
The structure of the default rule action. |
||
| ForwardGroupConfig |
object |
The configuration of the forwarding action. This parameter takes effect only when the action type is ForwardGroup. |
|
| ServerGroupTuples |
array<object> |
The destination server groups for forwarding. |
|
|
object |
The destination server groups for forwarding. |
||
| ServerGroupId |
string |
The ID of the destination server group. |
sgp-i5qt20****** |
| Type |
string |
The action type. Valid value: ForwardGroup, which indicates that requests are forwarded to multiple server groups. |
ForwardGroup |
| GzipEnabled |
boolean |
Specifies whether Gzip compression is enabled to compress specific file types. Valid values:
|
true |
| Http2Enabled |
boolean |
Specifies whether HTTP/2 is enabled. Valid values:
Note
This parameter is supported only by HTTPS listeners. |
true |
| IdleTimeout |
integer |
Specifies the idle connection timeout period. Unit: seconds. If no request is received within the timeout period, the load balancer temporarily closes the current connection and establishes a new connection when the next request arrives. |
2 |
| ListenerDescription |
string |
The custom name of the listener. |
HTTP_80 |
| ListenerId |
string |
The listener ID. |
lsn-o4u54y73wq7b****** |
| ListenerPort |
integer |
The frontend port used by the load balancer. |
80 |
| ListenerProtocol |
string |
The listener protocol. Valid values: HTTP, HTTPS, and QUIC. |
HTTP |
| ListenerStatus |
string |
The current status of the listener. Valid values:
|
Running |
| LoadBalancerId |
string |
The ID of the ALB instance. |
alb-bd6oylbckp6k9x**** |
| LogConfig |
object |
The log configuration information. |
|
| AccessLogRecordCustomizedHeadersEnabled |
boolean |
Specifies whether custom header fields are included in access logs. Valid values:
|
true |
| AccessLogTracingConfig |
object |
The Xtrace configuration information for access logs. |
|
| TracingEnabled |
boolean |
The status of the Xtrace feature. Valid values:
Note
You can set this parameter to true only when the access log feature (AccessLogEnabled) is enabled for the instance. |
true |
| TracingSample |
integer |
The sampling rate for Xtrace. Valid values: 1 to 10000. Note
This parameter takes effect only when TracingEnabled is set to true. |
100 |
| TracingType |
string |
The Xtrace type. Valid value: Zipkin. Note
This parameter takes effect only when TracingEnabled is set to true. |
Zipkin |
| QuicConfig |
object |
The configuration information for associating a QUIC listener. |
|
| QuicListenerId |
string |
The ID of the QUIC listener to be associated. This parameter is required when QuicUpgradeEnabled is set to true. This parameter takes effect only for HTTPS listeners. Note
The original listener and the associated QUIC listener must belong to the same ALB instance, and the QUIC listener must not have been associated before. |
lsn-ek6ad66t**** |
| QuicUpgradeEnabled |
boolean |
Specifies whether QUIC upgrade is enabled. Valid values:
Note
This parameter takes effect only for HTTPS listeners. |
true |
| RequestId |
string |
The request ID. |
365F4154-92F6-4AE4-92F8-7FF****** |
| RequestTimeout |
integer |
Specifies the request timeout period. Unit: seconds. If a backend server does not send a response within the timeout period, the load balancer stops waiting and returns an |
34 |
| SecurityPolicyId |
string |
The security policy. Note
This parameter is supported only by HTTPS listeners. |
tls_cipher_policy_1_1 |
| Tags |
array<object> |
The tags. |
|
|
object |
The tag structure. |
||
| Key |
string |
The tag key. It can be up to 128 characters in length and cannot start with |
env |
| Value |
string |
The tag value. It can be up to 128 characters in length and cannot start with |
product |
| XForwardedForConfig |
object |
The X-Forwarded-For field configuration. |
|
| XForwardedForClientCertClientVerifyAlias |
string |
The custom header name. This parameter takes effect only when XForwardedForClientCertClientVerifyEnabled is set to true. The name must be 1 to 40 characters in length and can contain lowercase letters, hyphens (-), underscores (_), and digits. Note
This parameter is supported only by HTTPS listeners. |
test_client-verify-alias_123456 |
| XForwardedForClientCertClientVerifyEnabled |
boolean |
Specifies whether to use the
Note
This parameter is supported only by HTTPS listeners. |
true |
| XForwardedForClientCertFingerprintAlias |
string |
The custom header name. This parameter takes effect only when XForwardedForClientCertFingerprintEnabled is set to true. The name must be 1 to 40 characters in length and can contain lowercase letters, hyphens (-), underscores (_), and digits. Note
This parameter is supported only by HTTPS listeners. |
test_finger-print-alias_123456 |
| XForwardedForClientCertFingerprintEnabled |
boolean |
Specifies whether to use the
Note
This parameter is supported only by HTTPS listeners. |
true |
| XForwardedForClientCertIssuerDNAlias |
string |
The custom header name. This parameter takes effect only when XForwardedForClientCertIssuerDNEnabled is set to true. The name must be 1 to 40 characters in length and can contain lowercase letters, hyphens (-), underscores (_), and digits. Note
This parameter is supported only by HTTPS listeners. |
test_issue-dn-alias_123456 |
| XForwardedForClientCertIssuerDNEnabled |
boolean |
Specifies whether to use the
Note
This parameter is supported only by HTTPS listeners. |
true |
| XForwardedForClientCertSubjectDNAlias |
string |
The custom header name. This parameter takes effect only when XForwardedForClientCertSubjectDNEnabled is set to true. The name must be 1 to 40 characters in length and can contain lowercase letters, hyphens (-), underscores (_), and digits. Note
This parameter is supported only by HTTPS listeners. |
test_subject-dn-alias_123456 |
| XForwardedForClientCertSubjectDNEnabled |
boolean |
Specifies whether to use the
Note
This parameter is supported only by HTTPS listeners. |
true |
| XForwardedForClientSourceIpsEnabled |
boolean |
Specifies whether to allow Application Load Balancer (ALB) to retrieve the actual client IP address from the
Note
This parameter is supported by HTTP and HTTPS listeners. |
false |
| XForwardedForClientSourceIpsTrusted |
string |
The trusted proxy IP addresses. Application Load Balancing (ALB) traverses the |
10.1.1.0/24 |
| XForwardedForClientSrcPortEnabled |
boolean |
Specifies whether to use the
Note
This parameter is supported by HTTP and HTTPS listeners. |
true |
| XForwardedForEnabled |
boolean |
Specifies whether to use the
Note
|
true |
| XForwardedForHostEnabled |
boolean |
Specifies whether to use the
Note
This parameter is supported by HTTP, HTTPS, and QUIC listeners. |
false |
| XForwardedForProcessingMode |
string |
The processing mode for the
Note
|
append |
| XForwardedForProtoEnabled |
boolean |
Specifies whether to use the
Note
This parameter is supported by HTTP, HTTPS, and QUIC listeners. |
true |
| XForwardedForSLBIdEnabled |
boolean |
Specifies whether to use the
Note
This parameter is supported by HTTP, HTTPS, and QUIC listeners. |
true |
| XForwardedForSLBPortEnabled |
boolean |
Specifies whether to use the
Note
This parameter is supported by HTTP, HTTPS, and QUIC listeners. |
true |
Examples
Success response
JSON format
{
"AclConfig": {
"AclRelations": [
{
"AclId": "acl-doc****",
"Status": "Associating"
}
],
"AclType": "White"
},
"CaCertificates": [
{
"CertificateId": "139a00*****",
"IsDefault": true,
"Status": "Associated"
}
],
"CaEnabled": false,
"Certificates": [
{
"CertificateId": "123157*******"
}
],
"DefaultActions": [
{
"ForwardGroupConfig": {
"ServerGroupTuples": [
{
"ServerGroupId": "sgp-i5qt20******"
}
]
},
"Type": "ForwardGroup"
}
],
"GzipEnabled": true,
"Http2Enabled": true,
"IdleTimeout": 2,
"ListenerDescription": "HTTP_80",
"ListenerId": "lsn-o4u54y73wq7b******",
"ListenerPort": 80,
"ListenerProtocol": "HTTP",
"ListenerStatus": "Running",
"LoadBalancerId": "alb-bd6oylbckp6k9x****",
"LogConfig": {
"AccessLogRecordCustomizedHeadersEnabled": true,
"AccessLogTracingConfig": {
"TracingEnabled": true,
"TracingSample": 100,
"TracingType": "Zipkin"
}
},
"QuicConfig": {
"QuicListenerId": "lsn-ek6ad66t****",
"QuicUpgradeEnabled": true
},
"RequestId": "365F4154-92F6-4AE4-92F8-7FF******",
"RequestTimeout": 34,
"SecurityPolicyId": "tls_cipher_policy_1_1",
"Tags": [
{
"Key": "env",
"Value": "product"
}
],
"XForwardedForConfig": {
"XForwardedForClientCertClientVerifyAlias": "test_client-verify-alias_123456",
"XForwardedForClientCertClientVerifyEnabled": true,
"XForwardedForClientCertFingerprintAlias": "test_finger-print-alias_123456",
"XForwardedForClientCertFingerprintEnabled": true,
"XForwardedForClientCertIssuerDNAlias": "test_issue-dn-alias_123456",
"XForwardedForClientCertIssuerDNEnabled": true,
"XForwardedForClientCertSubjectDNAlias": "test_subject-dn-alias_123456",
"XForwardedForClientCertSubjectDNEnabled": true,
"XForwardedForClientSourceIpsEnabled": false,
"XForwardedForClientSourceIpsTrusted": "10.1.1.0/24",
"XForwardedForClientSrcPortEnabled": true,
"XForwardedForEnabled": true,
"XForwardedForHostEnabled": false,
"XForwardedForProcessingMode": "append",
"XForwardedForProtoEnabled": true,
"XForwardedForSLBIdEnabled": true,
"XForwardedForSLBPortEnabled": true
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | Forbidden.LoadBalancer | Authentication is failed for %s. | Authentication is failed for %s. |
| 404 | ResourceNotFound.Listener | The specified resource %s is not found. | The listener does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.