Available in VPC
Change the load balancer listener settings.
Syntax
The changeLoadBalancerListenerConfiguration syntax is as follows:
./ncloud vloadbalancer changeLoadBalancerListenerConfiguration \
--loadBalancerListenerNo <load-balancer-listener-no> \
--protocolTypeCode <HTTP|HTTPS|TCP|UDP|TLS> \
--port <port> \
[--useHttp2 <true|false>] \
[--sslCertificateNo <ssl-certificate-no>] \
[--tlsMinVersionTypeCode <TLSV10|TLSV11|TLSV12>] \
[--cipherSuiteList <cipher-suite-list>] \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running changeLoadBalancerListenerConfiguration.
Required options
The following options are required for changeLoadBalancerListenerConfiguration.
| Options | Type | Required | Description |
|---|---|---|---|
--loadBalancerListenerNo |
String | Required | Load balancer listener number |
--protocolTypeCode |
String | Required | Load balancer listener protocol type
|
--port |
Integer | Required | Load balancer listener port
|
--sslCertificateNo |
String | Conditional | SSL certificate number
|
Optional options
These are the optional options for changeLoadBalancerListenerConfiguration. Options that are not specified will use their default values.
| Options | Type | Required | Description |
|---|---|---|---|
--useHttp2 |
Boolean | Optional | Whether to use the HTTP/2 protocol
|
--tlsMinVersionTypeCode |
String | Optional | Minimum supported TLS version
|
--cipherSuiteList |
List | Optional | List of cipher suites provided by the load balancer during encryption negotiation with the client
|
Common options
For information about the options common to all vloadbalancer subcommands, see Load Balancer (VPC) options.
Examples
If the request to change the load balancer listener settings is successful, the configuration information for the listeners registered with the load balancer is returned.
Command
The command example is as follows:
./ncloud vloadbalancer changeLoadBalancerListenerConfiguration \
--loadBalancerListenerNo 60002222 \
--protocolTypeCode HTTP \
--port 9090 \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"changeLoadBalancerListenerConfigurationResponse": {
"totalRows": 2,
"loadBalancerListenerList": [
{
"loadBalancerInstanceNo": "41112223",
"loadBalancerListenerNo": "60001111",
"protocolType": {
"code": "HTTP",
"codeName": "HTTP protocol"
},
"port": 80,
"useHttp2": false,
"sslCertificateNo": "",
"tlsMinVersionType": {},
"loadBalancerRuleNoList": [
"70001111"
],
"cipherSuiteList": []
},
{
"loadBalancerInstanceNo": "41112223",
"loadBalancerListenerNo": "60002222",
"protocolType": {
"code": "HTTP",
"codeName": "HTTP protocol"
},
"port": 9090,
"useHttp2": false,
"sslCertificateNo": "",
"tlsMinVersionType": {},
"loadBalancerRuleNoList": [
"70002222"
],
"cipherSuiteList": []
}
],
"requestId": "d0e1f2a3-b4c5-6789-defa-012345678901",
"returnCode": "0",
"returnMessage": "success"
}
}