createLoadBalancerListener
- Print
- PDF
createLoadBalancerListener
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in VPC
Create a new listener to register with a load balancer.
Request
The following describes the request format for the endpoint. The request format is as follows:
Method | URI |
---|---|
GET | /createLoadBalancerListener |
Request headers
For headers common to all Load Balancer APIs, see Load Balancer common headers.
Request query parameters
The following describes the parameters.
Field | Type | Required | Description |
---|---|---|---|
regionCode | String | Optional | Region code for the load balancer instance whose listener you want to create
|
loadBalancerInstanceNo | String | Required | Number of the load balancer instance
|
protocolTypeCode | String | Required | Protocol type of load balancer listener
|
port | Integer | Required | Port of the listener
|
targetGroupNo | String | Required | Target group number
|
useHttp2 | Boolean | Optional | Whether to use the HTTP/2 protocol
|
sslCertificateNo | String | Conditional | SSL certificate number
|
tlsMinVersionTypeCode | String | Optional | TLS minimum supported version
|
cipherSuiteList.N | List<String> | Optional | List of encryption tools provided by the load balancer when negotiating encryption with the client
|
responseFormatType | String | Optional | Response result format
|
Request example
The following is a sample request.
curl --location 'https://ncloud.apigw.ntruss.com/vloadbalancer/v2/createLoadBalancerListener
?regionCode=KR
&loadBalancerInstanceNo=********
&protocolTypeCode=HTTP
&port=80
&targetGroupNo=*******'
--header 'x-ncp-apigw-timestamp: {Timestamp}'
--header 'x-ncp-iam-access-key: {Access Key}'
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
Response
The following describes the response format.
Response body
See LoadBalancerListenerList for the response body.
Response status codes
For response status codes common to NAVER Cloud Platform, see Ncloud API response status codes.
Response example
The following is a sample response.
<createLoadBalancerListenerResponse>
<requestId>05993e9c-1c80-458d-b7b6-e84c84b6812a</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>1</totalRows>
<loadBalancerListenerList>
<loadBalancerListener>
<loadBalancerInstanceNo>********</loadBalancerInstanceNo>
<loadBalancerListenerNo>******</loadBalancerListenerNo>
<protocolType>
<code>HTTP</code>
<codeName>HTTP protocol</codeName>
</protocolType>
<port>80</port>
<useHttp2>false</useHttp2>
<sslCertificateNo></sslCertificateNo>
<tlsMinVersionType/>
<loadBalancerRuleNoList>
<loadBalancerRuleNo>******</loadBalancerRuleNo>
</loadBalancerRuleNoList>
<cipherSuiteList/>
</loadBalancerListener>
</loadBalancerListenerList>
</createLoadBalancerListenerResponse>
Was this article helpful?