Queries the configurations of an HTTPS listener.
Operation description
A Classic Load Balancer instance is created. For more information, see CreateLoadBalancer.
An HTTPS listener is created. For more information, see CreateLoadBalancerHTTPSListener.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
slb:DescribeLoadBalancerHTTPSListenerAttribute |
get |
*loadbalancer
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID of the Classic Load Balancer instance. |
cn-hangzhou |
| LoadBalancerId |
string |
Yes |
The ID of the Classic Load Balancer instance. |
lb-bp1mxu5r8lau**** |
| ListenerPort |
integer |
Yes |
The port used by the frontend of the instance. Valid values: 1 to 65535. |
80 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AclType |
string |
Access control type:
If whitelist access is enabled but no IP addresses are added to the access control policy group, the SLB listener forwards all requests.
If blacklist access is enabled but no IP addresses are added to the access control policy group, the SLB listener forwards all requests. Note
This parameter is required when the value of the AclStatus parameter is on. |
white |
| XForwardedFor_ClientCertClientVerify |
string |
Indicates whether to use the
|
off |
| CACertificateId |
string |
The ID of the CA certificate. |
idkp-234-cn-test-0** |
| RequestId |
string |
The request ID. |
365F4154-92F6-4AE4-92F8-7FF3******** |
| HealthCheckConnectPort |
integer |
The port for health checks. Note
This parameter is valid only when HealthCheck is set to on. |
8080 |
| BackendServerPort |
integer |
The port used by the backend of the instance. |
8080 |
| CookieTimeout |
integer |
The cookie timeout period. |
500 |
| HealthCheckDomain |
string |
The domain name for health checks. |
www.test.com |
| XForwardedFor |
string |
Indicates whether to use the
|
on |
| XForwardedFor_ClientCertFingerprint |
string |
Indicates whether to use the
|
off |
| IdleTimeout |
integer |
Specify the connection idle timeout period. Valid values: 1 to 60. Default value: 15. Unit: seconds. If no access requests are received within the timeout period, Server Load Balancer temporarily interrupts the current connection. A new connection is established when the next request arrives. |
23 |
| ListenerPort |
integer |
The port used by the frontend of the instance. |
80 |
| HealthCheckURI |
string |
The URI for health checks. |
/test/index.html |
| XForwardedFor_SLBPORT |
string |
Indicates whether to use the
|
off |
| StickySessionType |
string |
The cookie handling method. Valid values: insert or server.
|
insert |
| Scheduler |
string |
The scheduling algorithm. Valid values: wrr or rr.
|
wrr |
| XForwardedFor_proto |
string |
Indicates whether to use the
|
on |
| HealthCheckMethod |
string |
The health check method for HTTP health checks. Valid values: head or get. Note
This parameter is displayed only when HealthCheck is set to on. |
get |
| TLSCipherPolicy |
string |
Only guaranteed-performance instances can specify the TLSCipherPolicy parameter. Each policy defines a security policy. A security policy includes optional TLS protocol versions and cipher suites for HTTPS.
|
tls_cipher_policy_1_0 |
| Status |
string |
The status of the current listener. Valid values:
|
stopped |
| VServerGroupId |
string |
The ID of the attached server group. |
rsp-cige6j5e******** |
| XForwardedFor_ClientSrcPort |
string |
Indicates whether to use the
|
off |
| Cookie |
string |
The cookie configured on the server. |
testCookie |
| Gzip |
string |
Indicates whether Gzip compression is enabled. Valid values:
|
on |
| EnableHttp2 |
string |
Indicates whether the HTTP/2 feature is enabled. Valid values:
|
off |
| Bandwidth |
integer |
The peak bandwidth of the listener. Unit: Mbps. |
10 |
| Description |
string |
The custom listener name. |
HTTPS_443 |
| HealthCheckTimeout |
integer |
The maximum timeout period for each health check response. Unit: seconds. |
3 |
| AclStatus |
string |
Indicates whether access control is enabled. Valid values:
|
off |
| UnhealthyThreshold |
integer |
The unhealthy threshold for health checks. |
4 |
| XForwardedFor_SLBID |
string |
Indicates whether to use the
|
on |
| XForwardedFor_ClientCertSubjectDN |
string |
Indicates whether to use the
|
off |
| SecurityStatus |
string |
Indicates whether the listener is in a secure state. Valid values:
|
on |
| HealthCheckHttpCode |
string |
The HTTP status codes for healthy health checks. |
http_2xx,http_3xx |
| RequestTimeout |
integer |
Specify the request timeout period. Valid values: 1 to 180. Default value: 60. Unit: seconds. If the backend server does not respond within the timeout period, Server Load Balancer stops waiting and returns an HTTP 504 error code to the client. |
43 |
| HealthCheckInterval |
integer |
The interval for health checks. Unit: seconds. |
5 |
| ServerCertificateId |
string |
The ID of the server certificate. |
idkp-123-cn-test-0** |
| AclId |
string |
The ID of the access control policy group bound to the listener. Note
This parameter is required when the value of the AclStatus parameter is on. |
acl-a2do9e413e0spzasx**** |
| XForwardedFor_ClientCertIssuerDN |
string |
Indicates whether to use the
|
off |
| HealthyThreshold |
integer |
The healthy threshold for health checks. |
4 |
| XForwardedFor_SLBIP |
string |
Indicates whether to use the
|
on |
| StickySession |
string |
Indicates whether session persistence is enabled. Valid values:
|
on |
| HealthCheck |
string |
Indicates whether health checks are enabled. Valid values:
|
on |
| AclIds |
object |
||
| AclId |
array |
The ID of the access control policy group bound to the listener. |
|
| Rules |
object |
||
| Rule |
array<object> |
The list of forwarding rules under the listener. |
|
|
object |
The list of forwarding rules under the listener. |
||
| VServerGroupId |
string |
The ID of the target server group for the forwarding rule. |
rsp-cige6j5e******** |
| Url |
string |
The access path. |
/example |
| Domain |
string |
The domain name. |
www.example.com |
| RuleName |
string |
The name of the forwarding rule. |
example |
| RuleId |
string |
The ID of the forwarding rule. |
23 |
| DomainExtensions |
object |
||
| DomainExtension |
array<object> |
The list of domain extensions. |
|
|
object |
The list of domain extensions. |
||
| ServerCertificateId |
string |
The certificate ID corresponding to the domain name. |
13344444**** |
| Domain |
string |
The domain name. |
www.example.com |
| DomainExtensionId |
string |
The domain extension ID. |
12 |
| LoadBalancerId |
string |
The ID of the Classic Load Balancer instance. |
lb-bp1mxu5r8lau**** |
| Tags |
object |
||
| Tag |
array<object> |
The list of tags. |
|
|
object |
The list of tags. |
||
| TagKey |
string |
The tag key of the listener. N is in the range of 1 to 20. If this value is passed, it cannot be an empty string. It can contain up to 64 characters and cannot start with |
TestKey |
| TagValue |
string |
The tag value of the listener. N is in the range of 1 to 20. If this value is passed, it can be an empty string. It can contain up to 128 characters and cannot start with |
TestValue |
Examples
Success response
JSON format
{
"AclType": "white",
"XForwardedFor_ClientCertClientVerify": "off",
"CACertificateId": "idkp-234-cn-test-0**",
"RequestId": "365F4154-92F6-4AE4-92F8-7FF3********",
"HealthCheckConnectPort": 8080,
"BackendServerPort": 8080,
"CookieTimeout": 500,
"HealthCheckDomain": "www.test.com",
"XForwardedFor": "on",
"XForwardedFor_ClientCertFingerprint": "off",
"IdleTimeout": 23,
"ListenerPort": 80,
"HealthCheckURI": "/test/index.html",
"XForwardedFor_SLBPORT": "off",
"StickySessionType": "insert",
"Scheduler": "wrr",
"XForwardedFor_proto": "on",
"HealthCheckMethod": "get",
"TLSCipherPolicy": "tls_cipher_policy_1_0",
"Status": "stopped",
"VServerGroupId": "rsp-cige6j5e********",
"XForwardedFor_ClientSrcPort": "off",
"Cookie": "testCookie",
"Gzip": "on",
"EnableHttp2": "off",
"Bandwidth": 10,
"Description": "HTTPS_443",
"HealthCheckTimeout": 3,
"AclStatus": "off",
"UnhealthyThreshold": 4,
"XForwardedFor_SLBID": "on",
"XForwardedFor_ClientCertSubjectDN": "off",
"SecurityStatus": "on",
"HealthCheckHttpCode": "http_2xx,http_3xx",
"RequestTimeout": 43,
"HealthCheckInterval": 5,
"ServerCertificateId": "idkp-123-cn-test-0**",
"AclId": "acl-a2do9e413e0spzasx****",
"XForwardedFor_ClientCertIssuerDN": "off",
"HealthyThreshold": 4,
"XForwardedFor_SLBIP": "on",
"StickySession": "on",
"HealthCheck": "on",
"AclIds": {
"AclId": [
""
]
},
"Rules": {
"Rule": [
{
"VServerGroupId": "rsp-cige6j5e********",
"Url": "/example",
"Domain": "www.example.com",
"RuleName": "example",
"RuleId": "23"
}
]
},
"DomainExtensions": {
"DomainExtension": [
{
"ServerCertificateId": "13344444****",
"Domain": "www.example.com",
"DomainExtensionId": "12"
}
]
},
"LoadBalancerId": "lb-bp1mxu5r8lau****",
"Tags": {
"Tag": [
{
"TagKey": "TestKey",
"TagValue": "TestValue"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.