Skip to main content

SetLoadBalancerHTTPSListenerAttribute

Description

call SetLoadBalancerHTTPSListenerAttribute to modify the configuration of HTTPS listening.

Request Method

POST

Request Path

/apsara/route/Slb/SetLoadBalancerHTTPSListenerAttribute

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
CookieTimeoutBODYintegerNo500Cookie timeout. value:1~86400 seconds. description when StickySession is on and StickySessionType is insert, this parameter is required.
VServerGroupIdBODYstringNorsp-cige6j****virtual server group ID.
DescriptionBODYstringNolistening descriptionlistening description. The length is 2~256 characters and must be characters in Chinese and the following strings: ([\x00-\xff]|[\w.,;/@-]){2,256 }$.
UnhealthyThresholdBODYintegerNo4after how many consecutive health checks have failed, determine the health check status of the back-end server from success to failure . value:2~10. description in HealthCheck value is on is valid.
SchedulerBODYstringNowrrscheduling algorithm. Value: wrr(Default value): The backend server with the higher the weight value, the higher the number of times (probability) it is polled. wlc: In addition to polling according to the weight value set by each back-end server, the actual load of the back-end server (that is, the number of connections) is also considered. When the weight value is the same, the number of times (probability) that the backend server with the smaller the current number of connections is polled is higher. rr: distribute external requests to backend servers in sequence according to the access order.
HealthCheckURIBODYstringNo/test/index.htmlURI for health check. The length is limited to 1 to 80, and only letters, numbers, dashes (-), forward slashes (/), half-width periods (.), percent signs (%), half-width question marks (?), pound signs (#), and & amp; characters can be used. The URL cannot only be a forward slash (/), but must start with a forward slash (/). description in HealthCheck value is on is valid.
HealthCheckBODYstringNoonwhether to turn on health check. Value:on or off.
IdleTimeoutBODYintegerNo23specify the connection idle timeout time, the value range is 1~60 seconds, the default value is 15 seconds. /span>/p> p data-tag = "p" class = "p"> there has been no access request during the timeout period. load balancing will temporarily interrupt the current connection until the next request comes to temporarily re-establish a new connection.
LoadBalancerIdBODYstringYeslb-sjhfdji****ID of the load balancing instance.
VServerGroupBODYstringNoonwhether to use server groups. Value:on or off.
XForwardedFor_SLBIDBODYstringNoonwhether to pass SLB-ID header field to obtain the load balancing instance ID. value:on or off.
HealthCheckConnectPortBODYintegerNo8080port used for health check. value:1~65535. description when HealthCheck value is on is valid.
BandwidthBODYintegerNo-1peak bandwidth of listening. Value:-1 or 1~5120. -1: no bandwidth peak value is limited. 1~5120: the peak bandwidth of the listener. the sum of the peak bandwidth of all listeners cannot exceed the peak bandwidth of the instance.
GzipBODYstringNoonWhether to turn on Gzip compression to compress specific file types. Value:on or off.
ServerCertificateIdBODYstringNoidkp-123-cn-te****ID of the server certificate.
StickySessionTypeBODYstringNoinsertCookie processing method. Value: insert: insert cookies. /span>/p> p data-tag = "p" class = "p"> when the client accesses for the first time, load balancing will implant Cookie in the return request (I .e. insert ServerId in HTTP or HTTPS response message). next time the client carries this Cookie for access, load balancing service will direct and forward the request to the backend server previously recorded. server: rewrite Cookie. /span>/p> p data-tag = "p" class = "p"> load balancing finds that the user has customized the cookie, and will rewrite the original cookie. next time the client carries a new cookie to access, the load balancing service will directionally forward the request to the back-end server previously recorded. description when StickySession the value is on, this parameter must be specified.
XForwardedFor_SLBIPBODYstringNoonwhether to pass SLB-IP header field obtains the real IP of the client request. value:on or off.
HealthCheckHttpCodeBODYstringNohttp_2xx,http_3xxhealth check normal HTTP status code, multiple status codes are divided by half-width commas (,). Value:http_2xx, http_3xx, http_4xx or http_5xx. description in HealthCheck value is on is valid.
TagsBODYstringNoloadbalancerhttps****tag.
CookieBODYstringNoB490B5EBF6F3CD402E515D22BCDA1598Cookie configured on the server. is 1 to 200 characters in length and can only contain ASCII English letters and numeric characters, cannot contain commas (,), semicolons (;) or spaces, and cannot start with dollar signs ($). description when StickySession is on and StickySessionType is server, this parameter is required.
ListenerPortBODYintegerYes80the port used by the front end of the load balancing instance. value:1~65535.
RequestTimeoutBODYintegerNo223specify the request timeout time, the value range is 1~180 seconds, the default value is 60 seconds. /span>/p> p data-tag = "p" class = "p"> the back-end server has not responded during the timeout period. load balancing will give up waiting and return the HTTP 504 error code to the client.
HealthCheckIntervalBODYintegerNo5time interval for health check. value:1~50 seconds. description in HealthCheck value is on is valid.
TLSCipherPolicyBODYstringNotls_cipher_policy_1_2Only performance guaranteed instances can specify TLSCipherPolicy parameters. Each policy defines 1 security policy. The security policy includes HTTPS optional TLS protocol version and supporting encryption algorithm suite. currently supports the following 4 security policies. please select the corresponding policy according to the actual situation. < B data-tag=" B "class=" B ">tls_cipher_policy_1_0: Supports TLS versions: TLSv1.0, TLSv1.1 and TLSv1.2. supports encryption algorithm suites: ECDHE-RSA-AES128-GCM-SHA256, ECDHE-RSA-AES256-GCM-SHA384, ECDHE-RSA-AES128-SHA256, ECDHE-RSA-AES256-SHA384, AES128-GCM-SHA256, AES256-GCM-SHA384, AES128-SHA256, AES256-SHA256, ECDHE-RSA-AES128-SHA, ECDHE-RSA-AES256-SHA, AES128-SHA, AES256-SHA, and DES-CBC3-SHA. < B data-tag=" B "class=" B ">tls_cipher_policy_1_1: Supports TLS versions: TLSv1.1 and TLSv1.2. supports encryption algorithm suites: ECDHE-RSA-AES128-GCM-SHA256, ECDHE-RSA-AES256-GCM-SHA384, ECDHE-RSA-AES128-SHA256, ECDHE-RSA-AES256-SHA384, AES128-GCM-SHA256, AES256-GCM-SHA384, AES128-SHA256, AES256-SHA256, ECDHE-RSA-AES128-SHA, ECDHE-RSA-AES256-SHA, AES128-SHA, AES256-SHA, and DES-CBC3-SHA. < B data-tag=" B "class=" B ">tls_cipher_policy_1_2 Support TLS version: TLSv1.2. supports encryption algorithm suites: ECDHE-RSA-AES128-GCM-SHA256, ECDHE-RSA-AES256-GCM-SHA384, ECDHE-RSA-AES128-SHA256, ECDHE-RSA-AES256-SHA384, AES128-GCM-SHA256, AES256-GCM-SHA384, AES128-SHA256, AES256-SHA256, ECDHE-RSA-AES128-SHA, ECDHE-RSA-AES256-SHA, AES128-SHA, AES256-SHA, and DES-CBC3-SHA. < B data-tag=" B "class=" B ">tls_cipher_policy_1_2_strict Support TLS version: TLSv1.2. supports encryption algorithm suites: ECDHE-RSA-AES128-GCM-SHA256, ECDHE-RSA-AES256-GCM-SHA384, ECDHE-RSA-AES128-SHA256, ECDHE-RSA-AES256-SHA384, ECDHE-RSA-AES128-SHA, and ECDHE-RSA-AES256-SHA.
CACertificateIdBODYstringNo139a00604ad-cn-east-****CA certificate ID. If both the CA certificate and the server certificate are uploaded, two-way authentication is adopted. If the user only uploads the server certificate, it is a one-way authentication.
HealthCheckTimeoutBODYintegerNo3the time to wait to receive the response from the health check. If the backend ECS does not respond correctly within the specified time, the health check is determined to have failed. value:1~300 seconds. description if HealthCHeckTimeout has a value less than HealthCheckInterval, then HealthCHeckTimeout is invalid, the timeout period is HealthCheckInterval. in HealthCheck value is on is valid.
versionBODYstringNo2016-01-01version of api
StickySessionBODYstringNoonwhether to enable session persistence. Value:on or off.
regionIdBODYstringYesNo sample value for this parameter.region id
HealthyThresholdBODYintegerNo4after how many consecutive successful health checks, determine the health check status of the back-end server from failure to success . value:2~10. description in HealthCheck value is on is valid.
XForwardedForBODYstringNoonwhether to turn on obtaining the real IP of the customer through the X-Forwarded-For header field. Value:on or off.
HealthCheckDomainBODYstringNo172.XX.XX.6domain name used for health check, value: $_ ip: the private network IP of the backend server. When the IP address is specified or this parameter is not specified, Server Load Balancer uses the private IP address of each backend server as the domain name used for health check. domain: The domain name is 1 to 80 characters in length and can only contain letters, numbers, half-width periods (.) and dashes (-). description in HealthCheck value is on is valid.
XForwardedFor_protoBODYstringNoonwhether to pass X-Forwarded-Proto the header field obtains the listening protocol of the load balancing instance. value:on or off.

Return data

NameTypeSample valueDescription
RequestIdstringCEF72CEB-54B6-4AE8-B225-F876FF7BA984request ID.

Example

Successful Response example

{
"RequestId":"CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}