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
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | /createLoadBalancerInstance |
Request headers
For information about the headers common to all Load Balancer APIs, see Common Load Balancer headers.
Request query parameters
The following describes the parameters.
Field | Type | Required | Description |
---|---|---|---|
regionCode | String | Optional | Region code of the load balancer instance you want to create
|
loadBalancerTypeCode | String | Required | Load balancer type
|
loadBalancerName | String | Optional | Load balancer name
|
loadBalancerNetworkTypeCode | String | Optional | Load balancer's network type
|
throughputTypeCode | String | Optional | Load handling performance type
|
idleTimeout | Integer | Optional | Connection retention time (second)
|
vpcNo | String | Required | VPC number of the load balancer you want to create
|
loadBalancerDescription | String | Optional | Description of the load balancer (byte)
|
subnetNoList.N | List<String> | Conditional | Subnet's number list
|
loadBalancerSubnetList.N.subnetNo | String | Conditional | Subnet number
|
loadBalancerSubnetList.N.publicIpInstanceNo | String | Optional | Public IP instance number
|
loadBalancerListenerList.N.protocolTypeCode | String | Optional | Protocol type of load balancer listener
|
loadBalancerListenerList.N.port | Integer | Optional | Port of the load balancer listener
|
loadBalancerListenerList.N.targetGroupNo | String | Required | Target group number applied to each listener's default rule
|
loadBalancerListenerList.N.useHttp2 | Boolean | Optional | Whether to use 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 | Format of the response result
|
Request example
The request example is as follows:
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
This section 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 response example is as follows:
<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?