createLoadBalancerInstance
- Print
- PDF
createLoadBalancerInstance
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in VPC
Create a load balancer instance.
Request
The following describes the request format for the endpoint. The request format is as follows:
Method | URI |
---|---|
GET | /createLoadBalancerInstance |
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 you want to create
|
loadBalancerTypeCode | String | Required | Load balancer type
|
loadBalancerName | String | Optional | Name of the load balancer
|
loadBalancerNetworkTypeCode | String | Optional | Load balancer network type
|
throughputTypeCode | String | Optional | Load balancing performance type
|
idleTimeout | Integer | Optional | Connection retention time (seconds)
|
vpcNo | String | Required | VPC number of the load balancer to create
|
loadBalancerDescription | String | Optional | Load balancer description (byte)
|
subnetNoList.N | List<String> | Conditional | Subnet number list
|
loadBalancerSubnetList.N.subnetNo | String | Conditional | Subnet number
|
loadBalancerSubnetList.N.publicIpInstanceNo | String | Optional | Public IP instance number
|
loadBalancerListenerList.protocolTypeCode | String | Required | Protocol type of load balancer listener
|
loadBalancerListenerList.N.port | Integer | Optional | Load balancer listener's port
|
loadBalancerListenerList.N.targetGroupNo | String | Required | Target group number applied to each listener's default rule
|
loadBalancerListenerList.N.useHttp2 | Boolean | Optional | Whether to use the HTTP/2 protocol
|
loadBalancerListenerList.N.sslCertificateNo | String | Conditional | SSL certificate number
|
loadBalancerListenerList.N.tlsMinVersionTypeCode | String | Optional | TLS minimum supported version
|
loadBalancerListenerList.N.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/createLoadBalancerInstance
?regionCode=KR
&loadBalancerTypeCode=APPLICATION
&loadBalancerName=YOUR_LOAD_BALANCER
&loadBalancerNetworkTypeCode=PRIVATE
&throughputTypeCode=SMALL
&idleTimeout=60
&vpcNo=*****
&subnetNoList.1=******
&loadBalancerListenerList.1.protocolTypeCode=HTTP
&loadBalancerListenerList.1.port=80
&loadBalancerListenerList.1.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 LoadBalancerInstanceList 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.
<createLoadBalancerInstanceResponse>
<requestId>48df95ef-b0bc-4338-bbc8-7126965c0987</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>1</totalRows>
<loadBalancerInstanceList>
<loadBalancerInstance>
<loadBalancerInstanceNo>********</loadBalancerInstanceNo>
<loadBalancerInstanceStatus>
<code>INIT</code>
<codeName>LB INIT state</codeName>
</loadBalancerInstanceStatus>
<loadBalancerInstanceOperation>
<code>CREAT</code>
<codeName>LB CREATE OP</codeName>
</loadBalancerInstanceOperation>
<loadBalancerInstanceStatusName>Creating</loadBalancerInstanceStatusName>
<loadBalancerDescription></loadBalancerDescription>
<createDate>2024-06-03T18:52:28+0900</createDate>
<loadBalancerName>YOUR_LOAD_BALANCER</loadBalancerName>
<loadBalancerDomain>***.com</loadBalancerDomain>
<loadBalancerIpList/>
<loadBalancerType>
<code>APPLICATION</code>
<codeName>Application Load Balancer</codeName>
</loadBalancerType>
<loadBalancerNetworkType>
<code>PRIVATE</code>
<codeName>Private</codeName>
</loadBalancerNetworkType>
<throughputType>
<code>SMALL</code>
<codeName>Small</codeName>
</throughputType>
<idleTimeout>60</idleTimeout>
<vpcNo>*****</vpcNo>
<regionCode>KR</regionCode>
<subnetNoList>
<subnetNo>******</subnetNo>
</subnetNoList>
<loadBalancerSubnetList>
<loadBalancerSubnet>
<zoneCode>KR-1</zoneCode>
<subnetNo>******</subnetNo>
<publicIpInstanceNo></publicIpInstanceNo>
</loadBalancerSubnet>
</loadBalancerSubnetList>
<loadBalancerListenerNoList>
<loadBalancerListenerNo>******</loadBalancerListenerNo>
</loadBalancerListenerNoList>
</loadBalancerInstance>
</loadBalancerInstanceList>
</createLoadBalancerInstanceResponse>
Was this article helpful?